|
||||||||||
| 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(java.lang.String driverName,
java.lang.String connectionUri,
java.lang.String userName,
java.lang.String password)
|
|
SimpleJDBCConnectionPool(java.lang.String driverName,
java.lang.String connectionUri,
java.lang.String userName,
java.lang.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(java.sql.Connection conn)
Releases a connection that was retrieved earlier. |
java.sql.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(java.lang.String driverName,
java.lang.String connectionUri,
java.lang.String userName,
java.lang.String password)
throws java.sql.SQLException
java.sql.SQLException
public SimpleJDBCConnectionPool(java.lang.String driverName,
java.lang.String connectionUri,
java.lang.String userName,
java.lang.String password,
int initialConnections,
int maxConnections)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public java.sql.Connection reserveConnection()
throws java.sql.SQLException
JDBCConnectionPool
reserveConnection in interface JDBCConnectionPooljava.sql.SQLExceptionpublic void releaseConnection(java.sql.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 | |||||||||