Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2009 The Kuali Foundation
  * Licensed under the Educational Community License, Version 1.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.kuali.student.r2.common.infc;
Criteria for a generic query
public interface Comparison  {

Dot path notation to identity the name of field to be compared.

Field Key
    public String getFieldKey();
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
    public String getOperator();

Values to be compared.

    public List<StringgetValues();

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.

Is Ignore Case
    public Boolean getIsIgnoreCase ();
New to GrepCode? Check out our FAQ X