|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A JDOCollection instance represents the JDO relationship metadata of a collection relationship field.
| Field Summary |
| Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship |
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO |
| Method Summary | |
JavaType |
getElementType()
Get the type representation of the collection elements. |
java.lang.String |
getElementTypeName()
Get the type of collection elements as string. |
boolean |
isEmbeddedElement()
Determines whether the values of the elements should be stored if possible as part of the instance instead of as their own instances in the datastore. |
void |
setElementType(JavaType elementType)
Set the type representation of the collection elements. |
void |
setElementTypeName(java.lang.String elementTypeName)
Set string representation of the type of collection elements. |
void |
setEmbeddedElement(boolean embeddedElement)
Set whether the values of the elements should be stored if possible as part of the instance instead of as their own instances in the datastore. |
| Methods inherited from interface org.apache.jdo.model.jdo.JDORelationship |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOCollection, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound |
| Methods inherited from interface org.apache.jdo.model.jdo.JDOElement |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
| Method Detail |
public boolean isEmbeddedElement()
true if the elements should be stored as part of
the instance; false otherwise
public void setEmbeddedElement(boolean embeddedElement)
throws ModelException
embeddedElement - true if elements should be stored
as part of the instance
ModelException - if impossiblepublic JavaType getElementType()
public void setElementType(JavaType elementType)
throws ModelException
elementType - the type representation of the collection elements
ModelException - if impossiblepublic java.lang.String getElementTypeName()
public void setElementTypeName(java.lang.String elementTypeName)
throws ModelException
elementTypeName - a string representation of the type of elements in
the collection.
ModelException - if impossible
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||