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
DaoException
protected void closeConnection(Connection connection) throws DaoException
DaoException
protected void closeConnection(Connection connection, Throwable exception) throws DaoException
DaoException
protected Connection beginTransaction() throws DaoException
DaoException
protected void commitTransaction(Connection connection) throws DaoException
DaoException
protected void rollbackTransaction(Connection connection) throws DaoException
DaoException
protected void rollbackTransaction(Connection connection, Throwable exception) throws DaoException
DaoException