Example #1
0
 public List<Client> patientList() {
   setEjbql(EJBQL);
   if (!Strings.isNullOrEmpty(quickTextSearch)) {
     setRestrictionExpressionStrings(Arrays.asList(quickTextRestrictions));
     setRestrictionLogicOperator("or");
   } else {
     setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
     setRestrictionLogicOperator("and");
   }
   setMaxResults(25);
   setOrder("lastname");
   return getResultList();
 }
Example #2
0
  public List<Client> getSomeClients() {

    setOrder("lastname,firstname");
    setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
    setMaxResults(25);
    List<Client> outList = getResultList();

    return outList;
  }
Example #3
0
 public ClientList() {
   setEjbql(EJBQL);
   setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
   setMaxResults(25);
   setOrder("lastname");
 }