Class ClassificationQueryImpl
- All Implemented Interfaces:
ClassificationQuery,BaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
Nested Class Summary
Nested classes/interfaces inherited from interface pro.taskana.common.api.BaseQuery
BaseQuery.SortDirection -
Method Summary
Modifier and TypeMethodDescriptionapplicationEntryPointIn(String... applicationEntryPoints) Selects only Classifications which have a applicationEntryPoint equal to any of the passed values.applicationEntryPointLike(String... applicationEntryPoints) Selects only Classifications which have a applicationEntryPoint that matches any of the passed patterns.categoryIn(String... categories) Selects only Classifications which have a category equal to any of the passed values.longcount()createdWithin(TimeInterval... createdIn) customAttributeIn(ClassificationCustomField customField, String... values) Selects only Classifications which have the specified customField with the value equal to any of the passed values.customAttributeLike(ClassificationCustomField customField, String... values) Selects only Classifications which have the specified customField with the value matching any of the passed patterns.descriptionLike(String descriptions) Selects only Classifications which have a description value that matches the passed pattern.Selects only Classifications which have a domain equal to any of the passed values.String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]String[]getIdIn()String[]getKey()String[]String[]String[]String[]int[]String[]String[]String[]getType()Selects only Classifications which have an id equal to any of the passed values.Selects only Classifications which have a key equal to any of the passed values.list()list(int offset, int limit) listValues(ClassificationQueryColumnName columnName, BaseQuery.SortDirection sortDirection) modifiedWithin(TimeInterval... modifiedIn) Selects only Classifications which have a name equal to any of the passed values.Selects only Classifications which have a ClassificationSummary.getName() value that matches any of the passed patterns.orderByApplicationEntryPoint(BaseQuery.SortDirection sortDirection) Sorts the query result by the applicationEntryPoint.orderByCategory(BaseQuery.SortDirection sortDirection) Sorts the query result by category.orderByCustomAttribute(ClassificationCustomField customField, BaseQuery.SortDirection sortDirection) Sorts the query result according to the value of the specified customField.orderByDomain(BaseQuery.SortDirection sortDirection) Sort the query result by domain.orderByKey(BaseQuery.SortDirection sortDirection) Sorts the query result by key.orderByName(BaseQuery.SortDirection sortDirection) Sorts the query result by name.orderByParentId(BaseQuery.SortDirection sortDirection) Sorts the query result by the parentKey.orderByParentKey(BaseQuery.SortDirection sortDirection) Sorts the query result by category.orderByPriority(BaseQuery.SortDirection sortDirection) Sorts the query result by priority.orderByServiceLevel(BaseQuery.SortDirection sortDirection) Sorts the query result by domain.parentIdIn(String... parentIds) Selects only Classifications which have a parentId equal to any of the passed values.parentKeyIn(String... parentKeys) Selects only Classifications which have a parentKey equal to any of the passed values.priorityIn(int... priorities) Selects only Classifications which have a priority equal to any of the passed values.serviceLevelIn(String... serviceLevels) Selects only Classifications which have a serviceLevel equal to any of the passed values.serviceLevelLike(String... serviceLevels) Selects only Classifications which have a serviceLevel value that matches any of the passed patterns.single()toString()Selects only Classifications which have a type equal to any of the passed values.validInDomainEquals(Boolean validInDomain) Selects only Classifications which have a isValidInDomain flag equal to the passed flag.
-
Method Details
-
keyIn
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
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
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
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
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
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
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
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
Description copied from interface:ClassificationQuery- Specified by:
createdWithinin interfaceClassificationQuery- Parameters:
createdIn- the TimeIntervals of interest- Returns:
- the query
-
modifiedWithin
Description copied from interface:ClassificationQuery- Specified by:
modifiedWithinin interfaceClassificationQuery- Parameters:
modifiedIn- the TimeIntervals of interest- Returns:
- the query
-
nameIn
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- Specified by:
listin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
list
- Specified by:
listin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
listValues
public List<String> listValues(ClassificationQueryColumnName columnName, BaseQuery.SortDirection sortDirection) - Specified by:
listValuesin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
single
- Specified by:
singlein interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
count
public long count()- Specified by:
countin interfaceBaseQuery<ClassificationSummary,ClassificationQueryColumnName>
-
getKey
-
getIdIn
-
getparentId
-
getparentKey
-
getCategory
-
getType
-
getNameIn
-
getNameLike
-
getDescriptionLike
-
getPriority
public int[] getPriority() -
getServiceLevelIn
-
getServiceLevelLike
-
getDomain
-
getValidInDomain
-
getCreatedIn
-
getModifiedIn
-
getApplicationEntryPointIn
-
getApplicationEntryPointLike
-
getCustom1In
-
getCustom1Like
-
getCustom2In
-
getCustom2Like
-
getCustom3In
-
getCustom3Like
-
getCustom4In
-
getCustom4Like
-
getCustom5In
-
getCustom5Like
-
getCustom6In
-
getCustom6Like
-
getCustom7In
-
getCustom7Like
-
getCustom8In
-
getCustom8Like
-
getColumnName
-
getOrderBy
-
getOrderColumns
-
toString
-