|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicStepField
Basic implementation. The field alias is not set on default.
| Constructor Summary | |
BasicStepField(Step step,
CoreField field)
Constructor. |
|
| Method Summary | |
boolean |
equals(Object obj)
Compares this stepfield to the specified object. |
String |
getAlias()
Gets the alias for the associated field. |
CoreField |
getField()
Gets the associated field. |
String |
getFieldName()
Gets the name of the associated field (without prefix). |
static String |
getFieldName(StepField field)
Returns the field's fieldname, possibly extended with the step's name if known. |
Step |
getStep()
Gets the step associated with this fieldstep. |
int |
getType()
Gets the type of the associated field. |
int |
hashCode()
|
BasicStepField |
setAlias(String alias)
Sets alias property. |
String |
toString()
Returns a string representation of this StepField. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicStepField(Step step,
CoreField field)
step - The associated step.field - The associated field.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
public BasicStepField setAlias(String alias)
alias - The alias property.
BasicStepField instance.
IllegalArgumentException - when an invalid argument is supplied.public CoreField getField()
public String getFieldName()
StepFieldThis corresponds to the fieldname in SQL SELECT-syntax.
getFieldName in interface StepFieldpublic String getAlias()
StepFieldThis corresponds to the field alias in SQL SELECT-syntax.
getAlias in interface StepFieldpublic Step getStep()
StepField
getStep in interface StepFieldpublic int getType()
StepFieldField.
getType in interface StepFieldpublic boolean equals(Object obj)
StepFieldtrue if and only if the argument is a non-null
StepField object associated with the same field, using the same alias.
equals in interface StepFieldpublic int hashCode()
hashCode in interface StepFieldpublic static String getFieldName(StepField field)
field - the fieldname whose name to returnpublic String toString()
StepFieldgetStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
toString in interface StepField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||