|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Based on an example of book Code Notes for J2EE, Edited by GREGORY BRILL,
e-ISBN 0-679-64727-9
Last modified $Date: 2004/05/18 10:50:12 $
| Method Summary | |
|---|---|
void |
beginTransaction()
Start a new DAO transaction. |
void |
closeSession()
close a started session |
void |
commitTransaction()
commit a started transaction. |
java.sql.Connection |
getConnection()
Returns the JDBC Connection associated to this processor |
org.j2ee.dao.errors.ErrorMapper |
getErrorMapper()
Return an ErrorMapper object to translate SQLException or other kind of exception to a common error list code |
void |
getSession()
get/start a DAO Session object to be used for external controled action. |
void |
process(org.j2ee.dao.DAOAction cmd)
|
void |
rollbackTransaction()
rollback a started transaction. |
void |
setConnection(java.sql.Connection connection)
Set a JDBC Connection to this processor |
| Method Detail |
public void process(org.j2ee.dao.DAOAction cmd)
throws DAOException
cmd - An action to execute
DAOException - if the action is not of the type espected, for example JdbcDAOActionpublic java.sql.Connection getConnection()
public void setConnection(java.sql.Connection connection)
connection - Connectionpublic org.j2ee.dao.errors.ErrorMapper getErrorMapper()
public void getSession()
throws DAOException
DAOException - if there are errors open the session
public void beginTransaction()
throws DAOException
DAOException
public void commitTransaction()
throws DAOException
DAOException
public void rollbackTransaction()
throws DAOException
DAOException
public void closeSession()
throws DAOException
DAOException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||