|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionPool
Interface that needs to be implemented to provide pool of connections.
Default implementation of Connection Pool| Method Summary | |
|---|---|
void |
closeConnection(java.sql.Connection connectionToClose)
This method closes an open connection and returns the connection to the pool. |
void |
createPool(ConnectionProperties prop)
This method is used to create the connection pool and keep it ready |
java.sql.Connection |
getConnection()
This method is called whenever a connection is needed from the pool. |
void |
releasePool()
This method is called when the pool needs to be destroyed effectively closing all open connections |
| Method Detail |
|---|
void createPool(ConnectionProperties prop)
throws ConnectionException
prop - Properties for the connection pool including connection properties
ConnectionException
java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
void closeConnection(java.sql.Connection connectionToClose)
throws java.sql.SQLException
connectionToClose - The connection to be returned to the pool.
java.sql.SQLException
void releasePool()
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||