|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.util.sqlcontainer.connection.SimpleJDBCConnectionPool
public class SimpleJDBCConnectionPool
Simple implementation of the JDBCConnectionPool interface. Handles loading the JDBC driver, setting up the connections and ensuring they are still usable upon release.
| Constructor Summary | |
|---|---|
SimpleJDBCConnectionPool(String driverName,
String connectionUri,
String userName,
String password)
|
|
SimpleJDBCConnectionPool(String driverName,
String connectionUri,
String userName,
String password,
int initialConnections,
int maxConnections)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the connection pool: close() is called an all the connections in the pool, whether available or reserved. |
void |
releaseConnection(Connection conn)
Releases a connection that was retrieved earlier. |
Connection |
reserveConnection()
Retrieves a connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJDBCConnectionPool(String driverName,
String connectionUri,
String userName,
String password)
throws SQLException
SQLException
public SimpleJDBCConnectionPool(String driverName,
String connectionUri,
String userName,
String password,
int initialConnections,
int maxConnections)
throws SQLException
SQLException| Method Detail |
|---|
public Connection reserveConnection()
throws SQLException
JDBCConnectionPool
reserveConnection in interface JDBCConnectionPoolSQLExceptionpublic void releaseConnection(Connection conn)
JDBCConnectionPool
releaseConnection in interface JDBCConnectionPoolconn - Connection to be releasedpublic void destroy()
JDBCConnectionPool
destroy in interface JDBCConnectionPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||