public class FilterQueryImpl extends AbstractQuery<FilterQuery,Filter> implements FilterQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
filterId |
protected String |
name |
protected String |
nameLike |
protected String |
owner |
protected String |
resourceType |
commandExecutor, expressions, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
FilterQueryImpl() |
FilterQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
long |
executeCount(CommandContext commandContext) |
List<Filter> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
FilterQuery |
filterId(String filterId) |
FilterQuery |
filterName(String name) |
FilterQuery |
filterNameLike(String nameLike) |
FilterQuery |
filterOwner(String owner) |
FilterQuery |
filterResourceType(String resourceType) |
FilterQuery |
orderByFilterId()
Order by filter id (needs to be followed by
Query.asc() or Query.desc() ). |
FilterQuery |
orderByFilterName()
Order by filter id (needs to be followed by
Query.asc() or Query.desc() ). |
FilterQuery |
orderByFilterOwner()
Order by filter id (needs to be followed by
Query.asc() or Query.desc() ). |
FilterQuery |
orderByFilterResourceType()
Order by filter id (needs to be followed by
Query.asc() or Query.desc() ). |
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String filterId
protected String resourceType
protected String name
protected String nameLike
protected String owner
public FilterQueryImpl()
public FilterQueryImpl(CommandExecutor commandExecutor)
public FilterQuery filterId(String filterId)
filterId
in interface FilterQuery
filterId
- set the filter id to querypublic FilterQuery filterResourceType(String resourceType)
filterResourceType
in interface FilterQuery
resourceType
- set the filter resource type to querypublic FilterQuery filterName(String name)
filterName
in interface FilterQuery
name
- set the filter name to querypublic FilterQuery filterNameLike(String nameLike)
filterNameLike
in interface FilterQuery
nameLike
- set the filter name like to querypublic FilterQuery filterOwner(String owner)
filterOwner
in interface FilterQuery
owner
- set the filter owner to querypublic FilterQuery orderByFilterId()
FilterQuery
Query.asc()
or Query.desc()
).orderByFilterId
in interface FilterQuery
public FilterQuery orderByFilterResourceType()
FilterQuery
Query.asc()
or Query.desc()
).orderByFilterResourceType
in interface FilterQuery
public FilterQuery orderByFilterName()
FilterQuery
Query.asc()
or Query.desc()
).orderByFilterName
in interface FilterQuery
public FilterQuery orderByFilterOwner()
FilterQuery
Query.asc()
or Query.desc()
).orderByFilterOwner
in interface FilterQuery
public List<Filter> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<FilterQuery,Filter>
page
- used if the results must be paged. If null, no paging will be applied.public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<FilterQuery,Filter>
Copyright © 2017. All rights reserved.