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 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
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.transaction.support.TransactionSynchronization
afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
-
Constructor Details
-
SpringFlushSynchronization
-
-
Method Details
-
flush
public void flush()Description copied from interface:TransactionSynchronization
Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in interfaceTransactionSynchronization
- See Also:
-
equals
-
hashCode
public int hashCode()
-