|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicStep
org.mmbase.storage.search.implementation.BasicRelationStep
Basic implementation.
The checkedDirectionality property defaults to false. The directionality property defaults to DIRECTIONS_BOTH.
| Field Summary |
| Fields inherited from interface org.mmbase.storage.search.RelationStep |
DIRECTIONALITY_NAMES, DIRECTIONS_ALL, DIRECTIONS_BOTH, DIRECTIONS_DESTINATION, DIRECTIONS_EITHER, DIRECTIONS_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()
|
BasicRelationStep |
setCheckedDirectionality(boolean checkedDirectionality)
Sets checkedDirectionality property. |
BasicRelationStep |
setDirectionality(int directionality)
Sets directionality property. |
BasicRelationStep |
setRole(java.lang.Integer role)
Sets role property. |
java.lang.String |
toString()
Returns a string representation of this RelationStep. |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicStep |
addNode, getAlias, getBuilder, getNodes, getTableName, setAlias |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.Step |
getAlias, getNodes, getTableName |
| Method Detail |
public BasicRelationStep setCheckedDirectionality(boolean checkedDirectionality)
checkedDirectionality - The checkedDirectionality property.
BasicRelationStep instance.getCheckedDirectionality()public BasicRelationStep setDirectionality(int directionality)
directionality - The directionality.
Must be one of the values defined in
RelationStep.
BasicRelationStep instance.
java.lang.IllegalArgumentException - when an invalid argument is supplied.public BasicRelationStep setRole(java.lang.Integer role)
role - The role.
BasicRelationStep instance.public boolean getCheckedDirectionality()
RelationStepRelationStep.DIRECTIONS_SOURCE or RelationStep.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.
getCheckedDirectionality in interface RelationSteppublic int getDirectionality()
RelationStep
getDirectionality in interface RelationSteppublic java.lang.Integer getRole()
RelationStepRelDef node, or
null.
getRole in interface RelationSteppublic Step getPrevious()
RelationStep
getPrevious in interface RelationSteppublic Step getNext()
RelationStep
getNext in interface RelationSteppublic boolean equals(java.lang.Object obj)
RelationSteptrue 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 RelationStepequals in class BasicSteppublic int hashCode()
hashCode in interface RelationStephashCode in class BasicSteppublic java.lang.String toString()
RelationStepgetTableName()
getAlias()
getNodes()
getDirectionality()
getRole()
toString in interface RelationSteptoString in class BasicStep
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||