| java.lang.Object org.jaffa.components.finder.IntegerCriteriaField
IntegerCriteriaField | public class IntegerCriteriaField implements CriteriaField(Code) | | This class will be used by the Finder components to hold an Integer criteria.
|
Constructor Summary | |
public | IntegerCriteriaField(String operator, Long value) Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: value - the value of the criteria. throws: IllegalArgumentException - if the operator is null. | public | IntegerCriteriaField(String operator, Long[] values) Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: values - the value array of the criteria. throws: IllegalArgumentException - if the operator is null. | public | IntegerCriteriaField() Default constructor.
NOTE: This was added to support tools, which create instances of this class by bean introspection. |
IntegerCriteriaField | public IntegerCriteriaField(String operator, Long value) throws IllegalArgumentException(Code) | | Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: value - the value of the criteria. throws: IllegalArgumentException - if the operator is null. The exception will also be thrown if the value is null and the operator is neither 'IsNull' nor 'IsNotNull'. |
IntegerCriteriaField | public IntegerCriteriaField(String operator, Long[] values) throws IllegalArgumentException(Code) | | Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: values - the value array of the criteria. throws: IllegalArgumentException - if the operator is null. The exception will also be thrown if the value is null and the operator is neither 'IsNull' nor 'IsNotNull'. |
IntegerCriteriaField | public IntegerCriteriaField()(Code) | | Default constructor.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
|
getIntegerCriteriaField | public static IntegerCriteriaField getIntegerCriteriaField(String operator, String value, IntegerFieldMetaData meta) throws FormatIntegerException(Code) | | This will generate a CriteriaField object based on the input parameters.
Parameters: operator - The operator of the criteria. Parameters: value - The value for the criteria. Multiple values should be separated by comma. Parameters: meta - The FieldMetaData object to obtain the layout for parsing. a CriteriaField object based on the input parameters. throws: FormatIntegerException - if the value is incorrectly formatted. |
getOperator | public String getOperator()(Code) | | Getter for property operator.
Value of property operator. |
getValues | public Long[] getValues()(Code) | | Getter for property values.
An array of values for the Criteria. |
returnValuesAsObjectArray | public Object[] returnValuesAsObjectArray()(Code) | | Getter for property values.
This basically invokes the getValues() method.
An array of values for the Criteria. |
setOperator | public void setOperator(String operator)(Code) | | Setter for the property operator.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
Parameters: operator - The value of the property operator. |
setValues | public void setValues(Long[] values)(Code) | | Setter for the property values.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
Parameters: values - The value of the property values. |
toString | public String toString()(Code) | | Returns diagnostic information.
diagnostic information. |
|
|