org.datanucleus.store.mapped.mapping
Class InterfaceMapping
java.lang.Object
org.datanucleus.store.mapped.mapping.JavaTypeMapping
org.datanucleus.store.mapped.mapping.MultiMapping
org.datanucleus.store.mapped.mapping.ReferenceMapping
org.datanucleus.store.mapped.mapping.InterfaceMapping
- All Implemented Interfaces:
- MappingCallbacks
public class InterfaceMapping
- extends ReferenceMapping
Mapping for Interface fields.
| Methods inherited from class org.datanucleus.store.mapped.mapping.ReferenceMapping |
getJavaType, getJavaTypeForDatastoreMapping, getMappingNumberForValue, getMappingStrategy, getObjectForReferenceString, getReferenceStringForObject, insertPostProcessing, postFetch, postInsert, postUpdate, preDelete, prepareDatastoreMapping, setObject |
| Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping |
addDatastoreMapping, equals, failureMessage, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getString, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, setBoolean, setByte, setChar, setDatastoreContainer, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
InterfaceMapping
public InterfaceMapping()
initialize
public void initialize(AbstractMemberMetaData mmd,
DatastoreContainerObject container,
ClassLoaderResolver clr)
- Initialisation.
- Overrides:
initialize in class ReferenceMapping
- Parameters:
mmd - MetaData for the field/propertycontainer - datastore container (table)clr - ClassLoader resolver
setImplementationClasses
public void setImplementationClasses(java.lang.String implementationClasses)
- Set the implementation classes. If the field defined what the implementation
classes are, this mapping will only use it
- Parameters:
implementationClasses - the implementation classes string
getObject
public java.lang.Object getObject(ExecutionContext ec,
java.lang.Object rs,
int[] pos)
- Method to retrieve an object of this type from the ResultSet.
- Overrides:
getObject in class ReferenceMapping
- Parameters:
ec - ExecutionContextrs - The ResultSetpos - The parameter positions
- Returns:
- The object
Copyright © 2011. All Rights Reserved.