|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Core interface for all DAO's. Data access objects are created by a DAO factory.
DAOFactory
Method Summary | |
void |
close()
Close all resources held by this DAO. |
Connection |
getConnection()
Return the connection to the data source used by this DAO. |
DAOFactory |
getDAOFactory()
Returns the factory that created this DAO. |
void |
init(Connection conn)
Initialize this DAO with given connection to the data source. |
Method Detail |
public void init(Connection conn) throws DataAccessException
Initialize this DAO with given connection to the data source.
DataAccessException
public void close() throws DataAccessException
Close all resources held by this DAO. After a call to this method, the DAO is no longer usable.
Users should make sure they call the close method in their finally blocks to guarantee that all resources are freed.
Note that this will not close the connection object passed into the init() method. The user of the DAO is responsible for this connection.
DataAccessException
public DAOFactory getDAOFactory()
Returns the factory that created this DAO.
public Connection getConnection()
Return the connection to the data source used by this DAO.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |