public interface JDORelationship extends JDOElement
| Modifier and Type | Field and Description |
|---|---|
static int |
CARDINALITY_N
Constant representing the cardinality n used for lower and upper bounds.
|
static int |
CARDINALITY_ONE
Constant representing the cardinality one used for lower and upper bounds.
|
static int |
CARDINALITY_ZERO
Constant representing the cardinality zero used for lower and upper
bounds.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListenerstatic final int CARDINALITY_ZERO
static final int CARDINALITY_ONE
static final int CARDINALITY_N
int getLowerBound()
void setLowerBound(int lowerBound)
throws ModelException
lowerBound - an integer indicating the lower cardinality boundModelException - if impossibleint getUpperBound()
void setUpperBound(int upperBound)
throws ModelException
upperBound - an integer indicating the upper cardinality boundModelException - if impossibleJDOField getDeclaringField()
null
if the element is not attached to any fieldvoid setDeclaringField(JDOField declaringField) throws ModelException
declaringField - the declaring field of this relationship elementModelException - if impossibleJDORelationship getInverseRelationship()
void setInverseRelationship(JDORelationship inverseRelationship) throws ModelException
inverseRelationship - the inverse relationshipModelException - if impossibleCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.