Interface Query<T extends Query<?,?>,U>
- All Known Subinterfaces:
ActivityInstanceQuery
,AppDefinitionBaseQuery<T,
,C> AppDefinitionQuery
,AppDeploymentBaseQuery<T,
,C> AppDeploymentQuery
,BaseJobQuery<U,
,T> BatchPartQuery
,BatchQuery
,CaseDefinitionQuery
,CaseInstanceQuery
,ChannelDefinitionQuery
,CmmnDeploymentQuery
,ContentItemBaseQuery<T,
,C> ContentItemQuery
,DeadLetterJobQuery
,DeploymentQuery
,DmnDecisionQuery
,DmnDeploymentQuery
,DmnHistoricDecisionExecutionQuery
,EventDefinitionQuery
,EventDeploymentQuery
,EventSubscriptionQuery
,ExecutionQuery
,ExternalWorkerJobQuery
,FormDefinitionQuery
,FormDeploymentQuery
,FormInstanceQuery
,GenericEventListenerInstanceQuery
,GroupQuery
,HistoricActivityInstanceQuery
,HistoricCaseInstanceQuery
,HistoricDetailQuery
,HistoricMilestoneInstanceQuery
,HistoricPlanItemInstanceQuery
,HistoricProcessInstanceQuery
,HistoricTaskInstanceQuery
,HistoricTaskLogEntryQuery
,HistoricVariableInstanceQuery
,HistoricVariableInstanceQuery
,HistoryJobQuery
,JobQuery
,MilestoneInstanceQuery
,ModelQuery
,PlanItemInstanceQuery
,PrivilegeQuery
,ProcessDefinitionQuery
,ProcessInstanceQuery
,SignalEventListenerInstanceQuery
,SuspendedJobQuery
,TaskInfoQuery<T,
,V> TaskQuery
,TimerJobQuery
,TokenQuery
,UserBaseQuery<T,
,U> UserEventListenerInstanceQuery
,UserQuery
,VariableInstanceQuery
,VariableInstanceQuery
- All Known Implementing Classes:
AbstractQuery
,AbstractVariableQueryImpl
,ActivityInstanceQueryImpl
,BatchPartQueryImpl
,BatchQueryImpl
,CaseDefinitionQueryImpl
,CaseInstanceQueryImpl
,ChannelDefinitionQueryImpl
,CmmnDeploymentQueryImpl
,CmmnHistoricVariableInstanceQueryImpl
,CmmnVariableInstanceQueryImpl
,DeadLetterJobQueryImpl
,DecisionQueryImpl
,DeploymentQueryImpl
,DmnDeploymentQueryImpl
,EventDefinitionQueryImpl
,EventDeploymentQueryImpl
,EventSubscriptionQueryImpl
,ExecutionQueryImpl
,ExternalWorkerJobQueryImpl
,GenericEventListenerInstanceQueryImpl
,GroupQueryImpl
,HistoricActivityInstanceQueryImpl
,HistoricCaseInstanceQueryImpl
,HistoricDecisionExecutionQueryImpl
,HistoricDetailQueryImpl
,HistoricMilestoneInstanceQueryImpl
,HistoricPlanItemInstanceQueryImpl
,HistoricProcessInstanceQueryImpl
,HistoricTaskInstanceQueryImpl
,HistoricTaskLogEntryQueryImpl
,HistoricVariableInstanceQueryImpl
,HistoryJobQueryImpl
,JobQueryImpl
,MilestoneInstanceQueryImpl
,ModelQueryImpl
,PlanItemInstanceQueryImpl
,PrivilegeQueryImpl
,ProcessDefinitionQueryImpl
,ProcessInstanceQueryImpl
,SignalEventListenerInstanceQueryImpl
,SuspendedJobQueryImpl
,TaskQueryImpl
,TimerJobQueryImpl
,TokenQueryImpl
,UserEventListenerInstanceQueryImpl
,UserQueryImpl
,VariableInstanceQueryImpl
public interface Query<T extends Query<?,?>,U>
Describes basic methods for querying.
- Author:
- Frederik Heremans
-
Nested Class Summary
Nested Classes -
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).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).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) Executes the query and returns the resulting entity or null if no entity matches the query criteria.
-
Method Details
-
asc
T asc()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
T desc()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). -
orderBy
-
orderBy
-
count
long count()Executes the query and returns the number of results -
singleResult
U singleResult()Executes the query and returns the resulting entity or null if no entity matches the query criteria.- Throws:
FlowableException
- when the query results in more than one entities.
-
list
Executes the query and get a list of entities as the result. -
listPage
Executes the query and get a list of entities as the result.
-