org.j2ee.dao
Class MacroDAOAction

java.lang.Object
  |
  +--org.j2ee.dao.MacroDAOAction
All Implemented Interfaces:
DAOAction

public class MacroDAOAction
extends java.lang.Object
implements DAOAction

Last modified $Date: 2004/05/18 10:50:13 $

Version:
$Revision: 1.1.1.1 $
Author:
jvlio (jvlio@mail.com)

Field Summary
 java.lang.Object executing
           
 
Constructor Summary
MacroDAOAction()
           
 
Method Summary
 java.util.Iterator actions()
           
 void add(org.j2ee.dao.DAOAction action)
           
 void clear()
           
 void execute(org.j2ee.dao.DAOActionProcessor processor)
          This is the mainly method of an action.
 void finalize()
           
 java.lang.Object getTO()
          The transfer object used or setted by the action.
 void initialize()
           
 void posExecute(int naction, org.j2ee.dao.DAOAction action)
           
 void preExecute(int naction, org.j2ee.dao.DAOAction action)
           
 void remove(org.j2ee.dao.DAOAction action)
           
 void setErrorHandler(org.j2ee.dao.DAOErrorHandler handler)
          This method allows to the action to set a class which manage application errors such as integrity constraint violated.
 void setTO(java.lang.Object to)
          Set the private attribute, the transfer object.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executing

public final java.lang.Object executing
Constructor Detail

MacroDAOAction

public MacroDAOAction()
Method Detail

setTO

public void setTO(java.lang.Object to)
Set the private attribute, the transfer object. Concrete implementation of this interface must be properly implement this method to provide an uniform interface for all the actions.

Specified by:
setTO in interface DAOAction
Parameters:
to - (The Transfer Object used by the action)

getTO

public java.lang.Object getTO()
The transfer object used or setted by the action.

Specified by:
getTO in interface DAOAction
Returns:
the transfer object-

setErrorHandler

public void setErrorHandler(org.j2ee.dao.DAOErrorHandler handler)
This method allows to the action to set a class which manage application errors such as integrity constraint violated.

Specified by:
setErrorHandler in interface DAOAction
Parameters:
handler - a instance with the application code to manage the exception
See Also:
interface for a list of the code passed to method

execute

public void execute(org.j2ee.dao.DAOActionProcessor processor)
             throws DAOException
Description copied from interface: DAOAction
This is the mainly method of an action. Every action in this pattern must be executed with this method

Specified by:
execute in interface DAOAction
Parameters:
processor - (The procesor wich carry out with the action
Throws:
DAOException - If there where errors

initialize

public void initialize()

preExecute

public void preExecute(int naction,
                       org.j2ee.dao.DAOAction action)

posExecute

public void posExecute(int naction,
                       org.j2ee.dao.DAOAction action)

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

add

public void add(org.j2ee.dao.DAOAction action)

remove

public void remove(org.j2ee.dao.DAOAction action)

clear

public void clear()

actions

public java.util.Iterator actions()


Copyright © 2004 DAO Action Patterm. All Rights Reserved.