T
- public interface QueryableDao<T> extends GenericDao<T>
Query
driven APIModifier and Type | Method and Description |
---|---|
Long |
count(Query<T> query)
|
T |
getEntityInstance()
The entity instance maybe an extension of the Base ensure Queries work for extensions
derive the exact instance required for the Query.
|
List<T> |
query(Query<T> query)
|
<SUB_T> List<SUB_T> |
query(Query<T> query,
Class<SUB_T> claz)
Derive a SubSet (claz) of T only as an queried entity.
|
Page<T> |
queryPage(Query<T> query)
|
<SUB_T> Page<SUB_T> |
queryPage(Query<T> query,
Class<SUB_T> claz)
Derive a SubSet (claz) of T only as an queried entity.
|
@Transactional(readOnly=true) Page<T> queryPage(Query<T> query) throws Exception
Query
and on Queryable
fields only.
Query.setNullSet(Set)
Queryable
fields will face problems.@Transactional(readOnly=true) Long count(Query<T> query) throws Exception
Query
and on Queryable
fields only.
Query.setNullSet(Set)
Queryable
fields will face problems.<SUB_T> List<SUB_T> query(Query<T> query, Class<SUB_T> claz) throws Exception
<SUB_T> Page<SUB_T> queryPage(Query<T> query, Class<SUB_T> claz) throws Exception
T getEntityInstance()
Copyright © 2018. All rights reserved.