|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.convert.converters.AbstractConverter org.apache.wicket.util.convert.converters.SqlTimestampConverter
public class SqlTimestampConverter
Converts to Timestamp
.
Constructor Summary | |
---|---|
SqlTimestampConverter()
Construct. |
|
SqlTimestampConverter(int dateFormat)
Construct. |
|
SqlTimestampConverter(int dateFormat,
int timeFormat)
Construct. |
Method Summary | |
---|---|
Timestamp |
convertToObject(String value,
Locale locale)
Converts the given String value |
String |
convertToString(Object value,
Locale locale)
Converts the given value to a string. |
protected Class<Timestamp> |
getTargetType()
|
Methods inherited from class org.apache.wicket.util.convert.converters.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.SHORTMethod Detail |
---|
public Timestamp convertToObject(String value, 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 String convertToString(Object value, Locale locale)
IConverter
convertToString
in interface IConverter
convertToString
in class AbstractConverter
value
- The value to convertlocale
- The locale used to convert the value
AbstractConverter.convertToString(java.lang.Object,
java.util.Locale)
protected Class<Timestamp> getTargetType()
getTargetType
in class AbstractConverter
AbstractConverter.getTargetType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |