Package org.camunda.bpm.engine.impl
Class DeploymentQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<DeploymentQuery,Deployment>
org.camunda.bpm.engine.impl.DeploymentQueryImpl
- All Implemented Interfaces:
Serializable
,Command<Object>
,Query<DeploymentQuery,
,Deployment> DeploymentQuery
public class DeploymentQueryImpl
extends AbstractQuery<DeploymentQuery,Deployment>
implements DeploymentQuery, Serializable
- Author:
- Tom Baeyens, Joram Barrez, Ingo Richtsmeier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected Date
protected Date
protected String
protected boolean
protected boolean
protected String
protected String
protected String
protected boolean
protected String[]
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeploymentAfter
(Date after) Only select deployments deployed after the given datedeploymentBefore
(Date before) Only select deployments deployed before the given datedeploymentId
(String deploymentId) Only select deployments with the given deployment id.deploymentName
(String deploymentName) Only select deployments with the given name.deploymentNameLike
(String nameLike) Only select deployments with a name like the given string.deploymentSource
(String source) If the givensource
isnull
, then deployments are returned where source is equal to null.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.getName()
protected boolean
Whether or not the query has excluding conditions.Select deployments which have no tenant id.boolean
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).tenantIdIn
(String... tenantIds) Only select deployments with one of the given tenant ids.Only select deployments which have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
deploymentId
-
name
-
nameLike
-
sourceQueryParamEnabled
protected boolean sourceQueryParamEnabled -
source
-
deploymentBefore
-
deploymentAfter
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
includeDeploymentsWithoutTenantId
protected boolean includeDeploymentsWithoutTenantId
-
-
Constructor Details
-
DeploymentQueryImpl
public DeploymentQueryImpl() -
DeploymentQueryImpl
-
-
Method Details
-
deploymentId
Description copied from interface:DeploymentQuery
Only select deployments with the given deployment id.- Specified by:
deploymentId
in interfaceDeploymentQuery
-
deploymentName
Description copied from interface:DeploymentQuery
Only select deployments with the given name.- Specified by:
deploymentName
in interfaceDeploymentQuery
-
deploymentNameLike
Description copied from interface:DeploymentQuery
Only select deployments with a name like the given string.- Specified by:
deploymentNameLike
in interfaceDeploymentQuery
-
deploymentSource
Description copied from interface:DeploymentQuery
If the givensource
isnull
, then deployments are returned where source is equal to null. Otherwise only deployments with the given source are selected.- Specified by:
deploymentSource
in interfaceDeploymentQuery
-
deploymentBefore
Description copied from interface:DeploymentQuery
Only select deployments deployed before the given date- Specified by:
deploymentBefore
in interfaceDeploymentQuery
-
deploymentAfter
Description copied from interface:DeploymentQuery
Only select deployments deployed after the given date- Specified by:
deploymentAfter
in interfaceDeploymentQuery
-
tenantIdIn
Description copied from interface:DeploymentQuery
Only select deployments with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceDeploymentQuery
-
withoutTenantId
Description copied from interface:DeploymentQuery
Only select deployments which have no tenant id.- Specified by:
withoutTenantId
in interfaceDeploymentQuery
-
includeDeploymentsWithoutTenantId
Description copied from interface:DeploymentQuery
Select deployments which have no tenant id. Can be used in combination withDeploymentQuery.tenantIdIn(String...)
.- Specified by:
includeDeploymentsWithoutTenantId
in interfaceDeploymentQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQuery
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditions
in classAbstractQuery<DeploymentQuery,
Deployment> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
orderByDeploymentId
Description copied from interface:DeploymentQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceDeploymentQuery
-
orderByDeploymenTime
Description copied from interface:DeploymentQuery
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymenTime
in interfaceDeploymentQuery
-
orderByDeploymentTime
Description copied from interface:DeploymentQuery
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentTime
in interfaceDeploymentQuery
-
orderByDeploymentName
Description copied from interface:DeploymentQuery
Order by deployment name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentName
in interfaceDeploymentQuery
-
orderByTenantId
Description copied from interface:DeploymentQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of process instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceDeploymentQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<DeploymentQuery,
Deployment>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<DeploymentQuery,
Deployment> page
- used if the results must be paged. If null, no paging will be applied.
-
getDeploymentId
-
getName
-
getNameLike
-
isSourceQueryParamEnabled
public boolean isSourceQueryParamEnabled() -
getSource
-
getDeploymentBefore
-
getDeploymentAfter
-