public class CaseDefinitionQueryImpl extends AbstractQuery<CaseDefinitionQuery,CaseDefinition> implements CaseDefinitionQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
category |
protected String |
categoryLike |
protected String |
deploymentId |
protected String |
id |
protected String[] |
ids |
protected boolean |
includeDefinitionsWithoutTenantId |
protected boolean |
isTenantIdSet |
protected String |
key |
protected String |
keyLike |
protected boolean |
latest |
protected String |
name |
protected String |
nameLike |
protected String |
resourceName |
protected String |
resourceNameLike |
protected String[] |
tenantIds |
protected Integer |
version |
commandExecutor, expressions, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
CaseDefinitionQueryImpl() |
CaseDefinitionQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
CaseDefinitionQuery |
caseDefinitionCategory(String caseDefinitionCategory)
Only select case definitions with the given category.
|
CaseDefinitionQuery |
caseDefinitionCategoryLike(String caseDefinitionCategoryLike)
Only select case definitions where the category matches the given parameter.
|
CaseDefinitionQuery |
caseDefinitionId(String caseDefinitionId)
Only select case definition with the given id.
|
CaseDefinitionQuery |
caseDefinitionIdIn(String... ids)
Only select case definitions with the given ids.
|
CaseDefinitionQuery |
caseDefinitionKey(String caseDefinitionKey)
Only select case definition with the given key.
|
CaseDefinitionQuery |
caseDefinitionKeyLike(String caseDefinitionKeyLike)
Only select case definitions where the key matches the given parameter.
|
CaseDefinitionQuery |
caseDefinitionName(String caseDefinitionName)
Only select case definitions with the given name.
|
CaseDefinitionQuery |
caseDefinitionNameLike(String caseDefinitionNameLike)
Only select case definitions where the name matches the given parameter.
|
CaseDefinitionQuery |
caseDefinitionResourceName(String resourceName)
Only select case definition with the given resource name.
|
CaseDefinitionQuery |
caseDefinitionResourceNameLike(String resourceNameLike)
Only select case definition with a resource name like the given.
|
CaseDefinitionQuery |
caseDefinitionVersion(Integer caseDefinitionVersion)
Only select case definition with a certain version.
|
void |
checkQueryOk() |
CaseDefinitionQuery |
deploymentId(String deploymentId)
Only select case definitions that are deployed in a deployment with the
given deployment id.
|
long |
executeCount(CommandContext commandContext) |
List<CaseDefinition> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getCategory() |
String |
getCategoryLike() |
String |
getDeploymentId() |
String |
getId() |
String[] |
getIds() |
String |
getKey() |
String |
getKeyLike() |
String |
getName() |
String |
getNameLike() |
String |
getResourceName() |
String |
getResourceNameLike() |
Integer |
getVersion() |
protected boolean |
hasExcludingConditions()
Whether or not the query has excluding conditions.
|
CaseDefinitionQuery |
includeCaseDefinitionsWithoutTenantId()
Select case definitions which have no tenant id.
|
boolean |
isLatest() |
CaseDefinitionQuery |
latestVersion()
Only select the case definitions which are the latest deployed
(ie.
|
CaseDefinitionQuery |
orderByCaseDefinitionCategory()
Order by the category of the case definitions (needs to be followed by
Query.asc() or Query.desc() ). |
CaseDefinitionQuery |
orderByCaseDefinitionId()
Order by the id of the case definitions (needs to be followed by
Query.asc() or Query.desc() ). |
CaseDefinitionQuery |
orderByCaseDefinitionKey()
Order by case definition key (needs to be followed by
Query.asc() or
Query.desc() ). |
CaseDefinitionQuery |
orderByCaseDefinitionName()
Order by the name of the case definitions (needs to be followed by
Query.asc() or Query.desc() ). |
CaseDefinitionQuery |
orderByCaseDefinitionVersion()
Order by the version of the case definitions (needs to be followed
by
Query.asc() or Query.desc() ). |
CaseDefinitionQuery |
orderByDeploymentId()
Order by deployment id (needs to be followed by
Query.asc()
or Query.desc() ). |
CaseDefinitionQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseDefinitionQuery |
tenantIdIn(String... tenantIds)
Only select case definitions with one of the given tenant ids.
|
CaseDefinitionQuery |
withoutTenantId()
Only select case definitions which have no tenant id.
|
addExpression, addValidator, asc, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String id
protected String[] ids
protected String category
protected String categoryLike
protected String name
protected String nameLike
protected String deploymentId
protected String key
protected String keyLike
protected String resourceName
protected String resourceNameLike
protected Integer version
protected boolean latest
protected boolean isTenantIdSet
protected String[] tenantIds
protected boolean includeDefinitionsWithoutTenantId
public CaseDefinitionQueryImpl()
public CaseDefinitionQueryImpl(CommandExecutor commandExecutor)
public CaseDefinitionQuery caseDefinitionId(String caseDefinitionId)
CaseDefinitionQuery
caseDefinitionId
in interface CaseDefinitionQuery
caseDefinitionId
- the id of the case definitionpublic CaseDefinitionQuery caseDefinitionIdIn(String... ids)
CaseDefinitionQuery
caseDefinitionIdIn
in interface CaseDefinitionQuery
ids
- list of case definition idspublic CaseDefinitionQuery caseDefinitionCategory(String caseDefinitionCategory)
CaseDefinitionQuery
caseDefinitionCategory
in interface CaseDefinitionQuery
caseDefinitionCategory
- the category of the case definitionpublic CaseDefinitionQuery caseDefinitionCategoryLike(String caseDefinitionCategoryLike)
CaseDefinitionQuery
caseDefinitionCategoryLike
in interface CaseDefinitionQuery
caseDefinitionCategoryLike
- the pattern to match the case definition categorypublic CaseDefinitionQuery caseDefinitionName(String caseDefinitionName)
CaseDefinitionQuery
caseDefinitionName
in interface CaseDefinitionQuery
caseDefinitionName
- the name of the case definitionpublic CaseDefinitionQuery caseDefinitionNameLike(String caseDefinitionNameLike)
CaseDefinitionQuery
caseDefinitionNameLike
in interface CaseDefinitionQuery
caseDefinitionNameLike
- the pattern to match the case definition namepublic CaseDefinitionQuery caseDefinitionKey(String caseDefinitionKey)
CaseDefinitionQuery
caseDefinitionKey
in interface CaseDefinitionQuery
caseDefinitionKey
- the key of the case definitionpublic CaseDefinitionQuery caseDefinitionKeyLike(String caseDefinitionKeyLike)
CaseDefinitionQuery
caseDefinitionKeyLike
in interface CaseDefinitionQuery
caseDefinitionKeyLike
- the pattern to match the case definition keypublic CaseDefinitionQuery deploymentId(String deploymentId)
CaseDefinitionQuery
deploymentId
in interface CaseDefinitionQuery
deploymentId
- the id of the deploymentpublic CaseDefinitionQuery caseDefinitionVersion(Integer caseDefinitionVersion)
CaseDefinitionQuery
CaseDefinitionQuery.caseDefinitionKey(String)
caseDefinitionVersion
in interface CaseDefinitionQuery
caseDefinitionVersion
- the version of the case definitionpublic CaseDefinitionQuery latestVersion()
CaseDefinitionQuery
CaseDefinitionQuery.caseDefinitionKey(String)
or CaseDefinitionQuery.caseDefinitionKeyLike(String)
. Can also be used without any
other criteria (ie. query.latest().list()), which will then give all the
latest versions of all the deployed case definitions.latestVersion
in interface CaseDefinitionQuery
public CaseDefinitionQuery caseDefinitionResourceName(String resourceName)
CaseDefinitionQuery
caseDefinitionResourceName
in interface CaseDefinitionQuery
resourceName
- the name of the resourcepublic CaseDefinitionQuery caseDefinitionResourceNameLike(String resourceNameLike)
CaseDefinitionQuery
caseDefinitionResourceNameLike
in interface CaseDefinitionQuery
resourceNameLike
- the pattern to match the resource namepublic CaseDefinitionQuery tenantIdIn(String... tenantIds)
CaseDefinitionQuery
tenantIdIn
in interface CaseDefinitionQuery
public CaseDefinitionQuery withoutTenantId()
CaseDefinitionQuery
withoutTenantId
in interface CaseDefinitionQuery
public CaseDefinitionQuery includeCaseDefinitionsWithoutTenantId()
CaseDefinitionQuery
CaseDefinitionQuery.tenantIdIn(String...)
.includeCaseDefinitionsWithoutTenantId
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByCaseDefinitionCategory()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionCategory
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByCaseDefinitionKey()
CaseDefinitionQuery
Query.asc()
or
Query.desc()
).orderByCaseDefinitionKey
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByCaseDefinitionId()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionId
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByCaseDefinitionVersion()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionVersion
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByCaseDefinitionName()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionName
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByDeploymentId()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).orderByDeploymentId
in interface CaseDefinitionQuery
public CaseDefinitionQuery orderByTenantId()
CaseDefinitionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of case instances without tenant id is database-specific.orderByTenantId
in interface CaseDefinitionQuery
protected boolean hasExcludingConditions()
AbstractQuery
hasExcludingConditions
in class AbstractQuery<CaseDefinitionQuery,CaseDefinition>
true
if the query does have excluding conditions, false
otherwisepublic long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<CaseDefinitionQuery,CaseDefinition>
public List<CaseDefinition> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<CaseDefinitionQuery,CaseDefinition>
page
- used if the results must be paged. If null, no paging will be applied.public void checkQueryOk()
checkQueryOk
in class AbstractQuery<CaseDefinitionQuery,CaseDefinition>
public String getId()
public String[] getIds()
public String getCategory()
public String getCategoryLike()
public String getName()
public String getNameLike()
public String getDeploymentId()
public String getKey()
public String getKeyLike()
public String getResourceName()
public String getResourceNameLike()
public Integer getVersion()
public boolean isLatest()
Copyright © 2017. All rights reserved.