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 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
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
ConstructorsModifierConstructorDescriptionprotected
AbstractQuery
(CommandContext commandContext) protected
AbstractQuery
(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 void
long
count()
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 long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.executeSingleResult
(CommandContext commandContext) 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 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
Description copied from interface:Query
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). -
desc
Description copied from interface:Query
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). -
direction
-
checkQueryOk
protected void checkQueryOk() -
singleResult
Description copied from interface:Query
Executes the query and returns the resulting entity or null if no entity matches the query criteria.- Specified by:
singleResult
in interfaceQuery<T extends Query<?,
?>, U>
-
list
Description copied from interface:Query
Executes the query and get a list of entities as the result. -
listPage
Description copied from interface:Query
Executes the query and get a list of entities as the result. -
count
public long count()Description copied from interface:Query
Executes the query and returns the number of results -
execute
-
executeCount
-
executeList
Executes the actual query to retrieve the list of results. -
executeSingleResult
-