|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.util.sqlcontainer.connection.J2EEConnectionPool
public class J2EEConnectionPool
| Constructor Summary | |
|---|---|
J2EEConnectionPool(javax.sql.DataSource dataSource)
|
|
J2EEConnectionPool(java.lang.String dataSourceJndiName)
|
|
| 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 J2EEConnectionPool(javax.sql.DataSource dataSource)
public J2EEConnectionPool(java.lang.String dataSourceJndiName)
| 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 | |||||||||