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