public class

SimpleTransactionStatus

extends AbstractTransactionStatus
java.lang.Object
   ↳ org.springframework.transaction.support.AbstractTransactionStatus
     ↳ org.springframework.transaction.support.SimpleTransactionStatus

Class Overview

A simple TransactionStatus implementation.

Derives from AbstractTransactionStatus and adds an explicit "newTransaction" flag.

This class is not used by any of Spring's pre-built PlatformTransactionManager implementations. It is mainly provided as a start for custom transaction manager implementations and as a static mock for testing transactional code (either as part of a mock PlatformTransactionManager or as argument passed into a TransactionCallback to be tested).

Summary

Public Constructors
SimpleTransactionStatus()
Create a new instance of the SimpleTransactionStatus class, indicating a new transaction.
SimpleTransactionStatus(boolean newTransaction)
Create a new instance of the SimpleTransactionStatus class.
Public Methods
boolean isNewTransaction()
[Expand]
Inherited Methods
From class org.springframework.transaction.support.AbstractTransactionStatus
From class java.lang.Object
From interface org.springframework.transaction.SavepointManager
From interface org.springframework.transaction.TransactionStatus

Public Constructors

public SimpleTransactionStatus ()

Create a new instance of the SimpleTransactionStatus class, indicating a new transaction.

public SimpleTransactionStatus (boolean newTransaction)

Create a new instance of the SimpleTransactionStatus class.

Parameters
newTransaction whether to indicate a new transaction

Public Methods

public boolean isNewTransaction ()