Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.jdo » [javadoc | source]
org.apache.jdo.impl.model.jdo
public class: JDOAssociatedPropertyImplDynamic [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.jdo.JDOElementImpl
      org.apache.jdo.impl.model.jdo.JDOMemberImpl
         org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic

All Implemented Interfaces:
    JDOProperty, JDOMember, JDOElement

Direct Known Subclasses:
    JDOAssociatedPropertyImplCaching

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 dynamic implementation only stores values explicitly set by setter method.
Field Summary
protected  JavaProperty javaProperty    The corresponding JavaProperty instance. 
protected static final  I18NHelper msg    I18N support. 
Constructor:
 protected JDOAssociatedPropertyImplDynamic(String name,
    JDOClass declaringClass,
    JDOField associatedJDOField) throws ModelException 
    Constrcutor.
Method from org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic Summary:
createJDOArray,   createJDOCollection,   createJDOMap,   createJDOReference,   getAssociatedJDOField,   getFieldNumber,   getJavaField,   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 from org.apache.jdo.impl.model.jdo.JDOMemberImpl:
compareTo,   equals,   getDeclaringClass,   getName,   hashCode,   toString
Methods from org.apache.jdo.impl.model.jdo.JDOElementImpl:
addPropertyChangeListener,   addVetoableChangeListener,   createJDOExtension,   firePropertyChange,   fireVetoableChange,   getJDOExtensions,   removeJDOExtension,   removePropertyChangeListener,   removeVetoableChangeListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.jdo.JDOAssociatedPropertyImplDynamic Detail:
 public JDOArray createJDOArray() throws ModelException 
    Throws ModelException.
 public JDOCollection createJDOCollection() throws ModelException 
    Throws ModelException.
 public JDOMap createJDOMap() throws ModelException 
    Throws ModelException.
 public JDOReference createJDOReference() throws ModelException 
    Throws ModelException.
 public JDOField getAssociatedJDOField() 
    Return the JDOField instance associated with this property, if available. If there is no JDOField instance associated, then the method returns null.
 public int getFieldNumber() 
    Deletegate to associatedJDOField.
 public JavaField getJavaField() 
    Get the corresponding JavaProperty representation for this JDOProperty.
 public String getMappedByName() 
    Deletegate to associatedJDOField.
 public int getNullValueTreatment() 
    Deletegate to associatedJDOField.
 public int getPersistenceModifier() 
    Deletegate to associatedJDOField.
 public JDORelationship getRelationship() 
    Deletegate to associatedJDOField.
 public int getRelativeFieldNumber() 
    Deletegate to associatedJDOField.
 public JavaType getType() 
    Deletegate to associatedJDOField.
 public boolean isDefaultFetchGroup() 
    Deletegate to associatedJDOField.
 public boolean isEmbedded() 
    Deletegate to associatedJDOField.
 public boolean isManaged() 
    Deletegate to associatedJDOField.
 public boolean isPersistent() 
    Deletegate to associatedJDOField.
 public boolean isPrimaryKey() 
    Deletegate to associatedJDOField.
 public boolean isProperty() 
    Convenience method to check whether this field represents a property.
 public boolean isRelationship() 
    Deletegate to associatedJDOField.
 public boolean isSerializable() 
    Deletegate to associatedJDOField.
 public boolean isTransactional() 
    Deletegate to associatedJDOField.
 public  void setDefaultFetchGroup(boolean defaultFetchGroup) throws ModelException 
    Throws ModelException.
 public  void setEmbedded(boolean embedded) throws ModelException 
    Throws ModelException.
 public  void setJavaField(JavaField javaField) throws ModelException 
    Sets the corresponding JavaProperty representation for this JDOProperty.
 public  void setMappedByName(String mappedByName) throws ModelException 
    Throws ModelException.
 public  void setNullValueTreatment(int nullValueTreament) throws ModelException 
    Throws ModelException.
 public  void setPersistenceModifier(int persistenceModifier) throws ModelException 
    Throws ModelException.
 public  void setPrimaryKey(boolean primaryKey) throws ModelException 
    Throws ModelException.
 public  void setRelationship(JDORelationship relationship) throws ModelException 
    Throws ModelException.
 public  void setSerializable(boolean serializable) throws ModelException 
    Throws ModelException.