Package com.logicaldoc.chat
Interface ChatMessageDAO
-
- All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<ChatMessage>
- All Known Implementing Classes:
HibernateChatMessageDAO
public interface ChatMessageDAO extends com.logicaldoc.core.PersistentObjectDAO<ChatMessage>
DAO forChatMessage
handling.- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanOldMessages(int ttl)
This method deletes all the chat entries oldest than the given days from now.List<ChatMessage>
findLatest(long tenantId, Integer max)
This method selects all latest messages-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findLatest
List<ChatMessage> findLatest(long tenantId, Integer max)
This method selects all latest messages- Parameters:
tenantId
- identifier of the tenantmax
- optional maximum number of records- Returns:
- list of messages ordered by descending date
-
cleanOldMessages
void cleanOldMessages(int ttl)
This method deletes all the chat entries oldest than the given days from now. Ifttl
is 0 or -1, the cancellation is not made- Parameters:
ttl
- The maximum number of days over which the history is considered old
-
-