org.apache.jdo.model.jdo
Interface JDOArray
- All Superinterfaces:
- JDOElement, JDORelationship
- All Known Implementing Classes:
- JDOArrayImplDynamic
- public interface JDOArray
- extends JDORelationship
A JDOArray instance represents the JDO relationship metadata
of a array relationship field.
- Author:
- Michael Bouschen
Method Summary |
JavaType |
getElementType()
Get the type representation of the array component type. |
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 |
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 |
isEmbeddedElement
public 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.
- Returns:
true
if the elements should be stored as part of
the instance; false
otherwise
setEmbeddedElement
public void setEmbeddedElement(boolean embeddedElement)
throws ModelException
- 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.
- Parameters:
embeddedElement
- flag indicating whether the elements should be
stored as part of the instance
- Throws:
ModelException
- if impossible
getElementType
public JavaType getElementType()
- Get the type representation of the array component type.
- Returns:
- the array component type