|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionProvider
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 |
|---|
void configure(Properties p)
throws ConfigurationException
p - configuration Properties.
ConfigurationException - if required configuration properties
are missing or invalid.
Connection getConnection()
throws SQLException
NOTE: Clients that get a Connection are required to release it when done.
SQLException - if unable to get a Connection.void releaseConnection(Connection c)
c - the Connection to be released.void close()
NOTE: this method must only be invoked by objects controlling access to the ConnectionProvider.
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||