org.datanucleus.store.mapped.mapping
Class InterfaceMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.JavaTypeMapping
      extended by org.datanucleus.store.mapped.mapping.MultiMapping
          extended by org.datanucleus.store.mapped.mapping.ReferenceMapping
              extended by org.datanucleus.store.mapped.mapping.InterfaceMapping
All Implemented Interfaces:
MappingCallbacks

public class InterfaceMapping
extends ReferenceMapping

Mapping for Interface fields.


Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.mapping.ReferenceMapping
ID_MAPPING, LOCALISER_MAPPED, mappingStrategy, PER_IMPLEMENTATION_MAPPING, XCALIA_MAPPING
 
Fields inherited from class org.datanucleus.store.mapped.mapping.MultiMapping
javaTypeMappings, numberOfDatastoreMappings
 
Fields inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
datastoreContainer, datastoreMappings, LOCALISER, mmd, referenceMapping, roleForMember, storeMgr, type
 
Constructor Summary
InterfaceMapping()
           
 
Method Summary
 java.lang.Object getObject(ObjectManager om, java.lang.Object rs, int[] pos)
          Method to retrieve an object of this type from the ResultSet.
 void initialize(AbstractMemberMetaData mmd, DatastoreContainerObject container, ClassLoaderResolver clr)
          Initialisation.
 void setImplementationClasses(java.lang.String implementationClasses)
          Set the implementation classes.
 
Methods inherited from class org.datanucleus.store.mapped.mapping.ReferenceMapping
getJavaType, getJavaTypeForDatastoreMapping, getMappingNumberForValue, getMappingStrategy, getObjectForReferenceString, getReferenceStringForObject, getSampleValue, insertPostProcessing, newLiteral, newScalarExpression, postFetch, postInsert, postUpdate, preDelete, prepareDatastoreMapping, setObject
 
Methods inherited from class org.datanucleus.store.mapped.mapping.MultiMapping
addJavaTypeMapping, getDatastoreMapping, getDatastoreMappings, getJavaTypeMapping, getNumberOfDatastoreMappings, 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, setDefault, 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
 

Constructor Detail

InterfaceMapping

public InterfaceMapping()
Method Detail

initialize

public void initialize(AbstractMemberMetaData mmd,
                       DatastoreContainerObject container,
                       ClassLoaderResolver clr)
Initialisation.

Overrides:
initialize in class ReferenceMapping
Parameters:
mmd - MetaData for the field/property
container - 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(ObjectManager om,
                                  java.lang.Object rs,
                                  int[] pos)
Method to retrieve an object of this type from the ResultSet.

Overrides:
getObject in class ReferenceMapping
Parameters:
om - ObjectManager
rs - The ResultSet
pos - The parameter positions
Returns:
The object


Copyright © 2010. All Rights Reserved.