Package org.bgerp.dao.message
Class MessageSearchDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.message.MessageDAO
org.bgerp.dao.message.MessageSearchDAO
Fluent DAO for message search.
-
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, 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 TypeMethodDescriptionorder
(MessageSearchDAO.Order value) Adds selection order.void
Executes search.withAttach
(Boolean value) Filter by attachment existence.withDateFrom
(Date from, Date to) Filter byMessage.getFromTime()
, day precision.withDirection
(Integer value) Filter byMessage.getDirection()
.SQL LIKE filter byMessage.getFrom()
.withProcessed
(Boolean value) Filter byinvalid reference
Message#isProcessed()
withProcessIds
(Set<Integer> value) Filter by linked to message process IDs.Filter byMessage.getToTime()
notnull
.withTagId
(int value) Filter by message tag ID.withTagIds
(Set<Integer> value) Filter by message tag IDs.withTypeId
(int value) Filter by single type ID.withTypeIds
(Set<Integer> value) Filter by message type IDs.Methods inherited from class ru.bgcrm.dao.message.MessageDAO
deleteMessage, deleteProcessMessages, getIsolationJoin, getMessageById, getMessageBySystemId, getMessageFromRs, getMessageTags, getProcessMessageList, getProcessMessageList, getProcessMessageTagMap, getProcessMessageTagMap, getUnsendMessageList, searchMessageList, searchMessageList, searchMessageList, searchMessageList, searchMessageList, toggleMessageTags, updateMessage, updateMessageProcess, updateMessageTags
Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, foundRows, getById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds, updateOrInsert
-
Constructor Details
-
MessageSearchDAO
-
-
Method Details
-
withTagIds
Filter by message tag IDs.- Parameters:
value
-- Returns:
-
withTagId
Filter by message tag ID.- Parameters:
value
- positive ID.- Returns:
-
withProcessIds
Filter by linked to message process IDs.- Parameters:
value
-- Returns:
-
withTypeIds
Filter by message type IDs.- Parameters:
value
-- Returns:
-
withTypeId
Filter by single type ID.- Parameters:
value
- positive ID.- Returns:
-
withDirection
Filter byMessage.getDirection()
.- Parameters:
value
-- Returns:
-
withProcessed
Filter byinvalid reference
Message#isProcessed()
- Parameters:
value
-- Returns:
-
withRead
Filter byMessage.getToTime()
notnull
.- Parameters:
value
-- Returns:
-
withAttach
Filter by attachment existence.- Parameters:
value
-- Returns:
-
withFrom
SQL LIKE filter byMessage.getFrom()
.- Parameters:
value
-- Returns:
-
withDateFrom
Filter byMessage.getFromTime()
, day precision.- Parameters:
from
- from day including.to
- to day, including.- Returns:
-
order
Adds selection order.- Parameters:
value
-- Returns:
-
search
Executes search.- Parameters:
result
- pageable result.- Throws:
SQLException
-