public interface SystemMessageDAO extends PersistentObjectDAO<SystemMessage>
Modifier and Type | Method and Description |
---|---|
void |
deleteExpiredMessages(int type)
Removes all expired messages for the specified type
|
void |
deleteExpiredMessages(String recipient)
Removes all system expired messages for the specified recipient
|
List<SystemMessage> |
findByMode(String mode)
This method selects all the messages for the specified mode
|
List<SystemMessage> |
findByRecipient(String recipient,
int type,
Integer read)
This method selects all the messages for the specified recipient and type
|
List<SystemMessage> |
findByType(int type)
This method selects all the messages for the specified type
|
List<SystemMessage> |
findMessagesToBeSent(int type,
int maxTrials)
This method selects all the messages for the specified type that are not
been already sent and for which the number of sending trials is less than
the maximum number (parameter 'notifier.maxtrials')
|
int |
getCount(String recipient,
int type,
Integer read)
This methods gets the number of messages for the specified recipient and
type, and optionally a specified read flag
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
List<SystemMessage> findByRecipient(String recipient, int type, Integer read)
recipient
- The recipient nametype
- The message typeread
- Optional flagint getCount(String recipient, int type, Integer read)
recipient
- The recipient nametype
- The message typeread
- Optional flagvoid deleteExpiredMessages(String recipient)
recipient
- The recipientvoid deleteExpiredMessages(int type)
type
- The message typeList<SystemMessage> findByType(int type)
recipient
- The recipient nameList<SystemMessage> findByMode(String mode)
mode
- The message modeList<SystemMessage> findMessagesToBeSent(int type, int maxTrials)
type
- The message typemaxTrials
- The maximum number of sending trialsCopyright © 2008-2014 Logical Objects. All Rights Reserved.