當前位置: 首頁>>代碼示例>>Java>>正文


Java NotEqualIgnoreCasePredicate類代碼示例

本文整理匯總了Java中org.kuali.rice.core.api.criteria.NotEqualIgnoreCasePredicate的典型用法代碼示例。如果您正苦於以下問題:Java NotEqualIgnoreCasePredicate類的具體用法?Java NotEqualIgnoreCasePredicate怎麽用?Java NotEqualIgnoreCasePredicate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NotEqualIgnoreCasePredicate類屬於org.kuali.rice.core.api.criteria包,在下文中一共展示了NotEqualIgnoreCasePredicate類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addSingleValuePredicate

import org.kuali.rice.core.api.criteria.NotEqualIgnoreCasePredicate; //導入依賴的package包/類
/**
   * Adds a single valued predicate to a criteria.
   *
   * @param p the single valued predicate to add.
   * @param parent the parent criteria to add to.
   */
  protected void addSingleValuePredicate(SingleValuedPredicate p, C parent) {
final Object value = getVal(p.getValue());
      final String pp = p.getPropertyPath();
      if (p instanceof EqualPredicate) {
          addEqualTo(parent, pp, value);
      } else if (p instanceof EqualIgnoreCasePredicate) {
          addEqualToIgnoreCase(parent, pp, (String) value);
      } else if (p instanceof GreaterThanOrEqualPredicate) {
          addGreaterOrEqualTo(parent, pp, value);
      } else if (p instanceof GreaterThanPredicate) {
          addGreaterThan(parent, pp, value);
      } else if (p instanceof LessThanOrEqualPredicate) {
          addLessOrEqualTo(parent, pp, value);
      } else if (p instanceof LessThanPredicate) {
          addLessThan(parent, pp, value);
      } else if (p instanceof LikePredicate) {
          //no need to convert * or ? since ojb handles the conversion/escaping
          addLike(parent, pp, value);
      } else if(p instanceof LikeIgnoreCasePredicate){
          addLikeIgnoreCase(parent,pp,(String)value);
      } else if (p instanceof NotEqualPredicate) {
          addNotEqualTo(parent, pp, value);
      } else if (p instanceof NotEqualIgnoreCasePredicate) {
          addNotEqualToIgnoreCase(parent, pp, (String) value);
} else if (p instanceof NotLikeIgnoreCasePredicate) {
	addNotLikeIgnoreCase(parent, pp, (String) value);
      } else if (p instanceof NotLikePredicate) {
          addNotLike(parent, pp, value);
      } else {
          throw new UnsupportedPredicateException(p);
      }
  }
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:39,代碼來源:QueryTranslatorBase.java

示例2: addSingleValuePredicate

import org.kuali.rice.core.api.criteria.NotEqualIgnoreCasePredicate; //導入依賴的package包/類
/** adds a single valued predicate to a Criteria. */
private void addSingleValuePredicate(SingleValuedPredicate p, Criteria parent) {
    final Object value = getVal(p.getValue());
    final String pp = p.getPropertyPath();
    if (p instanceof EqualPredicate) {
        parent.addEqualTo(pp, value);
    } else if (p instanceof EqualIgnoreCasePredicate) {
        parent.addEqualTo(genUpperFunc(pp), ((String) value).toUpperCase());
    } else if (p instanceof GreaterThanOrEqualPredicate) {
        parent.addGreaterOrEqualThan(pp, value);
    } else if (p instanceof GreaterThanPredicate) {
        parent.addGreaterThan(pp, value);
    } else if (p instanceof LessThanOrEqualPredicate) {
        parent.addLessOrEqualThan(pp, value);
    } else if (p instanceof LessThanPredicate) {
        parent.addLessThan(pp, value);
    } else if (p instanceof LikePredicate) {
        //no need to convert * or ? since ojb handles the conversion/escaping
        parent.addLike(genUpperFunc(pp), ((String) value).toUpperCase());
    } else if (p instanceof NotEqualPredicate) {
        parent.addNotEqualTo(pp, value);
    } else if (p instanceof NotEqualIgnoreCasePredicate) {
        parent.addNotEqualTo(genUpperFunc(pp), ((String) value).toUpperCase());
    } else if (p instanceof NotLikePredicate) {
        parent.addNotLike(pp, value);
    } else {
        throw new UnsupportedPredicateException(p);
    }
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:30,代碼來源:CriteriaLookupDaoOjb.java

示例3: addSingleValuePredicate

import org.kuali.rice.core.api.criteria.NotEqualIgnoreCasePredicate; //導入依賴的package包/類
/** adds a single valued predicate to a Criteria. */
private void addSingleValuePredicate(SingleValuedPredicate p, Criteria parent) {
    final Object value = getVal(p.getValue());
    final String pp = p.getPropertyPath();
    if (p instanceof EqualPredicate) {
        parent.eq(pp, value);
    } else if (p instanceof EqualIgnoreCasePredicate) {
        parent.eq(genUpperFunc(pp), ((String) value).toUpperCase());
    } else if (p instanceof GreaterThanOrEqualPredicate) {
        parent.gte(pp, value);
    } else if (p instanceof GreaterThanPredicate) {
        parent.gt(pp, value);
    } else if (p instanceof LessThanOrEqualPredicate) {
        parent.lte(pp, value);
    } else if (p instanceof LessThanPredicate) {
        parent.lt(pp, value);
    } else if (p instanceof LikePredicate) {
        //no need to convert * or ? since ojb handles the conversion/escaping
        parent.like(pp, value);
    } else if (p instanceof NotEqualPredicate) {
        parent.ne(pp, value);
    } else if (p instanceof NotEqualIgnoreCasePredicate) {
        parent.ne(genUpperFunc(pp), ((String) value).toUpperCase());
    } else if (p instanceof NotLikePredicate) {
        parent.notLike(pp, value);
    } else {
        throw new UnsupportedPredicateException(p);
    }
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:30,代碼來源:CriteriaLookupDaoJpa.java


注:本文中的org.kuali.rice.core.api.criteria.NotEqualIgnoreCasePredicate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。