类 SpringFlushSynchronization
- java.lang.Object
- org.springframework.transaction.support.TransactionSynchronizationAdapter
- org.springframework.orm.hibernate5.SpringFlushSynchronization
- 所有已实现的接口:
Flushable,Ordered,TransactionSynchronization
public class SpringFlushSynchronization extends TransactionSynchronizationAdapter
Simple synchronization adapter that propagates aflush()call to the underlying Hibernate Session. Used in combination with JTA.- 从以下版本开始:
- 4.2
- 作者:
- Juergen Hoeller
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
从接口继承的字段 org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
构造器概要
构造器 构造器 说明 SpringFlushSynchronization(Session session)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object other)voidflush()Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.inthashCode()从类继承的方法 org.springframework.transaction.support.TransactionSynchronizationAdapter
afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
构造器详细资料
SpringFlushSynchronization
public SpringFlushSynchronization(Session session)
方法详细资料
flush
public void flush()
从接口复制的说明:TransactionSynchronizationFlush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.- 指定者:
flush在接口中Flushable- 指定者:
flush在接口中TransactionSynchronization- 覆盖:
flush在类中TransactionSynchronizationAdapter- 另请参阅:
TransactionStatus.flush()