Class SelectDescriptorBuilder
java.lang.Object
org.bonitasoft.engine.core.category.persistence.SelectDescriptorBuilder
- Author:
- Yanyan Liu, Matthieu Chaffotte, Celine Souchet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptionsbuildQueryOptionsForCategoryMappingOrderedByCategoryId(int fromIndex, int maxResults, OrderByType order) static SelectListDescriptor<SCategory>getCategories(String field, OrderByType order, int fromIndex, int numberOfProcesses) static SelectListDescriptor<SCategory>getCategoriesOfProcess(long processId, int fromIndex, int numberOfCategories, OrderByType order) static SelectListDescriptor<SCategory>getCategoriesUnrelatedToProcess(long processId, int fromIndex, int numberOfCategories, OrderByType order) static SelectByIdDescriptor<SCategory>getCategory(long categoryId) static SelectOneDescriptor<SCategory>getCategory(String categoryName) getCategoryMappingOfProcessAndCategories(long processDefinitionId, List<Long> categoryIds, int fromIndex, int maxResults) static SelectOneDescriptor<Long>getNumberOfCategoriesOfProcess(long processId) static SelectOneDescriptor<Long>getNumberOfCategoriesUnrelatedToProcess(long processId) static SelectOneDescriptor<Long>getNumberOfCategorizedProcessIds(List<Long> processIds) static SelectOneDescriptor<Long>getNumberOfElement(String elementName, Class<? extends PersistentObject> clazz) static SelectOneDescriptor<Long>isCategoryExistsInProcess(long categoryId, long processDefinitionId)
-
Constructor Details
-
SelectDescriptorBuilder
public SelectDescriptorBuilder()
-
-
Method Details
-
getCategory
-
getCategory
-
getNumberOfElement
public static SelectOneDescriptor<Long> getNumberOfElement(String elementName, Class<? extends PersistentObject> clazz) -
getCategories
public static SelectListDescriptor<SCategory> getCategories(String field, OrderByType order, int fromIndex, int numberOfProcesses) -
getCategoriesOfProcess
public static SelectListDescriptor<SCategory> getCategoriesOfProcess(long processId, int fromIndex, int numberOfCategories, OrderByType order) -
getNumberOfCategoriesOfProcess
-
getNumberOfCategorizedProcessIds
-
isCategoryExistsInProcess
public static SelectOneDescriptor<Long> isCategoryExistsInProcess(long categoryId, long processDefinitionId) -
getCategoryMappingOfProcessAndCategories
public static SelectListDescriptor<SProcessCategoryMapping> getCategoryMappingOfProcessAndCategories(long processDefinitionId, List<Long> categoryIds, int fromIndex, int maxResults) -
buildQueryOptionsForCategoryMappingOrderedByCategoryId
public static QueryOptions buildQueryOptionsForCategoryMappingOrderedByCategoryId(int fromIndex, int maxResults, OrderByType order)
-