|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A JDOMap instance represents the JDO relationship metadata (the treatment of keys and values) of a map relationship field.
Field Summary |
Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship |
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO |
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 |
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. |
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 interface org.apache.jdo.model.jdo.JDORelationship |
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOCollection, 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 |
Method Detail |
public boolean isEmbeddedKey()
true
if the keys are stored as part of this instance;
false
otherwisepublic void setEmbeddedKey(boolean embeddedKey) throws ModelException
embeddedKey
- true
if the keys are stored as part of
this instance; false
otherwise
ModelException
- if impossiblepublic JavaType getKeyType()
public void setKeyType(JavaType keyType) throws ModelException
keyType
- the type representation of the keys
ModelException
- if impossiblepublic java.lang.String getKeyTypeName()
public void setKeyTypeName(java.lang.String keyTypeName) throws ModelException
keyTypeName
- the name of the key type
ModelException
- if impossiblepublic boolean isEmbeddedValue()
true
if the values are stored as part of this
instance; false
otherwisepublic void setEmbeddedValue(boolean embeddedValue) throws ModelException
embeddedValue
- true
if the values are stored as part
of this instance; false
otherwise
ModelException
- if impossiblepublic JavaType getValueType()
public void setValueType(JavaType valueType) throws ModelException
valueType
- the type representation of the values
ModelException
- if impossiblepublic java.lang.String getValueTypeName()
public void setValueTypeName(java.lang.String valueTypeName) throws ModelException
valueTypeName
- the name of the value type
ModelException
- if impossible
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |