Top Fields Constructors Methods
org.hibernate.internal

public Class ContextualJdbcConnectionAccess

extends Object
implements JdbcConnectionAccess, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess
Imports
java.io.Serializable, java.sql.Connection, .SQLException, org.hibernate.HibernateException, .SessionEventListener, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, .MultiTenantConnectionProvider, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.event.spi.EventManager, .HibernateMonitoringEvent

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final MultiTenantConnectionProvider<Object>
private final SessionEventListener
private final SharedSessionContractImplementor
private final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Connection
public void
releaseConnection(Connection
The connection to release
connection
)

Implements org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.releaseConnection.

Release a previously obtained connection
public boolean
supportsAggressiveRelease()

Implements org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.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?
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionProviderback to summary
private final MultiTenantConnectionProvider<Object> connectionProvider
listenerback to summary
private final SessionEventListener listener
sessionback to summary
private final SharedSessionContractImplementor session
tenantIdentifierback to summary
private final Object tenantIdentifier

Constructor Detail

ContextualJdbcConnectionAccessback to summary
public ContextualJdbcConnectionAccess(Object tenantIdentifier, SessionEventListener listener, MultiTenantConnectionProvider<Object> connectionProvider, SharedSessionContractImplementor session)

Method Detail

obtainConnectionback to summary
public Connection obtainConnection() throws SQLException

Implements org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.obtainConnection.

Doc from org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.obtainConnection.

Obtain a JDBC connection

Returns:Connection

The obtained connection

Annotations
@Override
Exceptions
SQLException:
Indicates a problem getting the connection
releaseConnectionback to summary
public void releaseConnection(Connection connection) throws SQLException

Implements org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.releaseConnection.

Doc from org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.releaseConnection.

Release a previously obtained connection

Parameters
connection:Connection

The connection to release

Annotations
@Override
Exceptions
SQLException:
Indicates a problem releasing the connection
supportsAggressiveReleaseback to summary
public boolean supportsAggressiveRelease()

Implements org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.supportsAggressiveRelease.

Doc from org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess.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?

Returns:boolean

true/false

Annotations
@Override