|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.JavaTypeMapping
org.datanucleus.store.mapped.mapping.MultiMapping
public abstract class MultiMapping
Mapping to represent multiple mappings within the single overall java type mapping. This mapping can be used to represent, for example,
| Field Summary | |
|---|---|
protected JavaTypeMapping[] |
javaTypeMappings
The Java mappings represented by this mapping. |
protected int |
numberOfDatastoreMappings
Number of datastore mappings - for convenience to improve performance |
| Fields inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping |
|---|
absFieldNumber, datastoreContainer, datastoreMappings, LOCALISER, mmd, referenceMapping, roleForMember, storeMgr, type |
| Constructor Summary | |
|---|---|
MultiMapping()
|
|
| Method Summary | |
|---|---|
void |
addJavaTypeMapping(JavaTypeMapping mapping)
Method to add a Java type mapping for a field |
DatastoreMapping |
getDatastoreMapping(int index)
Accessor for a datastore mapping. |
DatastoreMapping[] |
getDatastoreMappings()
Accessor for the datastore mappings for this java type |
JavaTypeMapping[] |
getJavaTypeMapping()
Accessor for the Java type mappings |
int |
getNumberOfDatastoreMappings()
Accessor for the number of datastore mappings. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JavaTypeMapping[] javaTypeMappings
protected int numberOfDatastoreMappings
| Constructor Detail |
|---|
public MultiMapping()
| Method Detail |
|---|
public void addJavaTypeMapping(JavaTypeMapping mapping)
mapping - The mapping to addpublic JavaTypeMapping[] getJavaTypeMapping()
public int getNumberOfDatastoreMappings()
getNumberOfDatastoreMappings in class JavaTypeMappingpublic DatastoreMapping[] getDatastoreMappings()
JavaTypeMapping
getDatastoreMappings in class JavaTypeMappingpublic DatastoreMapping getDatastoreMapping(int index)
getDatastoreMapping in class JavaTypeMappingindex - The position of the mapping to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||