Esempio n. 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();
 }
Esempio n. 2
0
  public List<Client> getSomeClients() {

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

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