org.datanucleus.store.mapped.mapping
Class URIMapping
java.lang.Object
org.datanucleus.store.mapped.mapping.JavaTypeMapping
org.datanucleus.store.mapped.mapping.SingleFieldMapping
org.datanucleus.store.mapped.mapping.ObjectAsStringMapping
org.datanucleus.store.mapped.mapping.URIMapping
public class URIMapping
- extends ObjectAsStringMapping
Mapping for java.net.URI type.
| Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getLong, getShort, getString, getValidValues, initialize, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
| Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping |
addDatastoreMapping, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getDatastoreContainer, getDatastoreMapping, getDatastoreMappings, getMemberMetaData, getNumberOfDatastoreMappings, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setDatastoreContainer, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember |
URIMapping
public URIMapping()
getJavaType
public Class getJavaType()
- Description copied from class:
ObjectAsStringMapping
- Method to return the Java type.
- Specified by:
getJavaType in class ObjectAsStringMapping
- Returns:
- The Java type being represented.
objectToString
protected String objectToString(Object object)
- Method to set the datastore string value based on the object value.
- Specified by:
objectToString in class ObjectAsStringMapping
- Parameters:
object - The object
- Returns:
- The string value to pass to the datastore
stringToObject
protected Object stringToObject(String datastoreValue)
- Method to extract the objects value from the datastore string value.
- Specified by:
stringToObject in class ObjectAsStringMapping
- Parameters:
datastoreValue - Value obtained from the datastore
- Returns:
- The value of this object (derived from the datastore string value)
Copyright © 2012. All Rights Reserved.