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:
java.io.Serializable,Command<java.lang.Object>,Query<DeploymentQuery,Deployment>,DeploymentQuery
public class DeploymentQueryImpl extends AbstractQuery<DeploymentQuery,Deployment> implements DeploymentQuery, java.io.Serializable
- Author:
- Tom Baeyens, Joram Barrez, Ingo Richtsmeier
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.DatedeploymentAfterprotected java.util.DatedeploymentBeforeprotected java.lang.StringdeploymentIdprotected booleanincludeDeploymentsWithoutTenantIdprotected booleanisTenantIdSetprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.Stringsourceprotected booleansourceQueryParamEnabledprotected java.lang.String[]tenantIds-
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
Constructors Constructor Description DeploymentQueryImpl()DeploymentQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentQuerydeploymentAfter(java.util.Date after)Only select deployments deployed after the given dateDeploymentQuerydeploymentBefore(java.util.Date before)Only select deployments deployed before the given dateDeploymentQueryImpldeploymentId(java.lang.String deploymentId)Only select deployments with the given deployment id.DeploymentQueryImpldeploymentName(java.lang.String deploymentName)Only select deployments with the given name.DeploymentQueryImpldeploymentNameLike(java.lang.String nameLike)Only select deployments with a name like the given string.DeploymentQuerydeploymentSource(java.lang.String source)If the givensourceisnull, then deployments are returned where source is equal to null.longexecuteCount(CommandContext commandContext)java.util.List<Deployment>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.util.DategetDeploymentAfter()java.util.DategetDeploymentBefore()java.lang.StringgetDeploymentId()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetSource()protected booleanhasExcludingConditions()Whether or not the query has excluding conditions.DeploymentQueryincludeDeploymentsWithoutTenantId()Select deployments which have no tenant id.booleanisSourceQueryParamEnabled()DeploymentQueryorderByDeploymentId()Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).DeploymentQueryorderByDeploymenTime()Order by deployment time (needs to be followed byQuery.asc()orQuery.desc()).DeploymentQueryorderByDeploymentName()Order by deployment name (needs to be followed byQuery.asc()orQuery.desc()).DeploymentQueryorderByDeploymentTime()Order by deployment time (needs to be followed byQuery.asc()orQuery.desc()).DeploymentQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).DeploymentQuerytenantIdIn(java.lang.String... tenantIds)Only select deployments with one of the given tenant ids.DeploymentQuerywithoutTenantId()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 Detail
-
deploymentId
protected java.lang.String deploymentId
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
sourceQueryParamEnabled
protected boolean sourceQueryParamEnabled
-
source
protected java.lang.String source
-
deploymentBefore
protected java.util.Date deploymentBefore
-
deploymentAfter
protected java.util.Date deploymentAfter
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
includeDeploymentsWithoutTenantId
protected boolean includeDeploymentsWithoutTenantId
-
-
Constructor Detail
-
DeploymentQueryImpl
public DeploymentQueryImpl()
-
DeploymentQueryImpl
public DeploymentQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
deploymentId
public DeploymentQueryImpl deploymentId(java.lang.String deploymentId)
Description copied from interface:DeploymentQueryOnly select deployments with the given deployment id.- Specified by:
deploymentIdin interfaceDeploymentQuery
-
deploymentName
public DeploymentQueryImpl deploymentName(java.lang.String deploymentName)
Description copied from interface:DeploymentQueryOnly select deployments with the given name.- Specified by:
deploymentNamein interfaceDeploymentQuery
-
deploymentNameLike
public DeploymentQueryImpl deploymentNameLike(java.lang.String nameLike)
Description copied from interface:DeploymentQueryOnly select deployments with a name like the given string.- Specified by:
deploymentNameLikein interfaceDeploymentQuery
-
deploymentSource
public DeploymentQuery deploymentSource(java.lang.String source)
Description copied from interface:DeploymentQueryIf the givensourceisnull, then deployments are returned where source is equal to null. Otherwise only deployments with the given source are selected.- Specified by:
deploymentSourcein interfaceDeploymentQuery
-
deploymentBefore
public DeploymentQuery deploymentBefore(java.util.Date before)
Description copied from interface:DeploymentQueryOnly select deployments deployed before the given date- Specified by:
deploymentBeforein interfaceDeploymentQuery
-
deploymentAfter
public DeploymentQuery deploymentAfter(java.util.Date after)
Description copied from interface:DeploymentQueryOnly select deployments deployed after the given date- Specified by:
deploymentAfterin interfaceDeploymentQuery
-
tenantIdIn
public DeploymentQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:DeploymentQueryOnly select deployments with one of the given tenant ids.- Specified by:
tenantIdInin interfaceDeploymentQuery
-
withoutTenantId
public DeploymentQuery withoutTenantId()
Description copied from interface:DeploymentQueryOnly select deployments which have no tenant id.- Specified by:
withoutTenantIdin interfaceDeploymentQuery
-
includeDeploymentsWithoutTenantId
public DeploymentQuery includeDeploymentsWithoutTenantId()
Description copied from interface:DeploymentQuerySelect deployments which have no tenant id. Can be used in combination withDeploymentQuery.tenantIdIn(String...).- Specified by:
includeDeploymentsWithoutTenantIdin interfaceDeploymentQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()
Description copied from class:AbstractQueryWhether 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:
hasExcludingConditionsin classAbstractQuery<DeploymentQuery,Deployment>- Returns:
trueif the query does have excluding conditions,falseotherwise
-
orderByDeploymentId
public DeploymentQuery orderByDeploymentId()
Description copied from interface:DeploymentQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceDeploymentQuery
-
orderByDeploymenTime
public DeploymentQuery orderByDeploymenTime()
Description copied from interface:DeploymentQueryOrder by deployment time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymenTimein interfaceDeploymentQuery
-
orderByDeploymentTime
public DeploymentQuery orderByDeploymentTime()
Description copied from interface:DeploymentQueryOrder by deployment time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentTimein interfaceDeploymentQuery
-
orderByDeploymentName
public DeploymentQuery orderByDeploymentName()
Description copied from interface:DeploymentQueryOrder by deployment name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentNamein interfaceDeploymentQuery
-
orderByTenantId
public DeploymentQuery orderByTenantId()
Description copied from interface:DeploymentQueryOrder 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:
orderByTenantIdin interfaceDeploymentQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<DeploymentQuery,Deployment>
-
executeList
public java.util.List<Deployment> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<DeploymentQuery,Deployment>page- used if the results must be paged. If null, no paging will be applied.
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
isSourceQueryParamEnabled
public boolean isSourceQueryParamEnabled()
-
getSource
public java.lang.String getSource()
-
getDeploymentBefore
public java.util.Date getDeploymentBefore()
-
getDeploymentAfter
public java.util.Date getDeploymentAfter()
-
-