|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.jdo.JDOElementImpl
org.apache.jdo.impl.model.jdo.JDORelationshipImpl
org.apache.jdo.impl.model.jdo.JDOCollectionImplDynamic
An instance of this class represents the JDO relationship metadata of a collection relationship field. This dynamic implementation only stores property values explicitly set by setter method.
Field Summary | |
protected JavaType |
elementType
Property elementType. |
private java.lang.String |
elementTypeName
Property elementTypeName. |
protected java.lang.Boolean |
embeddedElement
Property embeddedElement. |
private static I18NHelper |
msg
I18N support |
Fields inherited from class org.apache.jdo.impl.model.jdo.JDORelationshipImpl |
inverse, mappedBy |
Fields inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl |
|
Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship |
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO |
Constructor Summary | |
JDOCollectionImplDynamic()
|
Method Summary | |
JavaType |
getElementType()
Get the type representation of the collection elements. |
java.lang.String |
getElementTypeName()
Get the type of collection elements as string. |
JavaType |
getRelatedJavaType()
Get the type representation of the relationship. |
boolean |
isEmbeddedElement()
Determines whether the values of the elements should be stored if possible as part of the instance instead of as their own instances in the datastore. |
boolean |
isJDOCollection()
Determines whether this JDORelationship represents a collection relationship or not. |
void |
setElementType(JavaType elementType)
Set the type representation of the collection elements. |
void |
setElementTypeName(java.lang.String elementTypeName)
Set string representation of the type of collection elements. |
void |
setEmbeddedElement(boolean embeddedElement)
Set whether the values of the elements 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.JDORelationshipImpl |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, 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, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOMap, isJDOReference, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound |
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
Field Detail |
protected java.lang.Boolean embeddedElement
protected transient JavaType elementType
private java.lang.String elementTypeName
private static final I18NHelper msg
Constructor Detail |
public JDOCollectionImplDynamic()
Method Detail |
public boolean isEmbeddedElement()
isEmbeddedElement
in interface JDOCollection
true
if the elements should be stored as part of
the instance; false
otherwisepublic void setEmbeddedElement(boolean embeddedElement)
setEmbeddedElement
in interface JDOCollection
embeddedElement
- true
if elements should be stored
as part of the instancepublic JavaType getElementType()
getElementType
in interface JDOCollection
public void setElementType(JavaType elementType)
setElementType
in interface JDOCollection
elementType
- the type representation of the collection elementspublic java.lang.String getElementTypeName()
getElementTypeName
in interface JDOCollection
public void setElementTypeName(java.lang.String elementTypeName)
setElementTypeName
in interface JDOCollection
elementTypeName
- a string representation of the type of elements in
the collection.public boolean isJDOCollection()
true
means this
JDORelationship is a JDOCollection instance.
isJDOCollection
in interface JDORelationship
isJDOCollection
in class JDORelationshipImpl
true
if this JDORelationship represents a
collection relationship; false
otherwise.public JavaType getRelatedJavaType()
getRelatedJavaType
in class JDORelationshipImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |