java.lang.Object
org.litebridgedb.convert.converter.AbstractStringParsingConverter<Date>
org.litebridgedb.convert.converter.SqlDateConverter
- All Implemented Interfaces:
Converter<Date>,ConverterFunction<Date>,SqlConverter<Date>
public class SqlDateConverter
extends AbstractStringParsingConverter<Date>
implements SqlConverter<Date>
A converter for
Date values.
Handles Types.DATE by parsing the value's string representation.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.litebridgedb.convert.converter.AbstractStringParsingConverter
convertMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridgedb.convert.converter.Converter
primitiveTypeMethods inherited from interface org.litebridgedb.convert.converter.ConverterFunction
convert
-
Constructor Details
-
SqlDateConverter
public SqlDateConverter()
-
-
Method Details
-
convertString
Description copied from class:AbstractStringParsingConverterParses a string value into the target type.- Specified by:
convertStringin classAbstractStringParsingConverter<Date>- Parameters:
value- the string value to parse- Returns:
- the parsed value
-
type
Returns the target Java class this converter handles. -
sqlTypes
public int[] sqlTypes()Returns the SQL types associated with this converter.- Specified by:
sqlTypesin interfaceSqlConverter<Date>- Returns:
- an array containing
Types.DATE
-