|
|||||||||||
| 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.JDOMapImplDynamic
An instance of this class represents the JDO relationship metadata (the treatment of keys and values) of a map relationship field. This dynamic implementation only stores property values explicitly set by setter method.
| Field Summary | |
protected java.lang.Boolean |
embeddedKey
Property embeddedKey. |
protected java.lang.Boolean |
embeddedValue
Property embeddedValue. |
protected JavaType |
keyType
Property keyType. |
private java.lang.String |
keyTypeName
Property keyTypeName. |
private static I18NHelper |
msg
I18N support |
protected JavaType |
valueType
Property valueType. |
private java.lang.String |
valueTypeName
Property valueTypeName. |
| 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 | |
JDOMapImplDynamic()
|
|
| Method Summary | |
JavaType |
getKeyType()
Get the type representation of the keys for this JDOMap. |
java.lang.String |
getKeyTypeName()
Get the string representation of the type of the keys for this JDOMap. |
JavaType |
getRelatedJavaType()
Get the type representation of the relationship. |
JavaType |
getValueType()
Get the type representation of the values for this JDOMap. |
java.lang.String |
getValueTypeName()
Get the string representation of the type of the values for this JDOMap. |
boolean |
isEmbeddedKey()
Determines whether the keys of the map should be stored if possible as part of the instance instead of as their own instances in the datastore. |
boolean |
isEmbeddedValue()
Determines whether the values of the map should be stored if possible as part of the instance instead of as their own instances in the datastore. |
boolean |
isJDOMap()
Determines whether this JDORelationship represents a map relationship or not. |
void |
setEmbeddedKey(boolean embeddedKey)
Set whether the keys of the map should be stored if possible as part of the instance instead of as their own instances in the datastore. |
void |
setEmbeddedValue(boolean embeddedValue)
Set whether the values of the map should be stored if possible as part of the instance instead of as their own instances in the datastore. |
void |
setKeyType(JavaType keyType)
Set the type representation of the keys for this JDOMap. |
void |
setKeyTypeName(java.lang.String keyTypeName)
Set string representation of the type of the keys for this JDOMap. |
void |
setValueType(JavaType valueType)
Set the type representation of the values for this JDOMap. |
void |
setValueTypeName(java.lang.String valueTypeName)
Set string representation of the type of the values for this JDOMap. |
| Methods inherited from class org.apache.jdo.impl.model.jdo.JDORelationshipImpl |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOCollection, 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, isJDOCollection, 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 embeddedKey
protected transient JavaType keyType
private java.lang.String keyTypeName
protected java.lang.Boolean embeddedValue
protected transient JavaType valueType
private java.lang.String valueTypeName
private static final I18NHelper msg
| Constructor Detail |
public JDOMapImplDynamic()
| Method Detail |
public boolean isEmbeddedKey()
isEmbeddedKey in interface JDOMaptrue if the keys are stored as part of this instance;
false otherwisepublic void setEmbeddedKey(boolean embeddedKey)
setEmbeddedKey in interface JDOMapembeddedKey - true if the keys are stored as part of
this instance; false otherwisepublic JavaType getKeyType()
getKeyType in interface JDOMappublic void setKeyType(JavaType keyType)
setKeyType in interface JDOMapkeyType - the type representation of the keyspublic java.lang.String getKeyTypeName()
getKeyTypeName in interface JDOMappublic void setKeyTypeName(java.lang.String keyTypeName)
setKeyTypeName in interface JDOMapkeyTypeName - the name of the key typepublic boolean isEmbeddedValue()
isEmbeddedValue in interface JDOMaptrue if the values are stored as part of this
instance; false otherwisepublic void setEmbeddedValue(boolean embeddedValue)
setEmbeddedValue in interface JDOMapembeddedValue - true if the values are stored as part
of this instance; false otherwisepublic JavaType getValueType()
getValueType in interface JDOMappublic void setValueType(JavaType valueType)
setValueType in interface JDOMapvalueType - the type representation of the valuespublic java.lang.String getValueTypeName()
getValueTypeName in interface JDOMappublic void setValueTypeName(java.lang.String valueTypeName)
setValueTypeName in interface JDOMapvalueTypeName - the name of the value typepublic boolean isJDOMap()
true means this
JDORelationship is a JDOMap instance.
isJDOMap in interface JDORelationshipisJDOMap in class JDORelationshipImpltrue if this JDORelationship represents a
map 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 | ||||||||||