01: /*
02: * Created on 21/08/2006 21:17:12
03: */
04: package net.jforum.dao;
05:
06: import java.util.List;
07:
08: import net.jforum.entities.MailIntegration;
09:
10: /**
11: * @author Rafael Steil
12: * @version $Id: MailIntegrationDAO.java,v 1.1 2006/08/22 02:05:24 rafaelsteil Exp $
13: */
14: public interface MailIntegrationDAO {
15: /**
16: * Adds a new mail integration
17: * @param integration the information to add
18: */
19: public void add(MailIntegration integration);
20:
21: /**
22: * Updates an existing mail integration data
23: * @param integration
24: */
25: public void update(MailIntegration integration);
26:
27: /**
28: * Deletes a mail integration by its forumId
29: * @param forumId the forumId of the underlying mailintegration
30: * to be deleted
31: */
32: public void delete(int forumId);
33:
34: /**
35: * Search for a mail integration instance
36: * @param forumId the forumId of the desired object.
37: * @return the requested information, or null if not found
38: */
39: public MailIntegration find(int forumId);
40:
41: /**
42: * Returns all MailIntegration objects currently registered
43: * @return a list with all data found. Each entry is a MailIntegration instance
44: */
45: public List findAll();
46: }
|