|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.j2ee.dao.DAOJdbcActionProcessorImpl
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:13 $
| Constructor Summary | |
|---|---|
DAOJdbcActionProcessorImpl()
|
|
| 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 acmd)
|
void |
rollbackTransaction()
rollback a started transaction. |
void |
setConnection(java.sql.Connection connection)
Set a JDBC Connection to this processor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DAOJdbcActionProcessorImpl()
| Method Detail |
public org.j2ee.dao.errors.ErrorMapper getErrorMapper()
getErrorMapper in interface DAOActionProcessor
public void process(org.j2ee.dao.DAOAction acmd)
throws DAOException
process in interface DAOActionProcessoracmd - An action to execute
DAOException - if the action is not of the type espected, for example JdbcDAOActionpublic java.sql.Connection getConnection()
DAOActionProcessor
getConnection in interface DAOActionProcessorpublic void setConnection(java.sql.Connection connection)
DAOActionProcessor
setConnection in interface DAOActionProcessorconnection - Connection
public void getSession()
throws DAOException
getSession in interface DAOActionProcessorDAOException - if there are errors open the session
public void beginTransaction()
throws DAOException
beginTransaction in interface DAOActionProcessorDAOException
public void commitTransaction()
throws DAOException
commitTransaction in interface DAOActionProcessorDAOException
public void rollbackTransaction()
throws DAOException
rollbackTransaction in interface DAOActionProcessorDAOException
public void closeSession()
throws DAOException
closeSession in interface DAOActionProcessorDAOException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||