类 AbstractLogicalConnectionImplementor
- java.lang.Object
-
- org.hibernate.resource.jdbc.internal.AbstractLogicalConnectionImplementor
-
- 所有已实现的接口:
LogicalConnection,LogicalConnectionImplementor,PhysicalJdbcTransaction,JdbcResourceTransaction
public abstract class AbstractLogicalConnectionImplementor extends Object implements LogicalConnectionImplementor, PhysicalJdbcTransaction
- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ResourceRegistryresourceRegistry
-
构造器概要
构造器 构造器 说明 AbstractLogicalConnectionImplementor()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidafterCompletion()voidafterStatement()Notification indicating a JDBC statement has been executed to triggerConnectionReleaseMode.AFTER_STATEMENTreleasing if neededvoidafterTransaction()Notification indicating a transaction has completed to triggerConnectionReleaseMode.AFTER_TRANSACTIONreleasing if neededvoidbegin()Begin the resource transactionvoidcommit()Commit the resource transactionprotected static booleandetermineInitialAutoCommitMode(Connection providedConnection)protected booleandoConnectionsFromProviderHaveAutoCommitDisabled()protected voiderrorIfClosed()protected abstract ConnectiongetConnectionForTransactionManagement()PhysicalJdbcTransactiongetPhysicalJdbcTransaction()ResourceRegistrygetResourceRegistry()Provides access to the registry of JDBC resources associated with this LogicalConnection.TransactionStatusgetStatus()protected voidresetConnection(boolean initiallyAutoCommit)voidrollback()Rollback the resource transaction-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.resource.jdbc.LogicalConnection
close, isOpen, isPhysicallyConnected
-
从接口继承的方法 org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor
getConnectionHandlingMode, getPhysicalConnection, makeShareableCopy, manualDisconnect, manualReconnect, serialize
-
-
-
-
字段详细资料
-
resourceRegistry
protected ResourceRegistry resourceRegistry
-
-
方法详细资料
-
getPhysicalJdbcTransaction
public PhysicalJdbcTransaction getPhysicalJdbcTransaction()
-
errorIfClosed
protected void errorIfClosed()
-
getResourceRegistry
public ResourceRegistry getResourceRegistry()
从接口复制的说明:LogicalConnectionProvides access to the registry of JDBC resources associated with this LogicalConnection.- 指定者:
getResourceRegistry在接口中LogicalConnection- 返回:
- The JDBC resource registry.
-
afterStatement
public void afterStatement()
从接口复制的说明:LogicalConnectionImplementorNotification indicating a JDBC statement has been executed to triggerConnectionReleaseMode.AFTER_STATEMENTreleasing if needed- 指定者:
afterStatement在接口中LogicalConnectionImplementor
-
afterTransaction
public void afterTransaction()
从接口复制的说明:LogicalConnectionImplementorNotification indicating a transaction has completed to triggerConnectionReleaseMode.AFTER_TRANSACTIONreleasing if needed- 指定者:
afterTransaction在接口中LogicalConnectionImplementor
-
getConnectionForTransactionManagement
protected abstract Connection getConnectionForTransactionManagement()
-
begin
public void begin()
从接口复制的说明:JdbcResourceTransactionBegin the resource transaction- 指定者:
begin在接口中JdbcResourceTransaction
-
commit
public void commit()
从接口复制的说明:JdbcResourceTransactionCommit the resource transaction- 指定者:
commit在接口中JdbcResourceTransaction
-
afterCompletion
protected void afterCompletion()
-
resetConnection
protected void resetConnection(boolean initiallyAutoCommit)
-
rollback
public void rollback()
从接口复制的说明:JdbcResourceTransactionRollback the resource transaction- 指定者:
rollback在接口中JdbcResourceTransaction
-
determineInitialAutoCommitMode
protected static boolean determineInitialAutoCommitMode(Connection providedConnection)
-
getStatus
public TransactionStatus getStatus()
- 指定者:
getStatus在接口中JdbcResourceTransaction
-
doConnectionsFromProviderHaveAutoCommitDisabled
protected boolean doConnectionsFromProviderHaveAutoCommitDisabled()
-
-