org.apache.jdo.impl.model.jdo.caching
Class JDOPropertyImplCaching
java.lang.Object
org.apache.jdo.impl.model.jdo.JDOElementImpl
org.apache.jdo.impl.model.jdo.JDOMemberImpl
org.apache.jdo.impl.model.jdo.JDOFieldImplDynamic
org.apache.jdo.impl.model.jdo.caching.JDOFieldImplCaching
org.apache.jdo.impl.model.jdo.caching.JDOPropertyImplCaching
- All Implemented Interfaces:
- java.lang.Comparable, JDOElement, JDOField, JDOMember, JDOProperty
public class JDOPropertyImplCaching
- extends JDOFieldImplCaching
- implements JDOProperty
An instance of this class represents the JDO metadata of a managed field
of a persistence capable class. This dynamic implementation only
stores property values explicitly set by setter method.
Please note, you cannot rely on the Java identity of the
JDORelationship instance returned by JDOFieldImplCaching.getRelationship()
.
The getter will always return a new Java Instance, unless the
relationship is explicitly set by the setter
JDOFieldImplDynamic.setRelationship(JDORelationship relationship)
.
- Since:
- 2.0
- Version:
- 2.0
- Author:
- Michael Bouschen
Method Summary |
JDOField |
getAssociatedJDOField()
Return the JDOField instance associated with this property, if
available. |
JavaField |
getJavaField()
Get the corresponding JavaField representation for this JDOProperty. |
boolean |
isProperty()
Convenience method to check whether this field represents a property. |
void |
setJavaField(JavaField javaField)
Sets the corresponding JavaProperty representation for this JDOProperty. |
Methods inherited from class org.apache.jdo.impl.model.jdo.caching.JDOFieldImplCaching |
createJDOArray, createJDOArrayInternal, createJDOCollection, createJDOCollectionInternal, createJDOMap, createJDOMapInternal, createJDOReference, createJDOReferenceInternal, getPersistenceModifier, getRelationship, getRelativeFieldNumber, isDefaultFetchGroup, isEmbedded |
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOFieldImplDynamic |
getFieldNumber, getMappedByName, getNullValueTreatment, getType, isManaged, isPersistent, isPrimaryKey, isRelationship, isSerializable, isTransactional, setDefaultFetchGroup, setEmbedded, setMappedByName, setNullValueTreatment, setPersistenceModifier, setPrimaryKey, setRelationship, setSerializable |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.jdo.JDOField |
createJDOArray, createJDOCollection, createJDOMap, createJDOReference, getFieldNumber, getMappedByName, getNullValueTreatment, getPersistenceModifier, getRelationship, getRelativeFieldNumber, getType, isDefaultFetchGroup, isEmbedded, isManaged, isPersistent, isPrimaryKey, isRelationship, isSerializable, isTransactional, setDefaultFetchGroup, setEmbedded, setMappedByName, setNullValueTreatment, setPersistenceModifier, setPrimaryKey, setRelationship, setSerializable |
Methods inherited from interface java.lang.Comparable |
compareTo |
JDOPropertyImplCaching
protected JDOPropertyImplCaching(java.lang.String name,
JDOClass declaringClass)
getJavaField
public JavaField getJavaField()
- Get the corresponding JavaField representation for this JDOProperty.
- Specified by:
getJavaField
in interface JDOField
- Overrides:
getJavaField
in class JDOFieldImplCaching
- Returns:
- the corresponding JavaProperty representation
setJavaField
public void setJavaField(JavaField javaField)
throws ModelException
- Sets the corresponding JavaProperty representation for this JDOProperty.
- Specified by:
setJavaField
in interface JDOField
- Overrides:
setJavaField
in class JDOFieldImplDynamic
- Parameters:
javaField
- the corresponding JavaProperty representation
- Throws:
ModelException
- if impossible
isProperty
public boolean isProperty()
- Convenience method to check whether this field represents a property.
- Specified by:
isProperty
in interface JDOField
- Overrides:
isProperty
in class JDOFieldImplDynamic
- Returns:
true
if this field represents a property;
false
otherwise
getAssociatedJDOField
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
.
This implementation always retruns null
.
- Specified by:
getAssociatedJDOField
in interface JDOProperty
- Returns:
- associated JDOField instance or
null
if not
available.
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.