Module org.apache.wicket.util
Class SqlTimeConverter
java.lang.Object
org.apache.wicket.util.convert.converter.AbstractConverter<D>
org.apache.wicket.util.convert.converter.AbstractDateConverter<Time>
org.apache.wicket.util.convert.converter.SqlTimeConverter
- All Implemented Interfaces:
Serializable
,IConverter<Time>
,IClusterable
Converts to
Time
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Time
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
-
SqlTimeConverter
public SqlTimeConverter()
-
-
Method Details
-
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<Time>
- Parameters:
date
- the date(time) in millis since Epoch- Returns:
- a new instance of the specific type D
-
getDateFormat
- Overrides:
getDateFormat
in classAbstractDateConverter<Time>
- Returns:
- Returns the date format.
-
getTargetType
- Specified by:
getTargetType
in classAbstractConverter<Time>
- Returns:
- The target type of this type converter
-