org.apache.jdo.impl.model.jdo
Class JDOArrayImplDynamic
java.lang.Object
org.apache.jdo.impl.model.jdo.JDOElementImpl
org.apache.jdo.impl.model.jdo.JDORelationshipImpl
org.apache.jdo.impl.model.jdo.JDOArrayImplDynamic
- All Implemented Interfaces:
- JDOArray, JDOElement, JDORelationship
- Direct Known Subclasses:
- JDOArrayImplCaching
- public class JDOArrayImplDynamic
- extends JDORelationshipImpl
- implements JDOArray
An instance of this class represents the JDO relationship metadata
of a array relationship field. This dynamic implementation only
stores property values explicitly set by setter method.
- Since:
- 1.1
- Version:
- 2.0
- Author:
- Michael Bouschen
Field Summary |
protected java.lang.Boolean |
embeddedElement
Property embeddedElement. |
Method Summary |
JavaType |
getElementType()
Get the type representation of the array component type. |
JavaType |
getRelatedJavaType()
Get the type representation of the relationship. |
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. |
boolean |
isJDOArray()
Determines whether this JDORelationship represents an array
relationship or not. |
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 class org.apache.jdo.impl.model.jdo.JDORelationshipImpl |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOCollection, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.jdo.JDORelationship |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOCollection, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound |
embeddedElement
protected java.lang.Boolean embeddedElement
- Property embeddedElement.
JDOArrayImplDynamic
public JDOArrayImplDynamic()
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.
- Specified by:
isEmbeddedElement
in interface JDOArray
- Returns:
true
if the elements should be stored as part of
the instance; false
otherwise
setEmbeddedElement
public 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.
- Specified by:
setEmbeddedElement
in interface JDOArray
- Parameters:
embeddedElement
- flag indicating whether the elements should be
stored as part of the instance
getElementType
public JavaType getElementType()
- Get the type representation of the array component type.
- Specified by:
getElementType
in interface JDOArray
- Returns:
- the array component type
isJDOArray
public boolean isJDOArray()
- Determines whether this JDORelationship represents an array
relationship or not. A return of
true
means this
JDORelationship is a JDOArray instance.
- Specified by:
isJDOArray
in interface JDORelationship
- Overrides:
isJDOArray
in class JDORelationshipImpl
- Returns:
true
if this JDORelationship represents an
array relationship; false
otherwise.
getRelatedJavaType
public JavaType getRelatedJavaType()
- Get the type representation of the relationship. This will be
the JavaType for references, the element type for collections
and arrays, and the value type for maps.
- Specified by:
getRelatedJavaType
in class JDORelationshipImpl
- Returns:
- the relationship type
Copyright © 2005 Apache Software Foundation. All Rights Reserved.