接口 LogicalConnectionImplementor
-
- 所有超级接口:
LogicalConnection
- 所有已知实现类:
AbstractLogicalConnectionImplementor,LogicalConnectionManagedImpl,LogicalConnectionProvidedImpl
public interface LogicalConnectionImplementor extends LogicalConnection
SPI contract for LogicalConnection- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 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 neededPhysicalConnectionHandlingModegetConnectionHandlingMode()ConnectiongetPhysicalConnection()Exposes access to the "real" Connection.PhysicalJdbcTransactiongetPhysicalJdbcTransaction()LogicalConnectionImplementormakeShareableCopy()已过时。This method is not used by Hibernate.ConnectionmanualDisconnect()Manually disconnect the underlying JDBC Connection.voidmanualReconnect(Connection suppliedConnection)Manually reconnect the underlying JDBC Connection.voidserialize(ObjectOutputStream oos)Serialization hook-
从接口继承的方法 org.hibernate.resource.jdbc.LogicalConnection
close, getResourceRegistry, isOpen, isPhysicallyConnected
-
-
-
-
方法详细资料
-
getPhysicalConnection
Connection getPhysicalConnection()
Exposes access to the "real" Connection.- 返回:
- The connection
-
getConnectionHandlingMode
PhysicalConnectionHandlingMode getConnectionHandlingMode()
-
afterStatement
void afterStatement()
Notification indicating a JDBC statement has been executed to triggerConnectionReleaseMode.AFTER_STATEMENTreleasing if needed
-
afterTransaction
void afterTransaction()
Notification indicating a transaction has completed to triggerConnectionReleaseMode.AFTER_TRANSACTIONreleasing if needed
-
manualDisconnect
Connection manualDisconnect()
Manually disconnect the underlying JDBC Connection. The assumption here is that the manager will be reconnected at a later point in time.- 返回:
- The connection maintained here at time of disconnect.
nullif there was no connection cached internally.
-
manualReconnect
void manualReconnect(Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection. Should be called at some point after manualDisconnect().- 参数:
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.
-
makeShareableCopy
@Deprecated LogicalConnectionImplementor makeShareableCopy()
已过时。This method is not used by Hibernate.Creates a shareable copy of itself for use in "shared sessions"- 返回:
- The shareable copy.
-
getPhysicalJdbcTransaction
PhysicalJdbcTransaction getPhysicalJdbcTransaction()
-
serialize
void serialize(ObjectOutputStream oos) throws IOException
Serialization hook- 参数:
oos- The stream to write out state to- 抛出:
IOException- Problem accessing stream
-
-