| java.lang.Object org.jaffa.components.finder.DecimalCriteriaField
DecimalCriteriaField | public class DecimalCriteriaField implements CriteriaField(Code) | | This class will be used by the Finder components to hold a Decimal criteria.
|
DecimalCriteriaField | public DecimalCriteriaField(String operator, Double 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'. |
DecimalCriteriaField | public DecimalCriteriaField(String operator, Double[] 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'. |
DecimalCriteriaField | public DecimalCriteriaField()(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.
|
getDecimalCriteriaField | public static DecimalCriteriaField getDecimalCriteriaField(String operator, String value, DecimalFieldMetaData meta) throws FormatDecimalException(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: FormatDecimalException - if the value is incorrectly formatted. |
getOperator | public String getOperator()(Code) | | Getter for property operator.
Value of property operator. |
getValues | public Double[] 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(Double[] 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. |
|
|