|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.StandardConnectionProvider
StandardConnectionProvider implements a general
ConnectionProvider that utilizes a JDBC
DriverManager to instantiate Connection
instances.
This class requires the following configuration Properties:
Connection| Constructor Summary | |
StandardConnectionProvider()
Create a new StandardConnectionProvider. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardConnectionProvider()
| Method Detail |
public void configure(Properties p)
throws ConfigurationException
configure in interface ConnectionProviderp - 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.
getConnection in interface ConnectionProviderSQLException - if unable to get a Connection.public void releaseConnection(Connection c)
releaseConnection in interface ConnectionProviderc - the Connection to be released.public void close()
NOTE: this method must only be invoked by objects controlling access to the ConnectionProvider.
close in interface ConnectionProviderpublic void destroy()
destroy in interface ConnectionProvider
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||