01: package org.contineo.core.communication.dao;
02:
03: import java.util.List;
04:
05: import org.contineo.core.communication.SystemMessage;
06:
07: /**
08: * This is a DAO service for SystemMessages.
09: *
10: * @author Michael Scholz
11: * @author Marco Meschieri
12: * @version 1.0
13: */
14: public interface SystemMessageDAO {
15: /**
16: * This method persists a systemmessage object.
17: *
18: * @param sysmess SystemMessage which should be store.
19: * @return True if successfully stored in a database.
20: */
21: public boolean store(SystemMessage sysmess);
22:
23: public boolean delete(int messageid);
24:
25: public SystemMessage findByPrimaryKey(int messageid);
26:
27: public List<SystemMessage> findByRecipient(String recipient);
28:
29: public int getCount(String recipient);
30:
31: /**
32: * Removes all expired messages for the specified recipient
33: *
34: * @param recipient The recipient
35: */
36: public void deleteExpiredMessages(String recipient);
37: }
|