Constructor and Description |
---|
StringToSqlDateConverter(DateFormat format) |
StringToSqlDateConverter(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected Class<Date> |
destinationClass() |
Date |
doConvert(String source)
Converts instance of S to T.
|
protected Class<String> |
sourceClass() |
canConvert, convert
public StringToSqlDateConverter(String pattern)
pattern
- pattern to use for conversionpublic StringToSqlDateConverter(DateFormat format)
format
- DateFormat to use for conversionprotected Class<String> sourceClass()
sourceClass
in class ConverterAdapter<String,Date>
protected Class<Date> destinationClass()
destinationClass
in class ConverterAdapter<String,Date>
public Date doConvert(String source) throws ParseException
ConverterAdapter
doConvert
in class ConverterAdapter<String,Date>
source
- instance of String or nullParseException
- if conversion failedCopyright © 2016 JavaLite. All rights reserved.