Class AbstractQuery<T extends Query<?,?>,U>
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
- All Implemented Interfaces:
Serializable,Query<T,,U> Command<Object>
public abstract class AbstractQuery<T extends Query<?,?>,U>
extends ListQueryParameterObject
implements Command<Object>, Query<T,U>, Serializable
Abstract superclass for all query types.
- Author:
- Joram Barrez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractQuery(CommandContext commandContext) protectedAbstractQuery(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionasc()protected voidlongcount()desc()execute(CommandContext commandContext) abstract longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.executeSingleResult(CommandContext commandContext) list()listPage(int firstResult, int maxResults) orderBy(QueryProperty property) orderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder) setCommandExecutor(CommandExecutor commandExecutor) Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
commandExecutor
-
commandContext
-
-
Constructor Details
-
AbstractQuery
protected AbstractQuery() -
AbstractQuery
-
AbstractQuery
-
-
Method Details
-
setCommandExecutor
-
orderBy
-
orderBy
-
asc
-
desc
-
direction
-
checkQueryOk
protected void checkQueryOk() -
singleResult
- Specified by:
singleResultin interfaceQuery<T extends Query<?,?>, U>
-
list
-
listPage
-
count
public long count() -
execute
-
executeCount
-
executeList
Executes the actual query to retrieve the list of results. -
executeSingleResult
-