Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.model.jdo » [javadoc | source]
org.apache.jdo.model.jdo
public interface: JDOCollection [javadoc | source]

All Implemented Interfaces:
    JDORelationship

All Known Implementing Classes:
    JDOCollectionImplDynamic, JDOCollectionImplCaching

A JDOCollection instance represents the JDO relationship metadata of a collection relationship field.
Method from org.apache.jdo.model.jdo.JDOCollection Summary:
getElementType,   getElementTypeName,   isEmbeddedElement,   setElementType,   setElementTypeName,   setEmbeddedElement
Method from org.apache.jdo.model.jdo.JDOCollection Detail:
 public JavaType getElementType()
    Get the type representation of the collection elements.
 public String getElementTypeName()
    Get the type of collection elements as string.
 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.
 public  void setElementType(JavaType elementType) throws ModelException
    Set the type representation of the collection elements.
 public  void setElementTypeName(String elementTypeName) throws ModelException
    Set string representation of the type of collection elements.
 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.