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 ClassesNested classes/interfaces inherited from class CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T> -
Field Summary
Fields inherited from class 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 TypeMethodDescriptionorder(MessageSearchDAO.Order value) Adds selection ordervoidExecutes searchwithAttach(Boolean value) Filter by attachment existencewithDateFrom(Date from, Date to) Filter byMessage.getFromTime(), day precisionwithDirection(Integer value) Filter byMessage.getDirection()SQL LIKE filter byMessage.getFrom()withProcessed(Boolean value) Filter by processed flagwithProcessIds(Set<Integer> value) Filter by linked to message process IDsFilter byMessage.getToTime()notnullwithTagId(int value) Filter by message tag IDwithTagIds(Set<Integer> value) Filter by message tag IDswithTypeId(int value) Filter by single type IDwithTypeIds(Set<Integer> value) Filter by message type IDsMethods inherited from class MessageDAO
deleteMessage, deleteProcessMessages, getIsolationJoin, getMessageById, getMessageBySystemId, getMessageFromRs, getMessageTags, getProcessMessageList, getProcessMessageList, getProcessMessageTagMap, getProcessMessageTagMap, getUnsendMessageList, searchMessageList, searchMessageList, searchMessageList, searchMessageList, searchMessageList, toggleMessageTags, updateMessage, updateMessageProcess, updateMessageTagsMethods inherited from class CommonDAO
deleteById, foundRows, getById, getGroupedIds, getGroupedIds, getIds, getIds, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, update, updateColumn, updateIds, updateIds, updateOrInsert
-
Constructor Details
-
MessageSearchDAO
-
-
Method Details
-
withTagIds
Filter by message tag IDs- Parameters:
value-- Returns:
this
-
withTagId
Filter by message tag ID- Parameters:
value- positive ID- Returns:
this
-
withProcessIds
Filter by linked to message process IDs- Parameters:
value-- Returns:
this
-
withTypeIds
Filter by message type IDs- Parameters:
value-- Returns:
this
-
withTypeId
Filter by single type ID- Parameters:
value- positive ID- Returns:
this
-
withDirection
Filter byMessage.getDirection()- Parameters:
value-- Returns:
this
-
withProcessed
Filter by processed flag- Parameters:
value-- Returns:
this
-
withRead
Filter byMessage.getToTime()notnull- Parameters:
value-- Returns:
this
-
withAttach
Filter by attachment existence- Parameters:
value-- Returns:
this
-
withFrom
SQL LIKE filter byMessage.getFrom()- Parameters:
value-- Returns:
this
-
withDateFrom
Filter byMessage.getFromTime(), day precision- Parameters:
from- from day includingto- to day, including- Returns:
this
-
order
Adds selection order- Parameters:
value-- Returns:
this
-
search
Executes search- Parameters:
result- pageable result- Throws:
SQLException
-