|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IEntityRelationPath interface is used to define a path between two different IEntityDescriptor objects.
Field Summary | |
static int |
MANY
Constant value returned by the getCardinality methods. |
static int |
ONE
Constant value returned by the getCardinality methods. |
Method Summary | |
java.lang.String |
convertToString()
Returns a string representation of this IEntirtyRelationPath that can be used to restore this IEntirtyRelationPath. |
IEntityDescriptor |
getFirstEntityDescriptor()
Returns the IEntityDescriptor object that marks is the start point of the relation path. |
java.util.Iterator |
getFirstFieldDescriptors()
Returns the IFieldDescriptor objects that marks is the start point of the relation path. |
IEntityRelation |
getFirstRelation()
Returns the IEntityRelation object that marks is the start point of the relation path. |
int |
getForwardCardinality()
Access method that returns the cardinality for the IEntityDescriptor object at the begining of the relation path. |
IEntityDescriptor |
getLastEntityDescriptor()
Returns the IEntityDescriptor object that marks is the end point of the relation path. |
java.util.Iterator |
getLastFieldDescriptors()
Returns the IFieldDescriptor objects that marks is the end point of the relation path. |
IEntityRelation |
getLastRelation()
Returns the IEntityRelation object that marks is the end point of the relation path. |
IEntityRelation |
getRelation(int index)
Access method that returns the indexed IEntityRelation object. |
int |
getRelationCount()
Access method that returns the number of IEntityRelation objects that defines the relation path. |
Qualifier |
getRelationQualifier()
Returns a Qualifier that satisfies all the field requirements that have to be satisfied to define a relation between the first and last entity descriptor of the relation path. |
java.util.Iterator |
getRelations()
Access method that returns all IEntityRelation objects in the path in the form of an Iterator. |
int |
getReverseCardinality()
Access method that returns the cardinality for the IEntityDescriptor object at the end of the relation path. |
boolean |
isFirstRelationByReference()
Returns true if the start relation starts on the reference side. |
boolean |
isLastRelationByReference()
Returns true if the last relation starts on the reference side. |
boolean |
isRelatedByPath(IEntityDescriptor descriptor1,
IEntityDescriptor descriptor2)
This help method returns true if the provided entity descriptors are related "along" the called relation path. |
boolean |
isRelationByReference(int index)
Returns true if the indexed relation is followed in the forward directiona long the path by the reference side of the entity relation. |
Field Detail |
public static final int ONE
public static final int MANY
Method Detail |
public IEntityRelation getFirstRelation()
public boolean isFirstRelationByReference()
public IEntityDescriptor getFirstEntityDescriptor()
public java.util.Iterator getFirstFieldDescriptors()
public IEntityRelation getLastRelation()
public boolean isLastRelationByReference()
public IEntityDescriptor getLastEntityDescriptor()
public java.util.Iterator getLastFieldDescriptors()
public int getRelationCount()
public IEntityRelation getRelation(int index)
public boolean isRelationByReference(int index)
public java.util.Iterator getRelations()
public int getForwardCardinality()
public int getReverseCardinality()
public Qualifier getRelationQualifier()
public boolean isRelatedByPath(IEntityDescriptor descriptor1, IEntityDescriptor descriptor2)
Note that the descriptors are are only considered to be related "along the path" if they satisfies the end-node field requriments for relationship. In other words the ENTIRE path must followed for this method to consider the descriptors as related.
public java.lang.String convertToString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |