| java.lang.Object org.mmbase.storage.search.implementation.BasicStepField
All known Subclasses: org.mmbase.storage.search.implementation.BasicAggregatedField,
BasicStepField | public class BasicStepField implements StepField(Code) | | Basic implementation.
The field alias is not set on default.
author: Rob van Maris version: $Id: BasicStepField.java,v 1.27 2007/08/08 09:38:28 michiel Exp $ since: MMBase-1.7 |
BasicStepField | public BasicStepField(Step step, CoreField field)(Code) | | Constructor.
Parameters: step - The associated step. Parameters: field - The associated field. throws: IllegalArgumentException - when an invalid argument is supplied. |
compareSteps | static boolean compareSteps(Step step1, Step step2)(Code) | | Utility method, compares steps by their alias or table name.
Steps are considered equal if their aliases are equal.
When their aliases are null , the steps are considered
equal if their tablenames are equal as well.
This can be used to verify that both steps refer to the same step
in a SearchQuery object.
Note that this differs from the equality defined by their
org.mmbase.storage.search.Step.equals equals() method.
Parameters: step1 - The first step. Parameters: step2 - The second step. true when the steps are considered equal,false otherwise. |
equalFieldValues | static boolean equalFieldValues(Object value1, Object value2)(Code) | | Compares two field values for equality.
Numerical fields are compared based on their numerical value, as they
may be of different type.
Parameters: value1 - The first value, either a String or a Number Parameters: value2 - The second value, either a String or a Number True if both values represent the same string or numerical value. |
getField | public CoreField getField()(Code) | | Gets the associated field.
The field. |
getFieldName | public static String getFieldName(StepField field)(Code) | | Returns the field's fieldname, possibly extended with the step's name if known.
May return null or partial fieldnames if not all data is available (for use in debugging).
Parameters: field - the fieldname whose name to return |
getType | public int getType()(Code) | | |
hashCode | public int hashCode()(Code) | | |
testValue | static void testValue(Object value, StepField field)(Code) | | Tests if a value is acceptable for comparison with a certain field.
Parameters: value - The value to be tested. Parameters: field - The non-null field. throws: IllegalArgumentException - when the value is not acceptablefor this field. |
|
|