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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandContextcommandContextprotected CommandExecutorcommandExecutor-
Fields 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
Constructors Modifier Constructor Description protectedAbstractQuery()AbstractQuery(CommandContext commandContext)protectedAbstractQuery(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tasc()protected voidcheckQueryOk()longcount()Tdesc()Tdirection(Direction direction)Objectexecute(CommandContext commandContext)abstract longexecuteCount(CommandContext commandContext)abstract List<U>executeList(CommandContext commandContext)Executes the actual query to retrieve the list of results.UexecuteSingleResult(CommandContext commandContext)List<U>list()List<U>listPage(int firstResult, int maxResults)TorderBy(QueryProperty property)TorderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder)AbstractQuery<T,U>setCommandExecutor(CommandExecutor commandExecutor)UsingleResult()-
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 Detail
-
commandExecutor
protected transient CommandExecutor commandExecutor
-
commandContext
protected transient CommandContext commandContext
-
-
Constructor Detail
-
AbstractQuery
protected AbstractQuery()
-
AbstractQuery
protected AbstractQuery(CommandExecutor commandExecutor)
-
AbstractQuery
public AbstractQuery(CommandContext commandContext)
-
-
Method Detail
-
setCommandExecutor
public AbstractQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
-
orderBy
public T orderBy(QueryProperty property)
-
orderBy
public T orderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder)
-
checkQueryOk
protected void checkQueryOk()
-
singleResult
public U singleResult()
- Specified by:
singleResultin interfaceQuery<T extends Query<?,?>,U>
-
execute
public Object execute(CommandContext commandContext)
-
executeCount
public abstract long executeCount(CommandContext commandContext)
-
executeList
public abstract List<U> executeList(CommandContext commandContext)
Executes the actual query to retrieve the list of results.
-
executeSingleResult
public U executeSingleResult(CommandContext commandContext)
-
-