Class ClassificationQueryImpl
- java.lang.Object
-
- pro.taskana.classification.internal.ClassificationQueryImpl
-
- All Implemented Interfaces:
ClassificationQuery,BaseQuery<ClassificationSummary,ClassificationQueryColumnName>
public class ClassificationQueryImpl extends Object implements ClassificationQuery
Implementation of ClassificationQuery interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pro.taskana.common.api.BaseQuery
BaseQuery.SortDirection
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pro.taskana.common.api.BaseQuery
listPage, toLowerCopy
-
-
-
-
Method Detail
-
keyIn
public ClassificationQuery keyIn(String... key)
Description copied from interface:ClassificationQueryAdd your key to your query.- Specified by:
keyInin interfaceClassificationQuery- Parameters:
key- as String- Returns:
- the query
-
idIn
public ClassificationQuery idIn(String... id)
Description copied from interface:ClassificationQueryAdd your Id to your query.- Specified by:
idInin interfaceClassificationQuery- Parameters:
id- as String- Returns:
- the query
-
parentIdIn
public ClassificationQuery parentIdIn(String... parentId)
Description copied from interface:ClassificationQueryAdd your parentIds to your query.- Specified by:
parentIdInin interfaceClassificationQuery- Parameters:
parentId- as an array of Strings- Returns:
- the query
-
parentKeyIn
public ClassificationQuery parentKeyIn(String... parentKey)
Description copied from interface:ClassificationQueryAdd your parentKeys to your query.- Specified by:
parentKeyInin interfaceClassificationQuery- Parameters:
parentKey- as an array of Strings- Returns:
- the query
-
categoryIn
public ClassificationQuery categoryIn(String... category)
Description copied from interface:ClassificationQueryAdd your category to your query.- Specified by:
categoryInin interfaceClassificationQuery- Parameters:
category- as String- Returns:
- the query
-
typeIn
public ClassificationQuery typeIn(String... type)
Description copied from interface:ClassificationQueryAdd your type to your query.- Specified by:
typeInin interfaceClassificationQuery- Parameters:
type- as String- Returns:
- the query
-
domainIn
public ClassificationQuery domainIn(String... domain)
Description copied from interface:ClassificationQueryAdd your domains to your query which are used as filter.- Specified by:
domainInin interfaceClassificationQuery- Parameters:
domain- or domains for filtering.- Returns:
- the query
-
validInDomainEquals
public ClassificationQuery validInDomainEquals(Boolean validInDomain)
Description copied from interface:ClassificationQueryAdd to your query if the Classification shall be valid in its domain.- Specified by:
validInDomainEqualsin interfaceClassificationQuery- Parameters:
validInDomain- a simple flag showing if domain is valid- Returns:
- the query
-
createdWithin
public ClassificationQuery createdWithin(TimeInterval... createdIn)
Description copied from interface:ClassificationQueryAdd your created-Dates to your query.- Specified by:
createdWithinin interfaceClassificationQuery- Parameters:
createdIn- theTimeIntervalwithin which the searched-for classifications were created.- Returns:
- the query
-
modifiedWithin
public ClassificationQuery modifiedWithin(TimeInterval... modifiedIn)
Description copied from interface:ClassificationQueryAdd your modified-Dates to your query.- Specified by:
modifiedWithinin interfaceClassificationQuery- Parameters:
modifiedIn- theTimeIntervalwithin which the searched-for classifications were modified the last time.- Returns:
- the query
-
nameIn
public ClassificationQuery nameIn(String... nameIn)
Description copied from interface:ClassificationQueryAdd your name to your query.- Specified by:
nameInin interfaceClassificationQuery- Parameters:
nameIn- as String- Returns:
- the query
-
nameLike
public ClassificationQuery nameLike(String... nameLike)
Description copied from interface:ClassificationQueryAdd your name to your query. It will be compared in SQL with an LIKE.- Specified by:
nameLikein interfaceClassificationQuery- Parameters:
nameLike- as String- Returns:
- the query
-
descriptionLike
public ClassificationQuery descriptionLike(String description)
Description copied from interface:ClassificationQueryAdd your description to your query. It will be compared in SQL with an LIKE. If you use a wildcard like % then it will be transmitted to the database.- Specified by:
descriptionLikein interfaceClassificationQuery- Parameters:
description- your description- Returns:
- the query
-
priorityIn
public ClassificationQuery priorityIn(int... priorities)
Description copied from interface:ClassificationQueryAdd your priority to your query.- Specified by:
priorityInin interfaceClassificationQuery- Parameters:
priorities- as integers- Returns:
- the query
-
serviceLevelIn
public ClassificationQuery serviceLevelIn(String... serviceLevelIn)
Description copied from interface:ClassificationQueryAdd your serviceLevel to your query.- Specified by:
serviceLevelInin interfaceClassificationQuery- Parameters:
serviceLevelIn- as String- Returns:
- the query
-
serviceLevelLike
public ClassificationQuery serviceLevelLike(String... serviceLevelLike)
Description copied from interface:ClassificationQueryAdd your serviceLevel to your query. It will be compared in SQL with an LIKE.- Specified by:
serviceLevelLikein interfaceClassificationQuery- Parameters:
serviceLevelLike- as String- Returns:
- the query
-
applicationEntryPointIn
public ClassificationQuery applicationEntryPointIn(String... applicationEntryPointIn)
Description copied from interface:ClassificationQueryAdd your applicationEntryPoint to your query.- Specified by:
applicationEntryPointInin interfaceClassificationQuery- Parameters:
applicationEntryPointIn- name of the applications entrypoint- Returns:
- the query
-
applicationEntryPointLike
public ClassificationQuery applicationEntryPointLike(String... applicationEntryPointLike)
Description copied from interface:ClassificationQueryAdd your applicationEntryPoint to your query. It will be compared in SQL with an LIKE.- Specified by:
applicationEntryPointLikein interfaceClassificationQuery- Parameters:
applicationEntryPointLike- name of the applications entrypoint- Returns:
- the query
-
customAttributeIn
public ClassificationQuery customAttributeIn(ClassificationCustomField customField, String... customIn) throws InvalidArgumentException
Description copied from interface:ClassificationQueryAdd the values of custom attributes for exact matching to your query.- Specified by:
customAttributeInin interfaceClassificationQuery- Parameters:
customField- identifies which custom attribute is affected.customIn- the customField values of the searched for tasks- Returns:
- the query
- Throws:
InvalidArgumentException- if searchArguments is empty or null
-
customAttributeLike
public ClassificationQuery customAttributeLike(ClassificationCustomField customField, String... customLike) throws InvalidArgumentException
Description copied from interface:ClassificationQueryAdd the values of custom attributes for pattern matching to your query. They will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.- Specified by:
customAttributeLikein interfaceClassificationQuery- Parameters:
customField- identifies which custom attribute is affected.customLike- the customField values of the searched-for tasks- Returns:
- the query
- Throws:
InvalidArgumentException- if searchArguments is empty or null
-
orderByKey
public ClassificationQuery orderByKey(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by key.- Specified by:
orderByKeyin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByParentId
public ClassificationQuery orderByParentId(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by the parent classification ID.- Specified by:
orderByParentIdin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByParentKey
public ClassificationQuery orderByParentKey(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by the parent classification key.- Specified by:
orderByParentKeyin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByCategory
public ClassificationQuery orderByCategory(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by category.- Specified by:
orderByCategoryin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByDomain
public ClassificationQuery orderByDomain(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by domain.- Specified by:
orderByDomainin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByName
public ClassificationQuery orderByName(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by name.- Specified by:
orderByNamein interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByServiceLevel
public ClassificationQuery orderByServiceLevel(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by service level.- Specified by:
orderByServiceLevelin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByPriority
public ClassificationQuery orderByPriority(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by priority.- Specified by:
orderByPriorityin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByApplicationEntryPoint
public ClassificationQuery orderByApplicationEntryPoint(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySort the query result by the application entry point name.- Specified by:
orderByApplicationEntryPointin interfaceClassificationQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByCustomAttribute
public ClassificationQuery orderByCustomAttribute(ClassificationCustomField customField, BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQueryThis method sorts the query result according to the value of a custom field.- Specified by:
orderByCustomAttributein interfaceClassificationQuery- Parameters:
customField- identifies which custom attribute is affected.sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
list
public List<ClassificationSummary> list()
- Specified by:
listin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
list
public List<ClassificationSummary> list(int offset, int limit)
- Specified by:
listin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
listValues
public List<String> listValues(ClassificationQueryColumnName columnName, BaseQuery.SortDirection sortDirection)
- Specified by:
listValuesin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
single
public ClassificationSummary single()
- Specified by:
singlein interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
count
public long count()
- Specified by:
countin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
getKey
public String[] getKey()
-
getIdIn
public String[] getIdIn()
-
getparentId
public String[] getparentId()
-
getparentKey
public String[] getparentKey()
-
getCategory
public String[] getCategory()
-
getType
public String[] getType()
-
getNameIn
public String[] getNameIn()
-
getNameLike
public String[] getNameLike()
-
getDescriptionLike
public String getDescriptionLike()
-
getPriority
public int[] getPriority()
-
getServiceLevelIn
public String[] getServiceLevelIn()
-
getServiceLevelLike
public String[] getServiceLevelLike()
-
getDomain
public String[] getDomain()
-
getValidInDomain
public Boolean getValidInDomain()
-
getCreatedIn
public TimeInterval[] getCreatedIn()
-
getModifiedIn
public TimeInterval[] getModifiedIn()
-
getApplicationEntryPointIn
public String[] getApplicationEntryPointIn()
-
getApplicationEntryPointLike
public String[] getApplicationEntryPointLike()
-
getCustom1In
public String[] getCustom1In()
-
getCustom1Like
public String[] getCustom1Like()
-
getCustom2In
public String[] getCustom2In()
-
getCustom2Like
public String[] getCustom2Like()
-
getCustom3In
public String[] getCustom3In()
-
getCustom3Like
public String[] getCustom3Like()
-
getCustom4In
public String[] getCustom4In()
-
getCustom4Like
public String[] getCustom4Like()
-
getCustom5In
public String[] getCustom5In()
-
getCustom5Like
public String[] getCustom5Like()
-
getCustom6In
public String[] getCustom6In()
-
getCustom6Like
public String[] getCustom6Like()
-
getCustom7In
public String[] getCustom7In()
-
getCustom7Like
public String[] getCustom7Like()
-
getCustom8In
public String[] getCustom8In()
-
getCustom8Like
public String[] getCustom8Like()
-
getColumnName
public ClassificationQueryColumnName getColumnName()
-
-