org.kuali.student.contract.model.test.source
Class ComparisonInfo

java.lang.Object
  extended by org.kuali.student.contract.model.test.source.ComparisonInfo
All Implemented Interfaces:
Serializable, Comparison

public class ComparisonInfo
extends Object
implements Comparison, Serializable

See Also:
Serialized Form

Nested Class Summary
static class ComparisonInfo.Builder
           
 
Method Summary
 String getFieldKey()
          Name: Field Key Dot path notation to identity the name of field to be compared
 String getOperator()
          Name: Operator Operator to use to compare the field to the value.
 List<String> getValues()
          Name: Criteria Value(s) Value to be compared
 boolean isIgnoreCase()
          Name: Ignore Case? Check if should ignore case when doing the comparison Default is false If true then the case of both the specified comparison value(s) and the data value from the field should be ignored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldKey

public String getFieldKey()
Description copied from interface: Comparison
Name: Field Key Dot path notation to identity the name of field to be compared

Specified by:
getFieldKey in interface Comparison

getOperator

public String getOperator()
Description copied from interface: Comparison
Name: Operator Operator to use to compare the field to the value. The valid values are:
  1. =
  2. in
  3. <
  4. !=
  5. >=
  6. <=
  7. like
  8. between
The operators should work similar to their corresponding SQL operators. Complex objects can only be checked to see if they are null or not null. "in" operator takes a list of values "between" operator takes two values for from and thru inclusive all others take a single value TODO: Decide for complex Lists can they be checked to see how many occurences they have? TODO: Decide on other operators TODO: Deicde on operators to search collections inside such as any TODO: Decide how to search on dynamic attributes

Specified by:
getOperator in interface Comparison

getValues

public List<String> getValues()
Description copied from interface: Comparison
Name: Criteria Value(s) Value to be compared

Specified by:
getValues in interface Comparison

isIgnoreCase

public boolean isIgnoreCase()
Description copied from interface: Comparison
Name: Ignore Case? Check if should ignore case when doing the comparison Default is false If true then the case of both the specified comparison value(s) and the data value from the field should be ignored

Specified by:
isIgnoreCase in interface Comparison


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.