Java org.springframework.transaction.support TransactionTemplate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.transaction.support TransactionTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.transaction.support TransactionTemplate.

The text is from its open source code.

Subclass

org.springframework.transaction.support.TransactionTemplate has subclasses.
Click this link to see all its subclasses.

Constructor

TransactionTemplate(PlatformTransactionManager transactionManager)
Construct a new TransactionTemplate using the given transaction manager.
TransactionTemplate()
Construct a new TransactionTemplate for bean usage.
TransactionTemplate(PlatformTransactionManager transactionManager, TransactionDefinition transactionDefinition)
Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.

Method

voidafterPropertiesSet()
Texecute(TransactionCallback action)
intgetIsolationLevel()
intgetPropagationBehavior()
PlatformTransactionManagergetTransactionManager()
Return the transaction management strategy to be used.
voidsetIsolationLevel(int isolationLevel)
Set the isolation level.
voidsetName(String name)
Set the name of this transaction.
voidsetPropagationBehavior(int propagationBehavior)
Set the propagation behavior.
voidsetPropagationBehaviorName(String constantName)
Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g.
voidsetReadOnly(boolean readOnly)
Set whether to optimize as read-only transaction.
voidsetTimeout(int timeout)
Set the timeout to apply, as number of seconds.
voidsetTransactionManager(@Nullable PlatformTransactionManager transactionManager)
Set the transaction management strategy to be used.