Class FlushSynchronization
- java.lang.Object
-
- io.micronaut.transaction.support.TransactionSynchronizationAdapter
-
- io.micronaut.transaction.hibernate5.FlushSynchronization
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,TransactionSynchronization
,java.io.Flushable
@Internal public class FlushSynchronization extends TransactionSynchronizationAdapter
Simple synchronization adapter that propagates aflush()
call to the underlying Hibernate Session. Used in combination with JTA.- Since:
- 4.2
- Author:
- Juergen Hoeller, graemerocher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.transaction.support.TransactionSynchronization
TransactionSynchronization.Status
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
void
flush()
Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.int
hashCode()
-
Methods inherited from class io.micronaut.transaction.support.TransactionSynchronizationAdapter
afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
-
-
-
-
Method Detail
-
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 interfacejava.io.Flushable
- Specified by:
flush
in interfaceTransactionSynchronization
- Overrides:
flush
in classTransactionSynchronizationAdapter
- See Also:
TransactionStatus.flush()
-
equals
public boolean equals(@Nullable java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-