Package org.jeasy.batch.core.converter
Class SqlTimestampTypeConverter
- java.lang.Object
-
- org.jeasy.batch.core.converter.SqlTimestampTypeConverter
-
- All Implemented Interfaces:
TypeConverter<java.lang.String,java.sql.Timestamp>
public class SqlTimestampTypeConverter extends java.lang.Object implements TypeConverter<java.lang.String,java.sql.Timestamp>
java.sql.Timestamp type converter. Converts a String Timestamp in the "yyyy-mm-dd hh:mm:ss[.f...]" format to aTimestamp
type.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description SqlTimestampTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Timestamp
convert(java.lang.String value)
Convert a source type into a target type.
-
-
-
Method Detail
-
convert
public java.sql.Timestamp convert(java.lang.String value)
Convert a source type into a target type.- Specified by:
convert
in interfaceTypeConverter<java.lang.String,java.sql.Timestamp>
- Parameters:
value
- the input value to convert- Returns:
- The converted value
-
-