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>
- Direct Known Subclasses:
AbstractVariableQueryImpl, ActivityInstanceQueryImpl, BatchPartQueryImpl, BatchQueryImpl, CaseDefinitionQueryImpl, ChannelDefinitionQueryImpl, CmmnDeploymentQueryImpl, DeadLetterJobQueryImpl, DecisionQueryImpl, DeploymentQueryImpl, DmnDeploymentQueryImpl, EventDefinitionQueryImpl, EventDeploymentQueryImpl, EventSubscriptionQueryImpl, ExternalWorkerJobQueryImpl, GroupQueryImpl, HistoricActivityInstanceQueryImpl, HistoricDecisionExecutionQueryImpl, HistoricDetailQueryImpl, HistoricMilestoneInstanceQueryImpl, HistoricPlanItemInstanceQueryImpl, HistoricTaskLogEntryQueryImpl, HistoricVariableInstanceQueryImpl, HistoryJobQueryImpl, JobQueryImpl, MilestoneInstanceQueryImpl, ModelQueryImpl, PrivilegeQueryImpl, ProcessDefinitionQueryImpl, SuspendedJobQueryImpl, TimerJobQueryImpl, TokenQueryImpl, UserQueryImpl, VariableInstanceQueryImpl
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 ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface Query
Query.NullHandlingOnOrder -
Field Summary
FieldsFields inherited from class ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractQuery(CommandContext commandContext) protectedAbstractQuery(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionasc()Order the results ascending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).protected voidlongcount()Executes the query and returns the number of resultsdesc()Order the results descending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).execute(CommandContext commandContext) abstract longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.executeSingleResult(CommandContext commandContext) getSafeList(Collection<E> collection) list()Executes the query and get a list of entities as the result.listPage(int firstResult, int maxResults) Executes the query and get a list of entities as the result.orderBy(QueryProperty property) orderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder) setCommandExecutor(CommandExecutor commandExecutor) Executes the query and returns the resulting entity or null if no entity matches the query criteria.Methods inherited from class ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setIgnoreOrderBy, 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() -
getSafeList
-
singleResult
-
list
-
listPage
-
count
-
execute
-
executeCount
-
executeList
Executes the actual query to retrieve the list of results. -
executeSingleResult
-