Class SpannerTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
com.google.cloud.spring.data.spanner.core.SpannerTransactionManager
- All Implemented Interfaces:
Serializable
,org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.TransactionManager
public class SpannerTransactionManager
extends org.springframework.transaction.support.AbstractPlatformTransactionManager
Spanner transaction manager.
- Since:
- 1.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A transaction object that holds the transaction context.Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.transaction.support.AbstractPlatformTransactionManager.SuspendedResourcesHolder
-
Field Summary
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBegin
(Object transactionObject, org.springframework.transaction.TransactionDefinition transactionDefinition) protected void
doCleanupAfterCompletion
(Object transaction) protected void
doCommit
(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) protected Object
protected void
doRollback
(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) protected boolean
isExistingTransaction
(Object transaction) Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, doResume, doSetRollbackOnly, doSuspend, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
-
Constructor Details
-
SpannerTransactionManager
-
-
Method Details
-
doGetTransaction
- Specified by:
doGetTransaction
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doBegin
protected void doBegin(Object transactionObject, org.springframework.transaction.TransactionDefinition transactionDefinition) throws org.springframework.transaction.TransactionException - Specified by:
doBegin
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doCommit
protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) throws org.springframework.transaction.TransactionException - Specified by:
doCommit
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doRollback
protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) throws org.springframework.transaction.TransactionException - Specified by:
doRollback
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
isExistingTransaction
- Overrides:
isExistingTransaction
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doCleanupAfterCompletion
- Overrides:
doCleanupAfterCompletion
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-