org.datanucleus.store.mapped.mapping
Class EmbeddedElementPCMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.JavaTypeMapping
      extended by org.datanucleus.store.mapped.mapping.SingleFieldMapping
          extended by org.datanucleus.store.mapped.mapping.EmbeddedMapping
              extended by org.datanucleus.store.mapped.mapping.EmbeddedElementPCMapping

public class EmbeddedElementPCMapping
extends EmbeddedMapping

Mapping for a PersistenceCapable object stored in an embedded collection within a PersistenceCapable object. Provides mapping for a single Java type (the element PC type) to multiple datastore columns.


Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.mapping.EmbeddedMapping
clr, embCmd, emd, javaTypeMappings, objectType, typeName
 
Fields inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
datastoreContainer, datastoreMappings, LOCALISER, mmd, referenceMapping, roleForMember, storeMgr, type
 
Constructor Summary
EmbeddedElementPCMapping()
           
 
Method Summary
 void initialize(AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr)
          Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData.
 
Methods inherited from class org.datanucleus.store.mapped.mapping.EmbeddedMapping
addJavaTypeMapping, getJavaType, getJavaTypeMapping, getJavaTypeMapping, getNumberOfJavaTypeMappings, getObject, getObject, initialize, prepareDatastoreMapping, setObject, setObject
 
Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getShort, getString, getValidValues, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString
 
Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
addDatastoreMapping, failureMessage, getColumnMetaDataForMember, getDatastoreContainer, getDatastoreMapping, getDatastoreMappings, getMemberMetaData, getNumberOfDatastoreMappings, getReferenceMapping, getRoleForMember, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, setDatastoreContainer, setMemberMetaData, setReferenceMapping, setRoleForMember
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedElementPCMapping

public EmbeddedElementPCMapping()
Method Detail

initialize

public void initialize(AbstractMemberMetaData fmd,
                       DatastoreContainerObject container,
                       ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData.

Overrides:
initialize in class EmbeddedMapping
Parameters:
container - The datastore container storing this mapping (if any)
clr - the ClassLoaderResolver
fmd - FieldMetaData for the field to be mapped (if any)


Copyright © 2011. All Rights Reserved.