接口 JdbcConnectionAccess
-
- 所有超级接口:
Serializable
- 所有已知实现类:
ContextualJdbcConnectionAccess,JdbcConnectionAccessConnectionProviderImpl,JdbcConnectionAccessProvidedConnectionImpl,JdbcEnvironmentInitiator.ConnectionProviderJdbcConnectionAccess,JdbcEnvironmentInitiator.MultiTenantConnectionProviderJdbcConnectionAccess,NonContextualJdbcConnectionAccess
public interface JdbcConnectionAccess extends Serializable
Provides centralized access to JDBC connections. Centralized to hide the complexity of accounting for contextual (multi-tenant) versus non-contextual access.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ConnectionobtainConnection()Obtain a JDBC connectionvoidreleaseConnection(Connection connection)Release a previously obtained connectionbooleansupportsAggressiveRelease()Does the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?
-
-
-
方法详细资料
-
obtainConnection
Connection obtainConnection() throws SQLException
Obtain a JDBC connection- 返回:
- The obtained connection
- 抛出:
SQLException- Indicates a problem getting the connection
-
releaseConnection
void releaseConnection(Connection connection) throws SQLException
Release a previously obtained connection- 参数:
connection- The connection to release- 抛出:
SQLException- Indicates a problem releasing the connection
-
supportsAggressiveRelease
boolean 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?
-
-