public abstract class AbstractLogicalConnectionImplementor extends Object implements LogicalConnectionImplementor, PhysicalJdbcTransaction
Modifier and Type | Field and Description |
---|---|
protected ResourceRegistry |
resourceRegistry |
Constructor and Description |
---|
AbstractLogicalConnectionImplementor() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterCompletion() |
void |
afterStatement()
Notification indicating a JDBC statement has been executed to trigger
ConnectionReleaseMode.AFTER_STATEMENT releasing if needed |
void |
afterTransaction()
Notification indicating a transaction has completed to trigger
ConnectionReleaseMode.AFTER_TRANSACTION releasing if needed |
void |
begin()
Begin the resource transaction
|
void |
commit()
Commit the resource transaction
|
protected static boolean |
determineInitialAutoCommitMode(Connection providedConnection) |
protected boolean |
doConnectionsFromProviderHaveAutoCommitDisabled() |
protected void |
errorIfClosed() |
protected abstract Connection |
getConnectionForTransactionManagement() |
PhysicalJdbcTransaction |
getPhysicalJdbcTransaction() |
ResourceRegistry |
getResourceRegistry()
Provides access to the registry of JDBC resources associated with this LogicalConnection.
|
TransactionStatus |
getStatus() |
protected void |
resetConnection(boolean initiallyAutoCommit) |
void |
rollback()
Rollback the resource transaction
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionHandlingMode, getPhysicalConnection, makeShareableCopy, manualDisconnect, manualReconnect, serialize
close, isOpen, isPhysicallyConnected
protected ResourceRegistry resourceRegistry
public AbstractLogicalConnectionImplementor()
public PhysicalJdbcTransaction getPhysicalJdbcTransaction()
getPhysicalJdbcTransaction
in interface LogicalConnectionImplementor
protected void errorIfClosed()
public ResourceRegistry getResourceRegistry()
LogicalConnection
getResourceRegistry
in interface LogicalConnection
public void afterStatement()
LogicalConnectionImplementor
ConnectionReleaseMode.AFTER_STATEMENT
releasing if neededafterStatement
in interface LogicalConnectionImplementor
public void afterTransaction()
LogicalConnectionImplementor
ConnectionReleaseMode.AFTER_TRANSACTION
releasing if neededafterTransaction
in interface LogicalConnectionImplementor
protected abstract Connection getConnectionForTransactionManagement()
public void begin()
JdbcResourceTransaction
begin
in interface JdbcResourceTransaction
public void commit()
JdbcResourceTransaction
commit
in interface JdbcResourceTransaction
protected void afterCompletion()
protected void resetConnection(boolean initiallyAutoCommit)
public void rollback()
JdbcResourceTransaction
rollback
in interface JdbcResourceTransaction
protected static boolean determineInitialAutoCommitMode(Connection providedConnection)
public TransactionStatus getStatus()
getStatus
in interface JdbcResourceTransaction
protected boolean doConnectionsFromProviderHaveAutoCommitDisabled()
Copyright © 2019 JBoss by Red Hat. All rights reserved.