Package ru.bgcrm.dao.process
Class ProcessTypeDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.process.ProcessTypeDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id> -
Field Summary
Fields inherited from class ru.bgcrm.dao.CommonDAO
con, log, SQL_AND, SQL_DELETE, SQL_DELETE_FROM, SQL_DESC, SQL_DISTINCT, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT_IGNORE_INTO, SQL_INSERT_INTO, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UNION_ALL, SQL_UPDATE, SQL_VALUES, SQL_VALUES_1, SQL_VALUES_2, SQL_VALUES_3, SQL_VALUES_4, SQL_VALUES_5, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckProcessTypeForDelete(int id) true если каталог пуст и можно удалятьbooleanПроверяет наличие в родительском типе дочернего с указанным названием.voidcopyTypeProperties(int fromTypeId, int toTypeId) Copy process type properties.booleandeleteProcessType(int id) Удаляет тип процесса.Возвращает список всех типов процессов с сортировкой по наименованию.getProcessType(int id) Выбирает тип процесса по коду.Deprecated.getSortedProcessTypeStatusList(ProcessType type, List<Integer> sortingId) Deprecated.getTypeChildren(int parentId, Set<Integer> excludeIds) voidsearchProcessType(Pageable<ProcessType> result, int parentId, String filterLike) Searches process typesvoidupdateProcessType(ProcessType processType, int userId) Updates or creates a process type entity.voidОбновляет свойства типа процесса.Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, foundRows, getById, getGroupedIds, getGroupedIds, getIds, getIds, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, update, updateColumn, updateIds, updateIds, updateOrInsert
-
Constructor Details
-
ProcessTypeDAO
-
-
Method Details
-
searchProcessType
public void searchProcessType(Pageable<ProcessType> result, int parentId, String filterLike) throws Exception Searches process types- Parameters:
result- the resultparentId- when greater 0 - filter by parent type idfilterLike- when notnullor empty, SQL LIKE expression to filter by ID, title, or config- Throws:
Exception
-
getProcessType
Выбирает тип процесса по коду.- Parameters:
id-- Returns:
- Throws:
Exception
-
getTypeChildren
- Throws:
Exception
-
getFullProcessTypeList
Возвращает список всех типов процессов с сортировкой по наименованию.- Returns:
- Throws:
SQLException
-
getSortedProcessTypeStatusList
@Deprecated public List<Status> getSortedProcessTypeStatusList(ProcessType type, List<Integer> sortingId) Deprecated.UseProcessTypeCache -
getProcessTypeStatusList
Deprecated.UseProcessTypeCache -
updateProcessType
Updates or creates a process type entity.- Parameters:
processType-userId-- Throws:
Exception
-
updateTypeProperties
Обновляет свойства типа процесса.- Parameters:
type-
-
copyTypeProperties
Copy process type properties.- Parameters:
fromTypeId-toTypeId-- Throws:
Exception
-
checkProcessTypeForDelete
true если каталог пуст и можно удалять- Parameters:
id-- Throws:
Exception
-
deleteProcessType
Удаляет тип процесса.- Parameters:
id-- Returns:
- Throws:
Exception
-
checkType
Проверяет наличие в родительском типе дочернего с указанным названием.- Parameters:
parentId-name-- Returns:
- Throws:
Exception
-