Class SqlTimestampConverter
java.lang.Object
org.apache.wicket.util.convert.converter.AbstractConverter<D>
org.apache.wicket.util.convert.converter.AbstractDateConverter<Timestamp>
org.apache.wicket.util.convert.converter.SqlTimestampConverter
- All Implemented Interfaces:
Serializable
,IConverter<Timestamp>
,IClusterable
Converts to
Timestamp
.- Author:
- eelcohillenius
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct.SqlTimestampConverter
(int dateFormat) Construct.SqlTimestampConverter
(int dateFormat, int timeFormat) Construct. -
Method Summary
Modifier and TypeMethodDescriptionprotected Timestamp
createDateLike
(long date) Creates a new instance of D out of the passed date(time) as longgetDateFormat
(Locale locale) Methods inherited from class org.apache.wicket.util.convert.converter.AbstractDateConverter
convertToObject, convertToString
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
Constructor Details
-
SqlTimestampConverter
public SqlTimestampConverter()Construct. -
SqlTimestampConverter
Construct.- Parameters:
dateFormat
- See java.text.DateFormat for details. Defaults to DateFormat.SHORT
-
SqlTimestampConverter
Construct.- Parameters:
dateFormat
- See java.text.DateFormat for details. Defaults to DateFormat.SHORT * @param timeFormat See java.text.DateFormat for details. Defaults to DateFormat.SHORTtimeFormat
-
-
-
Method Details
-
getDateFormat
- Overrides:
getDateFormat
in classAbstractDateConverter<Timestamp>
- Returns:
- Returns the date format.
-
createDateLike
Description copied from class:AbstractDateConverter
Creates a new instance of D out of the passed date(time) as long- Specified by:
createDateLike
in classAbstractDateConverter<Timestamp>
- Parameters:
date
- the date(time) in millis since Epoch- Returns:
- a new instance of the specific type D
-
getTargetType
- Specified by:
getTargetType
in classAbstractConverter<Timestamp>
- Returns:
- The target type of this type converter
-