@Service(value="queryManagement") @Transactional(readOnly=true) public class QueryManagement extends Object
| Constructor and Description |
|---|
QueryManagement() |
| Modifier and Type | Method and Description |
|---|---|
<L,T extends QueryParameters> |
executeQuery(Query<L,T> query,
T queryParameters)
Deprecated.
Use
query(Query, QueryParameters, QueryResultConverter) instead. |
<L,T extends QueryParameters> |
executeQueryComplete(Query<L,T> query,
T queryParameters) |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set, otherwise returns
null. |
protected QueryHelperDao |
getQueryHelperDao()
Gets the reference to
queryHelper's DAO. |
<L> PageableList<L> |
query(Query<L,?> query,
QueryParameters queryParameters)
Returns the result without converting them in any way.
|
<O,L,T extends QueryParameters> |
query(Query<L,T> query,
T queryParameters,
QueryResultConverter<L,O> converter)
Executes the given query and converts the result using the given converter.
|
void |
setQueryHelperDao(QueryHelperDao queryHelperDao)
Sets the reference to
queryHelper's DAO. |
@Deprecated public <L,T extends QueryParameters> PageableList<L> executeQuery(Query<L,T> query, T queryParameters)
query(Query, QueryParameters, QueryResultConverter) instead.L - Type of the results for the query.T - Type of the query parameters.query - The query to execute.queryParameters - The query instancepublic <L,T extends QueryParameters> List<L> executeQueryComplete(Query<L,T> query, T queryParameters)
T - Type of the query parameters.L - Type of the results for the query.query - The query to execute.queryParameters - The query instanceprotected Principal getPrincipal()
principal if one has been set, otherwise returns
null.protected QueryHelperDao getQueryHelperDao()
queryHelper's DAO.public <L> PageableList<L> query(Query<L,?> query, QueryParameters queryParameters)
L - Type of the results items.query - The query.queryParameters - The query instance to usepublic <O,L,T extends QueryParameters> PageableList<O> query(Query<L,T> query, T queryParameters, QueryResultConverter<L,O> converter)
O - Type of the final entities.L - Type of the ListItems of the queries result.T - Type of the query parameters.query - The query to execute.queryParameters - The queries parameters.converter - The converter.public void setQueryHelperDao(QueryHelperDao queryHelperDao)
queryHelper's DAO.queryHelperDao - The queryHelperDaoCopyright © 2019 Communote team. All rights reserved.