public interface JDOCollection extends JDORelationship
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO
Modifier and Type | Method and Description |
---|---|
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.
|
getDeclaringField, getInverseRelationship, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, setUpperBound
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
boolean isEmbeddedElement()
true
if the elements should be stored as part of
the instance; false
otherwisevoid setEmbeddedElement(boolean embeddedElement) throws ModelException
embeddedElement
- true
if elements should be stored
as part of the instanceModelException
- if impossibleJavaType getElementType()
void setElementType(JavaType elementType) throws ModelException
elementType
- the type representation of the collection elementsModelException
- if impossiblejava.lang.String getElementTypeName()
void setElementTypeName(java.lang.String elementTypeName) throws ModelException
elementTypeName
- a string representation of the type of elements in
the collection.ModelException
- if impossibleCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.