| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.components.finder.DateTimeCriteriaField
This class will be used by the Finder components to hold a DateTime criteria.
| Field Summary | 
| Constructor Summary | |
| DateTimeCriteriaField()Default constructor. | |
| DateTimeCriteriaField(String operator,
                                           DateTime value)Adds a Criteria. | |
| DateTimeCriteriaField(String operator,
                                           DateTime[] values)Adds a Criteria. | |
| Method Summary | |
| static DateTimeCriteriaField | getDateTimeCriteriaField(String operator,
                                                 String value,
                                                 DateTimeFieldMetaData meta)This will generate a CriteriaField object based on the input parameters. | 
|  String | getOperator()Getter for property operator. | 
|  DateTime[] | getValues()Getter for property values. | 
|  Object[] | returnValuesAsObjectArray()Getter for property values. | 
|  void | setOperator(String operator)Setter for the property operator. | 
|  void | setValues(DateTime[] values)Setter for the property values. | 
|  String | toString()Returns diagnostic information. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public DateTimeCriteriaField(String operator,
                             DateTime value)
                      throws IllegalArgumentException
operator - the operator of the criteria.value - the value of the criteria.
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'.
public DateTimeCriteriaField(String operator,
                             DateTime[] values)
                      throws IllegalArgumentException
operator - the operator of the criteria.values - the value array of the criteria.
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'.public DateTimeCriteriaField()
| Method Detail | 
public String getOperator()
getOperator in interface CriteriaFieldpublic Object[] returnValuesAsObjectArray()
returnValuesAsObjectArray in interface CriteriaFieldpublic DateTime[] getValues()
public String toString()
public static DateTimeCriteriaField getDateTimeCriteriaField(String operator,
                                                             String value,
                                                             DateTimeFieldMetaData meta)
                                                      throws FormatDateTimeException
operator - The operator of the criteria.value - The value for the criteria. Multiple values should be separated by comma.meta - The FieldMetaData object to obtain the layout for parsing.
FormatDateTimeException - if the value is incorrectly formatted.public void setOperator(String operator)
operator - The value of the property operator.public void setValues(DateTime[] values)
values - The value of the property values.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||