public abstract class AbstractDao extends Object
| Constructor and Description |
|---|
AbstractDao(ConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
beginTransaction() |
protected void |
closeConnection(Connection connection) |
protected void |
closeConnection(Connection connection,
Throwable exception) |
protected void |
commitTransaction(Connection connection) |
protected Connection |
getConnection() |
protected void |
rollbackTransaction(Connection connection) |
protected void |
rollbackTransaction(Connection connection,
Throwable exception) |
public AbstractDao(ConnectionManager connectionManager)
protected Connection getConnection() throws DaoException
DaoExceptionprotected void closeConnection(Connection connection) throws DaoException
DaoExceptionprotected void closeConnection(Connection connection, Throwable exception) throws DaoException
DaoExceptionprotected Connection beginTransaction() throws DaoException
DaoExceptionprotected void commitTransaction(Connection connection) throws DaoException
DaoExceptionprotected void rollbackTransaction(Connection connection) throws DaoException
DaoExceptionprotected void rollbackTransaction(Connection connection, Throwable exception) throws DaoException
DaoException