org.apache.jdo.impl.model.jdo
Class JDOArrayImplDynamic

java.lang.Object
  extended by org.apache.jdo.impl.model.jdo.JDOElementImpl
      extended by org.apache.jdo.impl.model.jdo.JDORelationshipImpl
          extended by 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:
1.1
Author:
Michael Bouschen

Field Summary
protected  java.lang.Boolean embeddedElement
          Property embeddedElement.
 
Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO
 
Constructor Summary
JDOArrayImplDynamic()
           
 
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 class org.apache.jdo.impl.model.jdo.JDORelationshipImpl
getDeclaringField, getInverseRelationship, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, setUpperBound
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, firePropertyChange, fireVetoableChange, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 
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, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, setUpperBound
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 

Field Detail

embeddedElement

protected java.lang.Boolean embeddedElement
Property embeddedElement.

Constructor Detail

JDOArrayImplDynamic

public JDOArrayImplDynamic()
Method Detail

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


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