|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.convert.converter.AbstractConverter<java.sql.Timestamp> org.apache.wicket.util.convert.converter.SqlTimestampConverter
public class SqlTimestampConverter
Converts to Timestamp
.
Constructor Summary | |
---|---|
SqlTimestampConverter()
Construct. |
|
SqlTimestampConverter(int dateFormat)
Construct. |
|
SqlTimestampConverter(int dateFormat,
int timeFormat)
Construct. |
Method Summary | |
---|---|
java.sql.Timestamp |
convertToObject(java.lang.String value,
java.util.Locale locale)
Converts the given String value |
java.lang.String |
convertToString(java.sql.Timestamp timestamp,
java.util.Locale locale)
Converts the given value to a string. |
protected java.lang.Class<java.sql.Timestamp> |
getTargetType()
|
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter |
---|
newConversionException, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlTimestampConverter()
public SqlTimestampConverter(int dateFormat)
dateFormat
- See java.text.DateFormat for details. Defaults to DateFormat.SHORTpublic SqlTimestampConverter(int dateFormat, int timeFormat)
dateFormat
- See java.text.DateFormat for details. Defaults to DateFormat.SHORT * @param
timeFormat See java.text.DateFormat for details. Defaults to DateFormat.SHORTtimeFormat
- Method Detail |
---|
public java.sql.Timestamp convertToObject(java.lang.String value, java.util.Locale locale)
IConverter
String
value
value
- The string value to convertlocale
- The locale used to convert the value
IConverter.convertToObject(java.lang.String,
java.util.Locale)
public java.lang.String convertToString(java.sql.Timestamp timestamp, java.util.Locale locale)
IConverter
convertToString
in interface IConverter<java.sql.Timestamp>
convertToString
in class AbstractConverter<java.sql.Timestamp>
timestamp
- The value to convertlocale
- The locale used to convert the value
AbstractConverter.convertToString(java.lang.Object,
java.util.Locale)
protected java.lang.Class<java.sql.Timestamp> getTargetType()
getTargetType
in class AbstractConverter<java.sql.Timestamp>
AbstractConverter.getTargetType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |