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(); }
public List<Client> getSomeClients() { setOrder("lastname,firstname"); setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); setMaxResults(25); List<Client> outList = getResultList(); return outList; }
public ClientList() { setEjbql(EJBQL); setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); setMaxResults(25); setOrder("lastname"); }