org.mmbase.storage.search
Interface StepField

All Known Subinterfaces:
AggregatedField
All Known Implementing Classes:
BasicAggregatedField, BasicStepField

public interface StepField

A stepfield refers to a field in a step. Each stepfield has an unique alias to identify it.

This corresponds to a prefixed fieldname in a SQL SELECT-syntax.

Since:
MMBase-1.7
Version:
$Id: StepField.java,v 1.3 2003/03/10 11:50:52 pierre Exp $
Author:
Rob van Maris

Method Summary
 boolean equals(java.lang.Object obj)
          Compares this stepfield to the specified object.
 java.lang.String getAlias()
          Gets the alias for the associated field.
 java.lang.String getFieldName()
          Gets the name of the associated field (without prefix).
 Step getStep()
          Gets the step associated with this fieldstep.
 int getType()
          Gets the type of the associated field.
 int hashCode()
           
 java.lang.String toString()
          Returns a string representation of this StepField.
 

Method Detail

getFieldName

public java.lang.String getFieldName()
Gets the name of the associated field (without prefix).

This corresponds to the fieldname in SQL SELECT-syntax.


getAlias

public java.lang.String getAlias()
Gets the alias for the associated field.

This corresponds to the field alias in SQL SELECT-syntax.


getStep

public Step getStep()
Gets the step associated with this fieldstep.


getType

public int getType()
Gets the type of the associated field. This is one of the values defined in FieldDefs.


equals

public boolean equals(java.lang.Object obj)
Compares this stepfield to the specified object. The result is true if and only if the argument is a non-null StepField object associated with the same field, using the same alias.

Parameters:
obj - The object to compare with.
Returns:
true if the objects are equal, false otherwise.

hashCode

public int hashCode()

toString

public java.lang.String toString()
Returns a string representation of this StepField. The string representation has the form "StepField(step:<step>, fieldname:<fieldname>, alias:<alias>)" where

Returns:
A string representation of this StepField.


MMBase build 1.7.4.20050922