|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.StatementClassMapping
public class StatementClassMapping
Definition of statement mapping for a particular class. Provides a definition of how the results of a datastore query are mapped on to the fields of a class. If we take the example of this being the candidate class retrieved, then the memberName will be null and any children represent persistent objects also retrieved in this statement. So we process all fields in the result-set for this class, then instantiate any child object (with its id field(s)), and process all of its fields, etc. Means that we can have a result set with fields for multiple objects and instantiate more than 1 related object.
| Field Summary | |
|---|---|
static int |
MEMBER_DATASTORE_ID
|
static int |
MEMBER_DISCRIMINATOR
|
static int |
MEMBER_VERSION
|
| Constructor Summary | |
|---|---|
StatementClassMapping()
|
|
StatementClassMapping(java.lang.String memberName)
|
|
StatementClassMapping(java.lang.String className,
java.lang.String memberName)
|
|
| Method Summary | |
|---|---|
void |
addMappingDefinitionForMember(int position,
StatementClassMapping defn)
|
void |
addMappingForMember(int position,
StatementMappingIndex mapping)
|
StatementClassMapping |
cloneStatementMappingWithoutChildren()
|
java.lang.String |
getClassName()
|
StatementClassMapping |
getMappingDefinitionForMemberPosition(int position)
Accessor for the mapping definition for the object at the specified member position. |
StatementMappingIndex |
getMappingForMemberPosition(int position)
Accessor for the mapping information for the member at the specified position. |
java.lang.String |
getMemberName()
|
int[] |
getMemberNumbers()
Accessor for the numbers of the members present. |
java.lang.String |
getNucleusTypeColumnName()
|
boolean |
hasChildMappingDefinitions()
Accessor for whether this definition has child object definitions. |
void |
setNucleusTypeColumnName(java.lang.String colName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int MEMBER_DATASTORE_ID
public static int MEMBER_VERSION
public static int MEMBER_DISCRIMINATOR
| Constructor Detail |
|---|
public StatementClassMapping()
public StatementClassMapping(java.lang.String className,
java.lang.String memberName)
public StatementClassMapping(java.lang.String memberName)
| Method Detail |
|---|
public java.lang.String getClassName()
public java.lang.String getMemberName()
public void setNucleusTypeColumnName(java.lang.String colName)
public java.lang.String getNucleusTypeColumnName()
public StatementMappingIndex getMappingForMemberPosition(int position)
position - The member position
public StatementClassMapping getMappingDefinitionForMemberPosition(int position)
position - The position of the member in this class
public boolean hasChildMappingDefinitions()
public int[] getMemberNumbers()
public void addMappingForMember(int position,
StatementMappingIndex mapping)
public void addMappingDefinitionForMember(int position,
StatementClassMapping defn)
public StatementClassMapping cloneStatementMappingWithoutChildren()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||