Exemple #1
0
 @Override
 public List<DivFtDtl> findByFactorNoAndRangeNos(String factorNo, String[] rangeNos) {
   ISearch search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   search.addSearchModeParameters(SearchMode.EQUALS, "rangeNo", rangeNos);
   search.setFirstResult(0).setMaxResults(Integer.MAX_VALUE);
   search.addOrderBy("rangeNo");
   return find(search);
 }
Exemple #2
0
 @Override
 public DivFtDtl findByFactorNo(String factorNo) {
   ISearch search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   return findUniqueOrNone(search);
 }