Package ru.bgcrm.dao.process
Class QueueDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.process.QueueDAO
-
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, 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_WHERE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(int id) getQueue
(int id) getQueueProcessStat
(Queue queue) getQueueProcessTypeIds
(int id) getQueueStat
(Queue queue, String userIds) getQueueUserStat
(Queue queue, String userIds) void
void
updateQueue
(Queue queue, int userId) Updates process queue entity.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
-
QueueDAO
-
-
Method Details
-
searchQueue
public void searchQueue(Pageable<Queue> searchResult, Set<Integer> queueIds, String filter) throws SQLException - Throws:
SQLException
-
getQueueList
- Throws:
SQLException
-
getQueue
- Throws:
SQLException
-
updateQueue
Updates process queue entity.- Parameters:
queue
- entity data, for insertionId.getId()
<= 0.userId
- user ID for checking conflicting updates.- Throws:
BGMessageException
SQLException
-
getQueueProcessTypeIds
- Throws:
SQLException
-
getQueueStat
- Throws:
SQLException
-
getQueueProcessStat
- Throws:
SQLException
-
getQueueUserStat
- Throws:
SQLException
-
delete
- Throws:
SQLException
-