- All Superinterfaces:
- All Known Implementing Classes:
public interface JdbcConnectionAccess extends java.io.SerializableProvides centralized access to JDBC connections. Centralized to hide the complexity of accounting for contextual (multi-tenant) versus non-contextual access.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
obtainConnection()Obtain a JDBC connection
releaseConnection(java.sql.Connection connection)Release a previously obtained connection
supportsAggressiveRelease()Does the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?
java.sql.Connection obtainConnection() throws java.sql.SQLExceptionObtain a JDBC connection
- The obtained connection
java.sql.SQLException- Indicates a problem getting the connection
void releaseConnection(java.sql.Connection connection) throws java.sql.SQLExceptionRelease a previously obtained connection
connection- The connection to release
java.sql.SQLException- Indicates a problem releasing the connection
- See Also: