K
- the key typeE
- the entity typepublic abstract class AbstractStockDAO<K,E>
extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
Constructor and Description |
---|
AbstractStockDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
addRestriction(javax.persistence.criteria.CriteriaQuery<?> query,
javax.persistence.criteria.Expression<Boolean> exp)
Add a predicate to an existing query
|
protected <T> PagedQuery |
createPagedQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery,
PaginationProperties paginationProperties)
Generate count query from criteria query and return a paged query.
|
ResultList<E> |
findAll(PaginationProperties paginationProperties)
Return all entities paged.
|
createNativeQuery, getEntityManagerFactory, getPluginName
protected <T> PagedQuery createPagedQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery, PaginationProperties paginationProperties)
T
- the generic type of criteria querycriteriaQuery
- criteria querypaginationProperties
- pagination datapublic ResultList<E> findAll(PaginationProperties paginationProperties)
paginationProperties
- properties for paginationprotected void addRestriction(javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.Expression<Boolean> exp)
query
- existing queryexp
- restrictionCopyright © 2019 City of Paris. All rights reserved.