Class SpringFlushSynchronization
java.lang.Object
org.springframework.orm.hibernate5.SpringFlushSynchronization
- All Implemented Interfaces:
- Flushable,- Ordered,- TransactionSynchronization
Simple synchronization adapter that propagates a 
flush() call
 to the underlying Hibernate Session. Used in combination with JTA.- Since:
- 4.2
- Author:
- Juergen Hoeller
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.transaction.support.TransactionSynchronizationSTATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.transaction.support.TransactionSynchronizationafterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
- 
Constructor Details- 
SpringFlushSynchronization
 
- 
- 
Method Details- 
flushpublic void flush()Description copied from interface:TransactionSynchronizationFlush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin interface- TransactionSynchronization
- See Also:
 
- 
equals
- 
hashCodepublic int hashCode()
 
-