Example usage for Java org.springframework.transaction TransactionDefinition fields, constructors, methods, implement or subclass
The text is from its open source code.
int | PROPAGATION_REQUIRED Support a current transaction; create a new one if none exists. |
int | PROPAGATION_SUPPORTS Support a current transaction; execute non-transactionally if none exists. |
int | PROPAGATION_MANDATORY Support a current transaction; throw an exception if no current transaction exists. |
int | PROPAGATION_REQUIRES_NEW Create a new transaction, suspending the current transaction if one exists. |
int | PROPAGATION_NOT_SUPPORTED Do not support a current transaction; rather always execute non-transactionally. |
int | PROPAGATION_NEVER Do not support a current transaction; throw an exception if a current transaction exists. |
int | PROPAGATION_NESTED Execute within a nested transaction if a current transaction exists, behave like #PROPAGATION_REQUIRED otherwise. |
int | ISOLATION_DEFAULT Use the default isolation level of the underlying datastore. |
int | ISOLATION_READ_UNCOMMITTED Indicates that dirty reads, non-repeatable reads and phantom reads can occur. |
int | ISOLATION_READ_COMMITTED Indicates that dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
int | ISOLATION_REPEATABLE_READ Indicates that dirty reads and non-repeatable reads are prevented; phantom reads can occur. |
int | ISOLATION_SERIALIZABLE Indicates that dirty reads, non-repeatable reads and phantom reads are prevented. |
int | TIMEOUT_DEFAULT Use the default timeout of the underlying transaction system, or none if timeouts are not supported. |
int | getIsolationLevel() Return the isolation level. |
String | getName() Return the name of this transaction. |
int | getPropagationBehavior() Return the propagation behavior. |
int | getTimeout() Return the transaction timeout. |
boolean | isReadOnly() Return whether to optimize as a read-only transaction. |
TransactionDefinition | withDefaults() Return an unmodifiable TransactionDefinition with defaults. |