Class SqlDateConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<D>
-
- org.apache.wicket.util.convert.converter.AbstractDateConverter<Date>
-
- org.apache.wicket.util.convert.converter.SqlDateConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Date>
,IClusterable
public class SqlDateConverter extends AbstractDateConverter<Date>
Converts toDate
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlDateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Date
createDateLike(long date)
Creates a new instance of D out of the passed date(time) as longprotected Class<Date>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractDateConverter
convertToObject, convertToString, getDateFormat
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Constructor Detail
-
SqlDateConverter
public SqlDateConverter()
-
-
Method Detail
-
createDateLike
protected Date createDateLike(long date)
Description copied from class:AbstractDateConverter
Creates a new instance of D out of the passed date(time) as long- Specified by:
createDateLike
in classAbstractDateConverter<Date>
- Parameters:
date
- the date(time) in millis since Epoch- Returns:
- a new instance of the specific type D
-
getTargetType
protected Class<Date> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<Date>
- Returns:
- The target type of this type converter
-
-