|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
JDORelationship is the super interface for all interfaces representing JDO relationship metadata of a managed field of a persistence-capable class.
| Field Summary | |
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. |
| 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 interface org.apache.jdo.model.jdo.JDOElement |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
| Field Detail |
public static final int CARDINALITY_ZERO
public static final int CARDINALITY_ONE
public static final int CARDINALITY_N
| Method Detail |
public int getLowerBound()
public void setLowerBound(int lowerBound)
throws ModelException
lowerBound - an integer indicating the lower cardinality bound
ModelException - if impossiblepublic int getUpperBound()
public void setUpperBound(int upperBound)
throws ModelException
upperBound - an integer indicating the upper cardinality bound
ModelException - if impossiblepublic JDOField getDeclaringField()
null
if the element is not attached to any field
public void setDeclaringField(JDOField declaringField)
throws ModelException
declaringField - the declaring field of this relationship element
ModelException - if impossiblepublic JDORelationship getInverseRelationship()
public void setInverseRelationship(JDORelationship inverseRelationship)
throws ModelException
inverseRelationship - the inverse relationship
ModelException - if impossible
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||