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