|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.MappingHelper
public class MappingHelper
Helper class for handling mappings.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localiser for messages |
| Constructor Summary | |
|---|---|
MappingHelper()
|
|
| Method Summary | |
|---|---|
protected static Object |
createObjectIdInstanceReflection(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] param,
AbstractClassMetaData cmd,
Class objectIdClass)
Create an object id instance and fill the fields using reflection |
protected static Object |
createSingleFieldIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] param,
AbstractClassMetaData cmd,
Class objectIdClass,
Class pcClass)
Create a SingleFieldIdentity instance |
static int[] |
getMappingIndices(int initialPosition,
JavaTypeMapping mapping)
Convenience method to return an array of positions for datastore columns for the supplied mapping and the initial position value. |
protected static Object |
getObjectForAbstractClass(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
Create an object id instance and fill the fields using reflection |
static Object |
getObjectForApplicationIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
Get the object instance for a class using application identity |
static Object |
getObjectForDatastoreIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
Get the object instance for a class using datastore identity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
| Constructor Detail |
|---|
public MappingHelper()
| Method Detail |
|---|
public static int[] getMappingIndices(int initialPosition,
JavaTypeMapping mapping)
initialPosition - the initialPositionmapping - the Mapping
public static Object getObjectForDatastoreIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
ec - ExecutionContextmapping - The mapping in which this is returnedrs - the ResultSetresultIndexes - indexes for the result setcmd - the AbstractClassMetaData
public static Object getObjectForApplicationIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
ec - ExecutionContextmapping - The mapping in which this is returnedrs - the ResultSetresultIndexes - indexes in the result set to retrievecmd - the AbstractClassMetaData
protected static Object createSingleFieldIdentity(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] param,
AbstractClassMetaData cmd,
Class objectIdClass,
Class pcClass)
ec - ExecutionContextmapping - Mapping in which this is returnedrs - the ResultSetparam - the parameterscmd - the AbstractClassMetaDataobjectIdClass - the object id classpcClass - the PersistenceCapable class
protected static Object createObjectIdInstanceReflection(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] param,
AbstractClassMetaData cmd,
Class objectIdClass)
ec - ExecutionContextmapping - Mapping in which this is returnedrs - the ResultSetparam - the parameterscmd - the AbstractClassMetaDataobjectIdClass - the object id class
protected static Object getObjectForAbstractClass(ExecutionContext ec,
JavaTypeMapping mapping,
Object rs,
int[] resultIndexes,
AbstractClassMetaData cmd)
ec - ExecutionContextmapping - Mapping in which this is returnedrs - the ResultSetresultIndexes - indexes of the result set to usecmd - the AbstractClassMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||