public class RequestDAO extends HibernateRepository<Request>
Constructor and Description |
---|
RequestDAO() |
Modifier and Type | Method and Description |
---|---|
protected List<javax.persistence.criteria.Predicate> |
createPredicates(javax.persistence.criteria.Root<Request> root,
String filter,
SampleRequestStatus status) |
List<Request> |
get(int start,
int limit,
String sort,
boolean asc,
SampleRequestStatus status,
String filter) |
Request |
get(long id) |
List<Request> |
getAccountRequests(Account account,
SampleRequestStatus status,
int start,
int limit,
String sort,
boolean asc) |
int |
getCount(Account account) |
int |
getCount(SampleRequestStatus status,
String filter) |
List<Request> |
getSampleRequestByStatus(Account account,
Entry entry,
SampleRequestStatus status) |
Request |
getSampleRequestInCart(Account account,
Entry entry) |
create, currentSession, delete, get, getBuilder, update
public Request get(long id)
public List<Request> getSampleRequestByStatus(Account account, Entry entry, SampleRequestStatus status)
public int getCount(Account account)
public int getCount(SampleRequestStatus status, String filter)
public List<Request> get(int start, int limit, String sort, boolean asc, SampleRequestStatus status, String filter)
protected List<javax.persistence.criteria.Predicate> createPredicates(javax.persistence.criteria.Root<Request> root, String filter, SampleRequestStatus status)
public List<Request> getAccountRequests(Account account, SampleRequestStatus status, int start, int limit, String sort, boolean asc)
Copyright © 2017. All rights reserved.