public class BasicStep extends Object implements Step, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected String |
builder |
protected boolean |
modifiable |
protected SortedSet<Integer> |
nodes
Nodenumber set for nodes to be included (ordered
using integer comparison).
|
| Constructor and Description |
|---|
BasicStep(MMObjectBuilder builder) |
BasicStep(String builder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Step |
addNode(int nodeNumber)
Adds node to nodes.
|
boolean |
equals(Object obj)
Compares this step to the specified object.
|
String |
getAlias()
Gets the alias associated with this step.
|
MMObjectBuilder |
getBuilder()
Gets the associated builder.
|
SortedSet<Integer> |
getNodes()
Gets nodenumbers for nodes that must be included in this step.
|
String |
getTableName()
Gets the name of the table referred to by this step.
|
int |
hashCode() |
BasicStep |
setAlias(String alias)
Sets alias property.
|
void |
setUnmodifiable() |
String |
toString()
Returns a string representation of this Step.
|
protected final String builder
protected String alias
protected SortedSet<Integer> nodes
protected boolean modifiable
BasicStep(String builder)
builder - The builder.IllegalArgumentException - when an invalid argument is supplied.BasicStep(MMObjectBuilder builder)
public BasicStep setAlias(String alias)
alias - The alias property.BasicStep instance.IllegalArgumentException - when an invalid argument is supplied.public Step addNode(int nodeNumber)
addNode in interface StepnodeNumber - The nodenumber of the node.BasicStep instance.IllegalArgumentException - when an invalid argument is supplied.public MMObjectBuilder getBuilder()
public String getTableName()
StepThis corresponds to a table name in SQL SELECT-syntax.
getTableName in interface Steppublic String getAlias()
StepThis corresponds to a table alias in SQL SELECT-syntax.
public SortedSet<Integer> getNodes()
Stepnull value indicates that no such constraint is applied.
This corresponds to a "number IN (....)" constraint in SQL SELECT syntax.
Note that this can also be achieved by using a FieldValueInConstraint on the "number" field.
public 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 Stepequals in class Objectobj - 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()
public void setUnmodifiable()
setUnmodifiable in interface StepMMBase 1.9-SNAPSHOT - ${javadoctimestamp}