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

java.lang.Object
  extended by org.apache.jdo.impl.model.jdo.JDOElementImpl
      extended by org.apache.jdo.impl.model.jdo.JDOMemberImpl
          extended by org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic
              extended by org.apache.jdo.impl.model.jdo.caching.JDOAssociatedPropertyImplCaching
All Implemented Interfaces:
java.lang.Comparable, JDOElement, JDOField, JDOMember, JDOProperty

public class JDOAssociatedPropertyImplCaching
extends JDOAssociatedPropertyImplDynamic

An instance of this class represents the JDO metadata of a managed property of a persistence capable class. This JDOProperty implementation is used for persistent properties with an associated JDOField. All JDOField getter methods delegate to the associated JDOField, except methods getName, getDeclaringClass and getJavaField. All JDOField setter method throw a ModelException to avoid changing the associated JDOField through this JDOProperty instance. This caching implementation caches any calculated value to avoid re-calculating it if it is requested again.

Since:
2.0
Version:
2.0
Author:
Michael Bouschen

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic
javaProperty, msg
 
Constructor Summary
protected JDOAssociatedPropertyImplCaching(java.lang.String name, JDOClass declaringClass, JDOField associatedJDOField)
          Constructor.
 
Method Summary
 JavaField getJavaField()
          Get the corresponding JavaProperty representation for this JDOProperty.
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic
createJDOArray, createJDOCollection, createJDOMap, createJDOReference, getAssociatedJDOField, getFieldNumber, getMappedByName, getNullValueTreatment, getPersistenceModifier, getRelationship, getRelativeFieldNumber, getType, isDefaultFetchGroup, isEmbedded, isManaged, isPersistent, isPrimaryKey, isProperty, isRelationship, isSerializable, isTransactional, setDefaultFetchGroup, setEmbedded, setJavaField, setMappedByName, setNullValueTreatment, setPersistenceModifier, setPrimaryKey, setRelationship, setSerializable
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOMemberImpl
compareTo, equals, getDeclaringClass, getName, hashCode, toString
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOMember
getDeclaringClass, getName
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

JDOAssociatedPropertyImplCaching

protected JDOAssociatedPropertyImplCaching(java.lang.String name,
                                           JDOClass declaringClass,
                                           JDOField associatedJDOField)
                                    throws ModelException
Constructor.

Throws:
ModelException
Method Detail

getJavaField

public JavaField getJavaField()
Get the corresponding JavaProperty representation for this JDOProperty.

Specified by:
getJavaField in interface JDOField
Overrides:
getJavaField in class JDOAssociatedPropertyImplDynamic
Returns:
the corresponding JavaProperty representation


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