public class BasicRelationStep extends BasicStep implements RelationStep, Serializable
The checkedDirectionality property defaults to false. The directionality property defaults to DIRECTIONS_BOTH.
alias, builder, modifiable, nodesDIRECTIONALITY_DESCRIPTIONS, DIRECTIONS_ALL, DIRECTIONS_BOTH, DIRECTIONS_DESTINATION, DIRECTIONS_EITHER, DIRECTIONS_SOURCE| Constructor and Description |
|---|
BasicRelationStep(InsRel builder,
Step previous,
Step next)
Creator.
|
BasicRelationStep(String builder,
Step previous,
Step next) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this step to the specified object.
|
boolean |
getCheckedDirectionality()
Gets the value of the checkedDirectionality property.
|
int |
getDirectionality()
Gets the directionality mode used with this relation.
|
String |
getDirectionalityDescription()
Returns a description of the part
|
Step |
getNext()
Gets the next step.
|
Step |
getPrevious()
Gets the previous step.
|
Integer |
getRole()
Gets the role for this relation, if specified.
|
String |
getRoleDescription() |
int |
hashCode() |
BasicRelationStep |
setCheckedDirectionality(boolean checkedDirectionality)
Sets checkedDirectionality property.
|
BasicRelationStep |
setDirectionality(int directionality)
Sets directionality property.
|
BasicRelationStep |
setRole(Integer role)
Sets role property.
|
String |
toString()
Returns a string representation of this Step.
|
addNode, getAlias, getBuilder, getNodes, getTableName, setAlias, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddNode, getAlias, getNodes, getTableName, setUnmodifiableBasicRelationStep(InsRel builder, Step previous, Step next)
builder - The relation builder.previous - The previous step.next - The next step.IllegalArgumentException - when an invalid argument is supplied.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.IllegalArgumentException - when an invalid argument is supplied.public BasicRelationStep setRole(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()
RelationStepgetDirectionality in interface RelationSteppublic String getDirectionalityDescription()
public Integer getRole()
RelationStepRelDef node, or
null.getRole in interface RelationSteppublic String getRoleDescription()
public Step getPrevious()
RelationStepgetPrevious in interface RelationSteppublic Step getNext()
RelationStepgetNext in interface RelationSteppublic boolean equals(Object obj)
Steptrue if and only if the argument is a non-null
Step, but not RelationStep, object associated with the same tablename,
using the same alias and including the same nodes.equals in interface RelationStepequals in interface Stepequals in class BasicStepobj - The object to compare with.true if the objects are equal,
false otherwise.RelationStep.equals(java.lang.Object)public int hashCode()
public String toString()
StepgetTableName()
getAlias()
getNodes()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}