TransactionDefinition implementation that delegates all calls to a given target
TransactionDefinition instance. Abstract because it is meant to be subclassed,
with subclasses overriding specific methods that are not supposed to simply delegate
to the target instance.
| Modifier and Type | Field and Description |
|---|---|
| private final TransactionDefinition |
| Access | Constructor and Description |
|---|---|
| public | DelegatingTransactionDefinition(TransactionDefinition
the target TransactionAttribute to delegate to targetDefinition)Create a DelegatingTransactionAttribute for the given target attribute. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | getIsolationLevel()
Overrides default org. |
| public String | getName()
Overrides default org. |
| public int | getPropagationBehavior()
Overrides default org. |
| public int | getTimeout()
Overrides default org. |
| public int | |
| public boolean | isReadOnly()
Overrides default org. |
| public String |
| targetDefinition | back to summary |
|---|---|
| private final TransactionDefinition targetDefinition | |
| DelegatingTransactionDefinition | back to summary |
|---|---|
| public DelegatingTransactionDefinition(TransactionDefinition targetDefinition) Create a DelegatingTransactionAttribute for the given target attribute.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getIsolationLevel | back to summary |
|---|---|
| public int getIsolationLevel() Overrides default org. Doc from org. Return the isolation level. Must return one of the Exclusively designed for use with The default is
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides default org. Doc from org. Return the name of this transaction. Can be This will be used as the transaction name to be shown in a transaction monitor, if applicable. In case of Spring's declarative transactions, the exposed name will be
the | |
| getPropagationBehavior | back to summary |
|---|---|
| public int getPropagationBehavior() Overrides default org. Doc from org. Return the propagation behavior. Must return one of the The default is
| |
| getTimeout | back to summary |
|---|---|
| public int getTimeout() Overrides default org. Doc from org. Return the transaction timeout. Must return a number of seconds, or Exclusively designed for use with Note that a transaction manager that does not support timeouts will throw
an exception when given any other timeout than The default is
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides default org. Doc from org. Return whether to optimize as a read-only transaction. The read-only flag applies to any transaction context, whether backed
by an actual resource transaction ( This just serves as a hint for the actual transaction subsystem; it will not necessarily cause failure of write access attempts. A transaction manager which cannot interpret the read-only hint will not throw an exception when asked for a read-only transaction.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |