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.MultiPersistableMapping
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, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDatastoreContainer, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString |
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(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 Object getObject(ExecutionContext ec,
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 © 2012. All Rights Reserved.