|
|||||||||||
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
JDORelationship is the super interface for all interfaces representing JDO relationship metadata of a managed field of a persistence capable class.
Field Summary | |
private JDOField |
declaringField
Relationship JDOField<->JDORelationship. |
private JDORelationship |
inverse
Relationship JDORelationship<->JDORelationship. |
private int |
lowerBound
Property lowerBound. |
private int |
upperBound
Property upperBound. |
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 | |
JDORelationshipImpl()
|
Method Summary | |
JDOField |
getDeclaringField()
Get the declaring field of this JDORelationship. |
JDORelationship |
getInverseRelationship()
Get the inverse JDORelationship in the case of a managed relationship. |
int |
getLowerBound()
Get the lower cardinality bound for this relationship element. |
int |
getUpperBound()
Get the upper cardinality bound for this relationship element. |
void |
setDeclaringField(JDOField declaringField)
Set the declaring field of this JDORelationship. |
void |
setInverseRelationship(JDORelationship inverseRelationship)
Set the inverse JDORelationship in the case of a managed relationship. |
void |
setLowerBound(int lowerBound)
Set the lower cardinality bound for this relationship element. |
void |
setUpperBound(int upperBound)
Set the upper cardinality bound for this relationship element. |
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.JDOElement |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
Field Detail |
private int lowerBound
private int upperBound
private JDOField declaringField
private JDORelationship inverse
Constructor Detail |
public JDORelationshipImpl()
Method Detail |
public int getLowerBound()
getLowerBound
in interface JDORelationship
public void setLowerBound(int lowerBound)
setLowerBound
in interface JDORelationship
lowerBound
- an integer indicating the lower cardinality boundpublic int getUpperBound()
getUpperBound
in interface JDORelationship
public void setUpperBound(int upperBound)
setUpperBound
in interface JDORelationship
upperBound
- an integer indicating the upper cardinality boundpublic JDOField getDeclaringField()
getDeclaringField
in interface JDORelationship
null
if the element is not attached to any fieldpublic void setDeclaringField(JDOField declaringField)
setDeclaringField
in interface JDORelationship
declaringField
- the declaring field of this relationship elementpublic JDORelationship getInverseRelationship()
getInverseRelationship
in interface JDORelationship
public void setInverseRelationship(JDORelationship inverseRelationship)
setInverseRelationship
in interface JDORelationship
inverseRelationship
- the inverse relationship
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |