public class LocaleMapping extends ObjectAsStringMapping
Locale
absFieldNumber, datastoreMappings, LOCALISER, LOCALISER_RDBMS, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
LocaleMapping() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultLength(int index)
Method to return the default length of this type in the datastore.
|
Class |
getJavaType()
Method to return the Java type.
|
protected String |
objectToString(Object object)
Method to set the datastore string value based on the object value.
|
protected Object |
stringToObject(String datastoreValue)
Method to extract the objects value from the datastore string value.
|
getJavaTypeForDatastoreMapping, getObject, setObject
equals, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getValidValues, initialize, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString
addDatastoreMapping, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getDatastoreMapping, getDatastoreMappings, getMemberMetaData, getNumberOfDatastoreMappings, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember, setTable
public Class getJavaType()
ObjectAsStringMapping
getJavaType
in class ObjectAsStringMapping
public int getDefaultLength(int index)
getDefaultLength
in class SingleFieldMapping
index
- The index positionprotected String objectToString(Object object)
objectToString
in class ObjectAsStringMapping
object
- The objectprotected Object stringToObject(String datastoreValue)
stringToObject
in class ObjectAsStringMapping
datastoreValue
- Value obtained from the datastoreCopyright © 2023. All rights reserved.