|
||||||||||
| 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
public class 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. |
protected JavaType |
valueType
Property valueType. |
| 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 |
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 class org.apache.jdo.impl.model.jdo.JDORelationshipImpl |
|---|
getDeclaringField, getInverseRelationship, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, 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, getLowerBound, getUpperBound, setDeclaringField, setInverseRelationship, setLowerBound, 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
protected java.lang.Boolean embeddedValue
protected transient JavaType valueType
| 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 type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||