All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.student.r2.common.infc.Comparison Maven / Gradle / Ivy

/*
 * 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
 *
 * http://www.opensource.org/licenses/ecl1.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.kuali.student.r2.common.infc;

import java.util.List;

/**
 * Criteria for a generic query
 */

@Deprecated
public interface Comparison  {

    /**
     * Dot path notation to identity the name of field to be compared.
     *
     * @name 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. * * @name Values */ public List getValues(); /** * 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. * * @name Is Ignore Case */ public Boolean getIsIgnoreCase (); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy