|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A relationstep refers to a table of relations between the previous and next step. Relationstep are used to create a path of related objects.
This corresponds to a constraint joining the three tables in SQL SELECT-syntax.
Note that tables can also be joined using FieldCompareConstraints.
| Field Summary | |
static java.lang.String[] |
DIRECTIONALITY_NAMES
Directionality names corresponding to the direction values. |
static int |
DIRECTIONS_ALL
Directionality following relations both ways, including unidirectional relations. |
static int |
DIRECTIONS_BOTH
Directionality following relations both ways (source to destination AND destination to source). |
static int |
DIRECTIONS_DESTINATION
Directionality following relations from source to destination. |
static int |
DIRECTIONS_EITHER
Directionality following relations from destination to source. |
static int |
DIRECTIONS_SOURCE
Directionality following relations from destination to source. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this relationstep to the specified object. |
boolean |
getCheckedDirectionality()
Gets the value of the checkedDirectionality property. |
int |
getDirectionality()
Gets the directionality mode used with this relation. |
Step |
getNext()
Gets the next step. |
Step |
getPrevious()
Gets the previous step. |
java.lang.Integer |
getRole()
Gets the role for this relation, if specified. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a string representation of this RelationStep. |
| Methods inherited from interface org.mmbase.storage.search.Step |
getAlias, getNodes, getTableName |
| Field Detail |
public static final int DIRECTIONS_BOTH
public static final int DIRECTIONS_DESTINATION
public static final int DIRECTIONS_SOURCE
public static final int DIRECTIONS_ALL
public static final int DIRECTIONS_EITHER
public static final java.lang.String[] DIRECTIONALITY_NAMES
| Method Detail |
public boolean getCheckedDirectionality()
DIRECTIONS_SOURCE or DIRECTIONS_BOTH.
When this value is true, only bi-directional relations are followed from destination to source. Otherwise unidirectional relations are followed from destination to source as well.
public int getDirectionality()
public java.lang.Integer getRole()
RelDef node, or
null.
public Step getPrevious()
public Step getNext()
public boolean equals(java.lang.Object obj)
true if and only if the argument is a non-null
RelationStep object with the same directionality and role,
associated with the same tablename,
using the same alias and including the same nodes.
equals in interface Stepobj - The object to compare with.
true if the objects are equal,
false otherwise.Step.equals(java.lang.Object)public int hashCode()
hashCode in interface Steppublic java.lang.String toString()
getTableName()
getAlias()
getNodes()
getDirectionality()
getRole()
toString in interface Step
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||