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

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

Introduction

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

The text is from its open source code.

Field

intPROPAGATION_REQUIRED
Support a current transaction; create a new one if none exists.
intPROPAGATION_SUPPORTS
Support a current transaction; execute non-transactionally if none exists.
intPROPAGATION_MANDATORY
Support a current transaction; throw an exception if no current transaction exists.
intPROPAGATION_REQUIRES_NEW
Create a new transaction, suspending the current transaction if one exists.
intPROPAGATION_NOT_SUPPORTED
Do not support a current transaction; rather always execute non-transactionally.
intPROPAGATION_NEVER
Do not support a current transaction; throw an exception if a current transaction exists.
intPROPAGATION_NESTED
Execute within a nested transaction if a current transaction exists, behave like #PROPAGATION_REQUIRED otherwise.
intISOLATION_DEFAULT
Use the default isolation level of the underlying datastore.
intISOLATION_READ_UNCOMMITTED
Indicates that dirty reads, non-repeatable reads and phantom reads can occur.
intISOLATION_READ_COMMITTED
Indicates that dirty reads are prevented; non-repeatable reads and phantom reads can occur.
intISOLATION_REPEATABLE_READ
Indicates that dirty reads and non-repeatable reads are prevented; phantom reads can occur.
intISOLATION_SERIALIZABLE
Indicates that dirty reads, non-repeatable reads and phantom reads are prevented.
intTIMEOUT_DEFAULT
Use the default timeout of the underlying transaction system, or none if timeouts are not supported.

Method

intgetIsolationLevel()
Return the isolation level.
StringgetName()
Return the name of this transaction.
intgetPropagationBehavior()
Return the propagation behavior.
intgetTimeout()
Return the transaction timeout.
booleanisReadOnly()
Return whether to optimize as a read-only transaction.
TransactionDefinitionwithDefaults()
Return an unmodifiable TransactionDefinition with defaults.