org.apache.jdo.model.jdo
Interface JDOArray

All Superinterfaces:
JDOElement, JDORelationship
All Known Implementing Classes:
JDOArrayImplCaching, JDOArrayImplDynamic

public interface JDOArray
extends JDORelationship

A JDOArray instance represents the JDO relationship metadata of a array relationship field.

Author:
Michael Bouschen

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 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, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, setUpperBound
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 

Method Detail

isEmbeddedElement

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

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

JavaType getElementType()
Get the type representation of the array component type.

Returns:
the array component type


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.