Class SpringFlushSynchronization
- java.lang.Object
- org.springframework.transaction.support.TransactionSynchronizationAdapter
- org.springframework.orm.hibernate4.SpringFlushSynchronization
- All Implemented Interfaces:
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.- Since:
- 3.1
- Author:
- Juergen Hoeller
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
Constructor Summary
Constructors Constructor Description SpringFlushSynchronization(Session session)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidflush()Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.inthashCode()Methods inherited from class org.springframework.transaction.support.TransactionSynchronizationAdapter
afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
Constructor Detail
SpringFlushSynchronization
public SpringFlushSynchronization(Session session)
Method Detail
flush
public void flush()
Description copied from interface:TransactionSynchronizationFlush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceTransactionSynchronization- Overrides:
flushin classTransactionSynchronizationAdapter- See Also:
TransactionStatus.flush()