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
-
-
-
Method Detail
-
keyIn
public ClassificationQuery keyIn(String... keys)
Description copied from interface:ClassificationQuerySelects only Classifications which have a key equal to any of the passed values.- Specified by:
keyInin interfaceClassificationQuery- Parameters:
keys- the values of interest- Returns:
- the query
-
idIn
public ClassificationQuery idIn(String... ids)
Description copied from interface:ClassificationQuerySelects only Classifications which have an id equal to any of the passed values.- Specified by:
idInin interfaceClassificationQuery- Parameters:
ids- the values of interest- Returns:
- the query
-
parentIdIn
public ClassificationQuery parentIdIn(String... parentIds)
Description copied from interface:ClassificationQuerySelects only Classifications which have a parentId equal to any of the passed values.- Specified by:
parentIdInin interfaceClassificationQuery- Parameters:
parentIds- the values of interest- Returns:
- the query
-
parentKeyIn
public ClassificationQuery parentKeyIn(String... parentKeys)
Description copied from interface:ClassificationQuerySelects only Classifications which have a parentKey equal to any of the passed values.- Specified by:
parentKeyInin interfaceClassificationQuery- Parameters:
parentKeys- the values of interest- Returns:
- the query
-
categoryIn
public ClassificationQuery categoryIn(String... categories)
Description copied from interface:ClassificationQuerySelects only Classifications which have a category equal to any of the passed values.- Specified by:
categoryInin interfaceClassificationQuery- Parameters:
categories- the values of interest- Returns:
- the query
-
typeIn
public ClassificationQuery typeIn(String... types)
Description copied from interface:ClassificationQuerySelects only Classifications which have a type equal to any of the passed values.- Specified by:
typeInin interfaceClassificationQuery- Parameters:
types- the values of interest- Returns:
- the query
-
domainIn
public ClassificationQuery domainIn(String... domains)
Description copied from interface:ClassificationQuerySelects only Classifications which have a domain equal to any of the passed values.- Specified by:
domainInin interfaceClassificationQuery- Parameters:
domains- the values of interest- Returns:
- the query
-
validInDomainEquals
public ClassificationQuery validInDomainEquals(Boolean validInDomain)
Description copied from interface:ClassificationQuerySelects only Classifications which have a isValidInDomain flag equal to the passed flag.- Specified by:
validInDomainEqualsin interfaceClassificationQuery- Parameters:
validInDomain- the flag of interest- Returns:
- the query
-
createdWithin
public ClassificationQuery createdWithin(TimeInterval... createdIn)
Description copied from interface:ClassificationQuery- Specified by:
createdWithinin interfaceClassificationQuery- Parameters:
createdIn- the TimeIntervals of interest- Returns:
- the query
-
modifiedWithin
public ClassificationQuery modifiedWithin(TimeInterval... modifiedIn)
Description copied from interface:ClassificationQuery- Specified by:
modifiedWithinin interfaceClassificationQuery- Parameters:
modifiedIn- the TimeIntervals of interest- Returns:
- the query
-
nameIn
public ClassificationQuery nameIn(String... names)
Description copied from interface:ClassificationQuerySelects only Classifications which have a name equal to any of the passed values.- Specified by:
nameInin interfaceClassificationQuery- Parameters:
names- the values of interest- Returns:
- the query
-
nameLike
public ClassificationQuery nameLike(String... names)
Description copied from interface:ClassificationQuerySelects only Classifications which have a ClassificationSummary.getName() value that matches any of the passed patterns.Behind this method the SQL LIKE operator is used. SQL LIKE wildcard characters will be resolved correctly.
Not using any wildcard will compute an exact match.
- Specified by:
nameLikein interfaceClassificationQuery- Parameters:
names- the patterns of interest- Returns:
- the query
-
descriptionLike
public ClassificationQuery descriptionLike(String descriptions)
Description copied from interface:ClassificationQuerySelects only Classifications which have a description value that matches the passed pattern.Behind this method the SQL LIKE operator is used. SQL LIKE wildcard characters will be resolved correctly.
Not using any wildcard will compute an exact match.
- Specified by:
descriptionLikein interfaceClassificationQuery- Parameters:
descriptions- the pattern of interest- Returns:
- the query
-
priorityIn
public ClassificationQuery priorityIn(int... priorities)
Description copied from interface:ClassificationQuerySelects only Classifications which have a priority equal to any of the passed values.- Specified by:
priorityInin interfaceClassificationQuery- Parameters:
priorities- the values of interest- Returns:
- the query
-
serviceLevelIn
public ClassificationQuery serviceLevelIn(String... serviceLevels)
Description copied from interface:ClassificationQuerySelects only Classifications which have a serviceLevel equal to any of the passed values.- Specified by:
serviceLevelInin interfaceClassificationQuery- Parameters:
serviceLevels- the values of interest- Returns:
- the query
-
serviceLevelLike
public ClassificationQuery serviceLevelLike(String... serviceLevels)
Description copied from interface:ClassificationQuerySelects only Classifications which have a serviceLevel value that matches any of the passed patterns.Behind this method the SQL LIKE operator is used. SQL LIKE wildcard characters will be resolved correctly.
Not using any wildcard will compute an exact match.
- Specified by:
serviceLevelLikein interfaceClassificationQuery- Parameters:
serviceLevels- the patterns of interest- Returns:
- the query
-
applicationEntryPointIn
public ClassificationQuery applicationEntryPointIn(String... applicationEntryPoints)
Description copied from interface:ClassificationQuerySelects only Classifications which have a applicationEntryPoint equal to any of the passed values.- Specified by:
applicationEntryPointInin interfaceClassificationQuery- Parameters:
applicationEntryPoints- the values of interest- Returns:
- the query
-
applicationEntryPointLike
public ClassificationQuery applicationEntryPointLike(String... applicationEntryPoints)
Description copied from interface:ClassificationQuerySelects only Classifications which have a applicationEntryPoint that matches any of the passed patterns.Behind this method the SQL LIKE operator is used. SQL LIKE wildcard characters will be resolved correctly.
Not using any wildcard will compute an exact match.
- Specified by:
applicationEntryPointLikein interfaceClassificationQuery- Parameters:
applicationEntryPoints- the patterns of interest- Returns:
- the query
-
customAttributeIn
public ClassificationQuery customAttributeIn(ClassificationCustomField customField, String... values) throws InvalidArgumentException
Description copied from interface:ClassificationQuerySelects only Classifications which have the specified customField with the value equal to any of the passed values.- Specified by:
customAttributeInin interfaceClassificationQuery- Parameters:
customField- identifies which ClassificationCustomField is affectedvalues- the values of interest- Returns:
- the query
- Throws:
InvalidArgumentException- if searchArguments is empty or NULL
-
customAttributeLike
public ClassificationQuery customAttributeLike(ClassificationCustomField customField, String... values) throws InvalidArgumentException
Description copied from interface:ClassificationQuerySelects only Classifications which have the specified customField with the value matching any of the passed patterns.Behind this method the SQL LIKE operator is used. SQL LIKE wildcard characters will be resolved correctly.
Not using any wildcard will compute an exact match.
- Specified by:
customAttributeLikein interfaceClassificationQuery- Parameters:
customField- identifies which ClassificationCustomField is affectedvalues- the patterns of interest- Returns:
- the query
- Throws:
InvalidArgumentException- if searchArguments is empty or NULL
-
orderByKey
public ClassificationQuery orderByKey(BaseQuery.SortDirection sortDirection)
Description copied from interface:ClassificationQuerySorts 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:ClassificationQuerySorts the query result by the parentKey.- 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:ClassificationQuerySorts the query result by category.- 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:ClassificationQuerySorts 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:ClassificationQuerySorts 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:ClassificationQuerySorts the query result by domain.- 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:ClassificationQuerySorts 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:ClassificationQuerySorts the query result by the applicationEntryPoint.- 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:ClassificationQuerySorts the query result according to the value of the specified customField.- Specified by:
orderByCustomAttributein interfaceClassificationQuery- Parameters:
customField- identifies which customField is affectedsortDirection- 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()
-
-