org.kuali.student.r2.common.dto
Class ComparisonInfo

java.lang.Object
  extended by org.kuali.student.r2.common.dto.ComparisonInfo
All Implemented Interfaces:
Serializable, Comparison

public class ComparisonInfo
extends Object
implements Comparison, Serializable

See Also:
Serialized Form

Constructor Summary
ComparisonInfo()
          Constructs a new ComparisonInfo.
ComparisonInfo(Comparison comparison)
          Constructs a new ComparisonInfo from another Comparison.
 
Method Summary
 String getFieldKey()
          Dot path notation to identity the name of field to be compared.
 Boolean getIsIgnoreCase()
          Check if should ignore case when doing the comparison Default is false.
 String getOperator()
          Name: Operator Operator to use to compare the field to the value.
 List<String> getValues()
          Values to be compared.
 void setFieldKey(String fieldKey)
           
 void setIgnoreCase(Boolean ignoreCase)
           
 void setOperator(String operator)
           
 void setValues(List<String> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonInfo

public ComparisonInfo()
Constructs a new ComparisonInfo.


ComparisonInfo

public ComparisonInfo(Comparison comparison)
Constructs a new ComparisonInfo from another Comparison.

Parameters:
comparison - the comparison to copy
Method Detail

getFieldKey

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

Specified by:
getFieldKey in interface Comparison

setFieldKey

public void setFieldKey(String fieldKey)

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

setOperator

public void setOperator(String operator)

getValues

public List<String> getValues()
Description copied from interface: Comparison
Values to be compared.

Specified by:
getValues in interface Comparison

setValues

public void setValues(List<String> values)

getIsIgnoreCase

public Boolean getIsIgnoreCase()
Description copied from interface: Comparison
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:
getIsIgnoreCase in interface Comparison

setIgnoreCase

public void setIgnoreCase(Boolean ignoreCase)


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