org.apache.jdo.impl.model.jdo.caching
Class JDOMapImplCaching

java.lang.Object
  extended byorg.apache.jdo.impl.model.jdo.JDOElementImpl
      extended byorg.apache.jdo.impl.model.jdo.JDORelationshipImpl
          extended byorg.apache.jdo.impl.model.jdo.JDOMapImplDynamic
              extended byorg.apache.jdo.impl.model.jdo.caching.JDOMapImplCaching
All Implemented Interfaces:
JDOElement, JDOMap, JDORelationship

public class JDOMapImplCaching
extends JDOMapImplDynamic

An instance of this class represents the JDO relationship metadata (the treatment of keys and values) of a map relationship field. This caching implementation caches any calulated value to avoid re-calculating it if it is requested again.

Since:
1.1
Version:
1.1
Author:
Michael Bouschen

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.jdo.JDOMapImplDynamic
embeddedKey, embeddedValue, keyType, valueType
 
Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO
 
Constructor Summary
JDOMapImplCaching()
           
 
Method Summary
 JavaType getKeyType()
          Get the type representation of the keys for this JDOMap.
 JavaType getValueType()
          Get the type representation of the values for this JDOMap.
 boolean isEmbeddedKey()
          Determines whether the keys of the map should be stored if possible as part of the instance instead of as their own instances in the datastore.
 boolean isEmbeddedValue()
          Determines whether the values of the map 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.JDOMapImplDynamic
getKeyTypeName, getValueTypeName, setEmbeddedKey, setEmbeddedValue, setKeyType, setKeyTypeName, setValueType, setValueTypeName
 
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
 

Constructor Detail

JDOMapImplCaching

public JDOMapImplCaching()
Method Detail

isEmbeddedKey

public boolean isEmbeddedKey()
Determines whether the keys of the map should be stored if possible as part of the instance instead of as their own instances in the datastore.

Specified by:
isEmbeddedKey in interface JDOMap
Overrides:
isEmbeddedKey in class JDOMapImplDynamic
Returns:
true if the keys are stored as part of this instance; false otherwise

getKeyType

public JavaType getKeyType()
Get the type representation of the keys for this JDOMap.

Specified by:
getKeyType in interface JDOMap
Overrides:
getKeyType in class JDOMapImplDynamic
Returns:
the type of the keys of this JDOMap

isEmbeddedValue

public boolean isEmbeddedValue()
Determines whether the values of the map should be stored if possible as part of the instance instead of as their own instances in the datastore.

Specified by:
isEmbeddedValue in interface JDOMap
Overrides:
isEmbeddedValue in class JDOMapImplDynamic
Returns:
true if the values are stored as part of this instance; false otherwise

getValueType

public JavaType getValueType()
Get the type representation of the values for this JDOMap.

Specified by:
getValueType in interface JDOMap
Overrides:
getValueType in class JDOMapImplDynamic
Returns:
the type of the values of this JDOMap


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