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