public class CalendarStringConverter extends Object implements TypeConverter<Calendar,String>, ColumnLengthDefiningTypeConverter
Constructor and Description |
---|
CalendarStringConverter() |
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(Calendar cal)
Method to convert the passed member value to the datastore type.
|
Calendar |
toMemberType(String str)
Method to convert the passed datastore value to the member type.
|
public int getDefaultColumnLength(int columnPosition)
ColumnLengthDefiningTypeConverter
getDefaultColumnLength
in interface ColumnLengthDefiningTypeConverter
columnPosition
- Position of the column being enquired about (0 = first)public Calendar toMemberType(String str)
TypeConverter
toMemberType
in interface TypeConverter<Calendar,String>
str
- Value from the datastorepublic String toDatastoreType(Calendar cal)
TypeConverter
toDatastoreType
in interface TypeConverter<Calendar,String>
cal
- Value from the memberCopyright © 2018. All rights reserved.