|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ConnectionProvider defines the interface for objects that
provide access to JDBC Connections.
Connection| Method Summary | |
void |
close()
Close the ConnectionProvider. |
void |
configure(Properties p)
Configure the ConnectionProvider. |
void |
destroy()
Destroy the ConnectionProvider. |
Connection |
getConnection()
Get a Connection. |
void |
releaseConnection(Connection c)
Release a Connection. |
| Method Detail |
public void configure(Properties p)
throws ConfigurationException
p - configuration Properties.
ConfigurationException - if required configuration properties
are missing or invalid.
public Connection getConnection()
throws SQLException
NOTE: Clients that get a Connection are required to release it when done.
SQLException - if unable to get a Connection.public void releaseConnection(Connection c)
c - the Connection to be released.public void close()
NOTE: this method must only be invoked by objects controlling access to the ConnectionProvider.
public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||