| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.components.finder.IntegerCriteriaField
This class will be used by the Finder components to hold an Integer criteria.
| Field Summary | 
| Constructor Summary | |
| IntegerCriteriaField()Default constructor. | |
| IntegerCriteriaField(String operator,
                                         Long value)Adds a Criteria. | |
| IntegerCriteriaField(String operator,
                                         Long[] values)Adds a Criteria. | |
| Method Summary | |
| static IntegerCriteriaField | getIntegerCriteriaField(String operator,
                                               String value,
                                               IntegerFieldMetaData meta)This will generate a CriteriaField object based on the input parameters. | 
|  String | getOperator()Getter for property operator. | 
|  Long[] | getValues()Getter for property values. | 
|  Object[] | returnValuesAsObjectArray()Getter for property values. | 
|  void | setOperator(String operator)Setter for the property operator. | 
|  void | setValues(Long[] 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 IntegerCriteriaField(String operator,
                            Long 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 IntegerCriteriaField(String operator,
                            Long[] 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 IntegerCriteriaField()
| Method Detail | 
public String getOperator()
getOperator in interface CriteriaFieldpublic Object[] returnValuesAsObjectArray()
returnValuesAsObjectArray in interface CriteriaFieldpublic Long[] getValues()
public String toString()
public static IntegerCriteriaField getIntegerCriteriaField(String operator,
                                                           String value,
                                                           IntegerFieldMetaData meta)
                                                    throws FormatIntegerException
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.
FormatIntegerException - if the value is incorrectly formatted.public void setOperator(String operator)
operator - The value of the property operator.public void setValues(Long[] values)
values - The value of the property values.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||