|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicStep
public class BasicStep
Basic implementation. The step alias is not set on default.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BasicStep(String builder)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
SortedSet<Integer> |
getNodes()
Gets nodenumbers for nodes that must be included in this step. |
String |
getTableName()
Gets the associated builder. |
int |
hashCode()
|
BasicStep |
setAlias(String alias)
Sets alias property. |
void |
setUnmodifiable()
|
String |
toString()
Returns a string representation of this Step. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String builder
protected String alias
protected SortedSet<Integer> nodes
protected boolean modifiable
| Constructor Detail |
|---|
BasicStep(String builder)
builder - The builder.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
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 String getTableName()
getTableName in interface Steppublic String getAlias()
StepThis corresponds to a table alias in SQL SELECT-syntax.
getAlias in interface Steppublic 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.
getNodes in interface Steppublic 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()
hashCode in interface StephashCode in class Objectpublic String toString()
StepgetTableName()
getAlias()
getNodes()
toString in interface SteptoString in class Objectpublic void setUnmodifiable()
setUnmodifiable in interface Step
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||