接口 JdbcSessionOwner
-
- 所有已知实现类:
AbstractSessionImpl,AbstractSharedSessionContract,SessionDelegatorBaseImpl,SessionImpl,StatelessSessionImpl
public interface JdbcSessionOwnerContract for something that controls a JdbcSessionContext. The name comes from the design idea of a JdbcSession which encapsulates this information, which we will hopefully get back to later. The term "JDBC session" is taken from the SQL specification which calls a connection and its associated transaction context a "session".- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidafterTransactionBegin()A after-begin callback from the coordinator to its owner.voidafterTransactionCompletion(boolean successful, boolean delayed)An after-completion callback to the owner.voidbeforeTransactionCompletion()A before-completion callback to the owner.voidflushBeforeTransactionCompletion()IntegergetJdbcBatchSize()Get the Session-level JDBC batch size.JdbcConnectionAccessgetJdbcConnectionAccess()JdbcSessionContextgetJdbcSessionContext()TransactionCoordinatorgetTransactionCoordinator()Obtain the builder for TransactionCoordinator instancesvoidstartTransactionBoundary()Callback indicating recognition of entering into a transactional context whether that is explicitly via the HibernateTransactionAPI or via registration of Hibernate's JTA Synchronization impl with a JTA Transaction
-
-
-
方法详细资料
-
getJdbcSessionContext
JdbcSessionContext getJdbcSessionContext()
-
getJdbcConnectionAccess
JdbcConnectionAccess getJdbcConnectionAccess()
-
getTransactionCoordinator
TransactionCoordinator getTransactionCoordinator()
Obtain the builder for TransactionCoordinator instances- 返回:
- The TransactionCoordinatorBuilder
-
startTransactionBoundary
void startTransactionBoundary()
Callback indicating recognition of entering into a transactional context whether that is explicitly via the HibernateTransactionAPI or via registration of Hibernate's JTA Synchronization impl with a JTA Transaction
-
afterTransactionBegin
void afterTransactionBegin()
A after-begin callback from the coordinator to its owner.
-
beforeTransactionCompletion
void beforeTransactionCompletion()
A before-completion callback to the owner.
-
afterTransactionCompletion
void afterTransactionCompletion(boolean successful, boolean delayed)An after-completion callback to the owner.- 参数:
successful- Was the transaction successful?delayed- Is this a delayed after transaction completion call (aka after a timeout)?
-
flushBeforeTransactionCompletion
void flushBeforeTransactionCompletion()
-
getJdbcBatchSize
Integer getJdbcBatchSize()
Get the Session-level JDBC batch size.- 返回:
- Session-level JDBC batch size
- 从以下版本开始:
- 5.2
-
-