private static class TestContextTransactionUtils.TestContextTransactionAttribute extends DelegatingTransactionAttribute
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT| Constructor and Description |
|---|
TestContextTransactionAttribute(TransactionAttribute targetAttribute,
TestContext testContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Return the name of this transaction.
|
getQualifier, rollbackOnequals, getIsolationLevel, getPropagationBehavior, getTimeout, hashCode, isReadOnly, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIsolationLevel, getPropagationBehavior, getTimeout, isReadOnlypublic TestContextTransactionAttribute(TransactionAttribute targetAttribute, TestContext testContext)
public java.lang.String getName()
TransactionDefinitionnull.
This will be used as the transaction name to be shown in a transaction monitor, if applicable (for example, WebLogic's).
In case of Spring's declarative transactions, the exposed name will be
the fully-qualified class name + "." + method name (by default).
getName in interface TransactionDefinitiongetName in class DelegatingTransactionDefinitionTransactionAspectSupport,
TransactionSynchronizationManager.getCurrentTransactionName()