org.datanucleus.store.mapped.mapping
Class DiscriminatorStringMapping

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.DiscriminatorMapping
              extended by org.datanucleus.store.mapped.mapping.DiscriminatorStringMapping

public final class DiscriminatorStringMapping
extends DiscriminatorMapping

Discriminator using a String delegate.


Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
datastoreContainer, datastoreMappings, LOCALISER, mmd, referenceMapping, roleForMember, storeMgr, type
 
Constructor Summary
DiscriminatorStringMapping(DatastoreAdapter dba, DatastoreContainerObject datastoreContainer, JavaTypeMapping delegate)
          Constructor.
 
Method Summary
 
Methods inherited from class org.datanucleus.store.mapped.mapping.DiscriminatorMapping
addDatastoreMapping, getDatastoreMapping, getDatastoreMappings, getJavaType, getNumberOfDatastoreMappings, getObject, setObject
 
Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, 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
failureMessage, getColumnMetaDataForMember, getDatastoreContainer, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, setDatastoreContainer, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscriminatorStringMapping

public DiscriminatorStringMapping(DatastoreAdapter dba,
                                  DatastoreContainerObject datastoreContainer,
                                  JavaTypeMapping delegate)
Constructor.

Parameters:
dba - Datastore Adapter
datastoreContainer - Datastore table
delegate - The JavaTypeMapping to delegate storage


Copyright © 2011. All Rights Reserved.