Class ChangeSetBackedTransactionSynchronization
java.lang.Object
org.springframework.data.crossstore.ChangeSetBackedTransactionSynchronization
- All Implemented Interfaces:
Flushable
,Ordered
,TransactionSynchronization
public class ChangeSetBackedTransactionSynchronization
extends Object
implements TransactionSynchronization
- Author:
- Johannes Englmeier
-
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
ConstructorDescriptionChangeSetBackedTransactionSynchronization
(ChangeSetPersister<Object> changeSetPersister, ChangeSetBacked entity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
afterCompletion
(int status) void
beforeCommit
(boolean readOnly) void
void
flush()
void
resume()
void
suspend()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.transaction.support.TransactionSynchronization
getOrder
-
Constructor Details
-
ChangeSetBackedTransactionSynchronization
public ChangeSetBackedTransactionSynchronization(ChangeSetPersister<Object> changeSetPersister, ChangeSetBacked entity)
-
-
Method Details
-
afterCommit
public void afterCommit()- Specified by:
afterCommit
in interfaceTransactionSynchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfaceTransactionSynchronization
-
beforeCommit
public void beforeCommit(boolean readOnly) - Specified by:
beforeCommit
in interfaceTransactionSynchronization
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletion
in interfaceTransactionSynchronization
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in interfaceTransactionSynchronization
-
resume
public void resume()- Specified by:
resume
in interfaceTransactionSynchronization
-
suspend
public void suspend()- Specified by:
suspend
in interfaceTransactionSynchronization
-