public class DateStringConverter extends Object implements TypeConverter<Date,String>, ColumnLengthDefiningTypeConverter
| Constructor and Description |
|---|
DateStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultColumnLength(int columnPosition)
Accessor for the default column length to use for the datastore column at the specified position.
|
String |
toDatastoreType(Date date)
Method to convert the passed member value to the datastore type.
|
Date |
toMemberType(String str)
Method to convert the passed datastore value to the member type.
|
public int getDefaultColumnLength(int columnPosition)
ColumnLengthDefiningTypeConvertergetDefaultColumnLength in interface ColumnLengthDefiningTypeConvertercolumnPosition - Position of the column being enquired about (0 = first)public Date toMemberType(String str)
TypeConvertertoMemberType in interface TypeConverter<Date,String>str - Value from the datastorepublic String toDatastoreType(Date date)
TypeConvertertoDatastoreType in interface TypeConverter<Date,String>date - Value from the memberCopyright © 2020. All rights reserved.