org.apache.jdo.impl.model.jdo.caching
Class JDOArrayImplCaching
java.lang.Object
org.apache.jdo.impl.model.jdo.JDOElementImpl
org.apache.jdo.impl.model.jdo.JDORelationshipImpl
org.apache.jdo.impl.model.jdo.JDOArrayImplDynamic
org.apache.jdo.impl.model.jdo.caching.JDOArrayImplCaching
- All Implemented Interfaces:
- JDOArray, JDOElement, JDORelationship
- public class JDOArrayImplCaching
- extends JDOArrayImplDynamic
An instance of this class represents the JDO relationship metadata
of a array relationship field. This caching implementation
caches any calulated value to avoid re-calculating it if it is
requested again.
- Since:
- 1.1
- Version:
- 2.0
- Author:
- Michael Bouschen
| Fields inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl |
|
| Methods inherited from class org.apache.jdo.impl.model.jdo.JDORelationshipImpl |
getDeclaringField, getInverseRelationshipName, getLowerBound, 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, getInverseRelationshipName, getLowerBound, getRelatedJDOClass, getUpperBound, isJDOCollection, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound |
elementType
private transient JavaType elementType
- Type of the array element.
JDOArrayImplCaching
public JDOArrayImplCaching()
getMappedBy
public JDORelationship getMappedBy()
- Get the mappedBy relationship. If there is no mappedBy relationship
set, the method checks the mappedBy name as specified in the declaring
field and resolves the relationship. The method returns
null if there is no mappedBy relationship set and there
is no mappedBy name specified on the declaring field.
- Specified by:
getMappedBy in interface JDORelationship- Overrides:
getMappedBy in class JDORelationshipImpl
- Returns:
- the mappedBy relationship if available;
null
otherwise.
getInverseRelationship
public JDORelationship getInverseRelationship()
- Get the inverse JDORelationship in the case of a two-way relationship.
- Specified by:
getInverseRelationship in interface JDORelationship- Overrides:
getInverseRelationship in class JDORelationshipImpl
- Returns:
- the inverse relationship
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- Overrides:
isEmbeddedElement in class JDOArrayImplDynamic
- Returns:
true if the elements should be stored as part of
the instance; false otherwise
getElementType
public JavaType getElementType()
- Get the type representation of the array component type.
- Specified by:
getElementType in interface JDOArray- Overrides:
getElementType in class JDOArrayImplDynamic
- Returns:
- the array component type