01: package org.contineo.core.document.dao;
02:
03: import org.contineo.core.document.DownloadTicket;
04:
05: /**
06: * DAO for <code>DownloadTicket</code> handling.
07: *
08: * @author Michael Scholz
09: * @author Marco Meschieri
10: */
11: public interface DownloadTicketDAO {
12:
13: /**
14: * This method persists a download ticket object.
15: *
16: * @param ticket DownloadTicket to be stored.
17: * @return True if successfully stored in a database.
18: */
19: public boolean store(DownloadTicket ticket);
20:
21: /**
22: * This method deletes a download ticket.
23: *
24: * @param historyid ID of the ticket which should be delete.
25: */
26: public boolean delete(String ticketid);
27:
28: /**
29: * This method deletes all tickets of the specified menu.
30: *
31: * @param menuId ID of the menu
32: */
33: public boolean deleteByMenuId(int menuId);
34:
35: /**
36: * This method finds a download ticket by its primarykey.
37: *
38: * @param ticketid Primarykey of the download ticket.
39: * @return DownloadTicket with given primarykey.
40: */
41: public DownloadTicket findByPrimaryKey(String ticketid);
42: }
|