public class JDOFieldImplCaching extends JDOFieldImplDynamic
Please note, this implementation does not support changing the relationship property once it is defined (either explicitly by the setter or internally calculated by the getter). The second attempt to define the relationship will result in an exception.
isProperty
defaultFetchGroup, embedded, javaField, msg, persistenceModifier, relationship
Modifier | Constructor and Description |
---|---|
protected |
JDOFieldImplCaching(java.lang.String name,
JDOClass declaringClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
JDOArray |
createJDOArray()
Creates and returns a new JDOArray instance.
|
protected JDOArray |
createJDOArrayInternal()
Creates and returns a new JDOArray instance.
|
JDOCollection |
createJDOCollection()
Creates and returns a new JDOCollection instance.
|
protected JDOCollection |
createJDOCollectionInternal()
Creates and returns a new JDOCollection instance.
|
JDOMap |
createJDOMap()
Creates and returns a new JDOMap instance.
|
protected JDOMap |
createJDOMapInternal()
Creates and returns a new JDOMap instance.
|
JDOReference |
createJDOReference()
Creates and returns a new JDOReference instance.
|
protected JDOReference |
createJDOReferenceInternal()
Creates and returns a new JDOReference instance.
|
JavaField |
getJavaField()
Get the corresponding JavaField representation for this JDOField.
|
int |
getPersistenceModifier()
Get the persistence modifier of this JDOField.
|
JDORelationship |
getRelationship()
Get the relationship information for this JDOField.
|
int |
getRelativeFieldNumber()
Returns the relative field number of this JDOField.
|
boolean |
isDefaultFetchGroup()
Determines whether this JDOField is part of the default fetch group or
not.
|
boolean |
isEmbedded()
Determines whether the field should be stored if possible as part of
the instance instead of as its own instance in the datastore.
|
getFieldNumber, getMappedByName, getNullValueTreatment, getType, isManaged, isPersistent, isPrimaryKey, isProperty, isRelationship, isSerializable, isTransactional, setDefaultFetchGroup, setEmbedded, setJavaField, setMappedByName, setNullValueTreatment, setPersistenceModifier, setPrimaryKey, setRelationship, setSerializable
compareTo, equals, getDeclaringClass, getName, hashCode, toString
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, firePropertyChange, fireVetoableChange, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringClass, getName
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
protected JDOFieldImplCaching(java.lang.String name, JDOClass declaringClass)
public int getPersistenceModifier()
getPersistenceModifier
in interface JDOField
getPersistenceModifier
in class JDOFieldImplDynamic
PersistenceModifier.NONE
,
PersistenceModifier.PERSISTENT
,
PersistenceModifier.TRANSACTIONAL
, or
PersistenceModifier.POSSIBLY_PERSISTENT
.public int getRelativeFieldNumber()
getRelativeFieldNumber
in interface JDOField
getRelativeFieldNumber
in class JDOFieldImplDynamic
public boolean isDefaultFetchGroup()
isDefaultFetchGroup
in interface JDOField
isDefaultFetchGroup
in class JDOFieldImplDynamic
true
if the field is part of the default fetch
group, false
otherwisepublic boolean isEmbedded()
isEmbedded
in interface JDOField
isEmbedded
in class JDOFieldImplDynamic
true
if the field is stored as part of the instance;
false
otherwisepublic JavaField getJavaField()
getJavaField
in interface JDOField
getJavaField
in class JDOFieldImplDynamic
public JDORelationship getRelationship()
getRelationship
in interface JDOField
getRelationship
in class JDOFieldImplDynamic
null
if
this JDOField is not a relationshippublic JDOReference createJDOReference() throws ModelException
getRelationship()
returns the new created instance
this.getRelationship().getDeclaringField() == this
createJDOReference
in interface JDOField
createJDOReference
in class JDOFieldImplDynamic
ModelException
- if impossiblepublic JDOCollection createJDOCollection() throws ModelException
getRelationship()
returns the new created instance
this.getRelationship().getDeclaringField() == this
createJDOCollection
in interface JDOField
createJDOCollection
in class JDOFieldImplDynamic
ModelException
- if impossiblepublic JDOArray createJDOArray() throws ModelException
getRelationship()
returns the new created instance
this.getRelationship().getDeclaringField() == this
createJDOArray
in interface JDOField
createJDOArray
in class JDOFieldImplDynamic
ModelException
- if impossiblepublic JDOMap createJDOMap() throws ModelException
getRelationship()
returns the new created instance
this.getRelationship().getDeclaringField() == this
createJDOMap
in interface JDOField
createJDOMap
in class JDOFieldImplDynamic
ModelException
- if impossibleprotected JDOReference createJDOReferenceInternal()
createJDOReferenceInternal
in class JDOFieldImplDynamic
protected JDOCollection createJDOCollectionInternal()
createJDOCollectionInternal
in class JDOFieldImplDynamic
protected JDOArray createJDOArrayInternal()
createJDOArrayInternal
in class JDOFieldImplDynamic
protected JDOMap createJDOMapInternal()
createJDOMapInternal
in class JDOFieldImplDynamic
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.