本文整理匯總了Java中org.kuali.rice.kew.rule.bo.RuleAttribute.getType方法的典型用法代碼示例。如果您正苦於以下問題:Java RuleAttribute.getType方法的具體用法?Java RuleAttribute.getType怎麽用?Java RuleAttribute.getType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.kuali.rice.kew.rule.bo.RuleAttribute
的用法示例。
在下文中一共展示了RuleAttribute.getType方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findByRuleAttribute
import org.kuali.rice.kew.rule.bo.RuleAttribute; //導入方法依賴的package包/類
public List<RuleAttribute> findByRuleAttribute(RuleAttribute ruleAttribute) {
QueryByCriteria.Builder builder =
QueryByCriteria.Builder.create();
List<Predicate> predicates = new ArrayList<Predicate>();
if (ruleAttribute.getName() != null) {
predicates.add(likeIgnoreCase("name",ruleAttribute.getName()));
}
if (ruleAttribute.getResourceDescriptor() != null) {
predicates.add(likeIgnoreCase("resourceDescriptor",ruleAttribute.getResourceDescriptor()));
}
if (ruleAttribute.getType() != null) {
predicates.add(likeIgnoreCase("type",ruleAttribute.getType()));
}
Predicate[] preds = predicates.toArray(new Predicate[predicates.size()]);
builder.setPredicates(preds);
QueryResults<RuleAttribute> results = getDataObjectService().findMatching(RuleAttribute.class, builder.build());
return results.getResults();
}
示例2: findByRuleAttribute
import org.kuali.rice.kew.rule.bo.RuleAttribute; //導入方法依賴的package包/類
public List<RuleAttribute> findByRuleAttribute(RuleAttribute ruleAttribute) {
Criteria crit = new Criteria("RuleAttribute", "ra");
if (ruleAttribute.getName() != null) {
crit.rawJpql("UPPER(RULE_ATTRIB_NM) like '" + ruleAttribute.getName().toUpperCase() + "'");
}
if (ruleAttribute.getResourceDescriptor() != null) {
crit.rawJpql("UPPER(RULE_ATTRIB_CLS_NM) like '" + ruleAttribute.getResourceDescriptor().toUpperCase() + "'");
}
if (ruleAttribute.getType() != null) {
crit.rawJpql("UPPER(RULE_ATTRIB_TYP) like '" + ruleAttribute.getType().toUpperCase() + "'");
}
return new QueryByCriteria(entityManager, crit).toQuery().getResultList();
}
示例3: findByRuleAttribute
import org.kuali.rice.kew.rule.bo.RuleAttribute; //導入方法依賴的package包/類
public List<RuleAttribute> findByRuleAttribute(RuleAttribute ruleAttribute) {
Criteria crit = new Criteria();
if (ruleAttribute.getName() != null) {
crit.addSql("UPPER(RULE_ATTRIB_NM) like '" + ruleAttribute.getName().toUpperCase() + "'");
}
if (ruleAttribute.getResourceDescriptor() != null) {
crit.addSql("UPPER(RULE_ATTRIB_CLS_NM) like '" + ruleAttribute.getResourceDescriptor().toUpperCase() + "'");
}
if (ruleAttribute.getType() != null) {
crit.addSql("UPPER(RULE_ATTRIB_TYP) like '" + ruleAttribute.getType().toUpperCase() + "'");
}
return (List<RuleAttribute>) this.getPersistenceBrokerTemplate().getCollectionByQuery(new QueryByCriteria(RuleAttribute.class, crit));
}