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