public interface LogicalConnectionImplementor extends LogicalConnection
Modifier and Type | Method and Description |
---|---|
void |
addObserver(ConnectionObserver observer)
Add an observer interested in notification of connection events.
|
void |
afterStatementExecution()
Used to signify that a statement has completed execution which may
indicate that this logical connection need to perform an
aggressive release of its physical connection.
|
void |
afterTransaction()
Used to signify that a transaction has completed which may indicate
that this logical connection need to perform an aggressive release
of its physical connection.
|
void |
disableReleases()
Manually (and temporarily) circumvent aggressive release processing.
|
void |
enableReleases()
Re-enable aggressive release processing (after a prior
disableReleases() call. |
ConnectionReleaseMode |
getConnectionReleaseMode()
The release mode under which this logical connection is operating.
|
JdbcServices |
getJdbcServices()
Obtains the JDBC services associated with this logical connection.
|
JdbcResourceRegistry |
getResourceRegistry()
Obtains the JDBC resource registry associated with this logical connection.
|
boolean |
isAutoCommit() |
boolean |
isReadyForSerialization() |
Connection |
manualDisconnect()
Manually disconnect the underlying JDBC Connection.
|
void |
manualReconnect(Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection.
|
void |
notifyObserversStatementPrepared() |
void |
removeObserver(ConnectionObserver connectionObserver)
Remove an observer
|
close, getConnection, getDistinctConnectionProxy, getShareableConnectionProxy, isOpen, isPhysicallyConnected
JdbcServices getJdbcServices()
JdbcResourceRegistry getResourceRegistry()
void addObserver(ConnectionObserver observer)
observer
- The observer.void removeObserver(ConnectionObserver connectionObserver)
connectionObserver
- The observer to remove.ConnectionReleaseMode getConnectionReleaseMode()
void afterStatementExecution()
void afterTransaction()
afterTransaction
in interface LogicalConnection
void disableReleases()
void enableReleases()
disableReleases()
call.Connection manualDisconnect()
void manualReconnect(Connection suppliedConnection)
suppliedConnection
- For user supplied connection strategy the user needs to hand us the connection
with which to reconnect. It is an error to pass a connection in the other strategies.boolean isAutoCommit()
boolean isReadyForSerialization()
void notifyObserversStatementPrepared()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.