1 /***
2 * $Id: DAOAction.java,v 1.1.1.1 2004/05/18 10:50:12 mochoa Exp $
3 * */
4
5 package org.j2ee.dao;
6
7 /***
8 * This interface is the common behavior of all actions.
9 * <br>
10 * Based on an example of book <i>Code Notes for J2EE, Edited by GREGORY BRILL,
11 * e-ISBN 0-679-64727-9</i>
12 * <br>
13 * Last modified $Date: 2004/05/18 10:50:12 $
14 * @version $Revision: 1.1.1.1 $
15 * @author jvlio (jvlio@users.sourceforge.net)*/
16 public interface DAOAction {
17
18 /***
19 * This is the mainly method of an action.
20 * Every action in this pattern must be executed with this method
21 * @param processor (The procesor wich carry out with the action
22 * @throws DAOException If there where errors
23 */
24 void execute(DAOActionProcessor processor) throws DAOException;
25
26 /***
27 * Set the private attribute, the transfer object.
28 * Concrete implementation of this interface must be properly
29 * implement this method to provide an uniform interface for all the actions.
30 * @param to (The Transfer Object used by the action)
31 */
32 void setTO(Object to);
33
34 /***
35 * The transfer object used or setted by the action.
36 * @return the transfer object
37 */
38 Object getTO();
39
40
41 /***
42 * This method allows to the action to set a class which manage application
43 * errors such as integrity constraint violated.
44 * @param handler a instance with the application code to manage the exception
45 * @see DAOErrorHandler interface for a list of the code passed to method
46 */
47 void setErrorHandler(DAOErrorHandler handler);
48
49 /***
50 * @link
51 * @shapeType PatternLink
52 * @pattern Composite
53 * @supplierRole Composite
54 */
55 }
This page was automatically generated by Maven