public interface ResourceTransactionDefinition extends TransactionDefinition
TransactionDefinition
, indicating a resource transaction
and in particular whether the transactional resource is ready for local optimizations.ResourceTransactionManager
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
Modifier and Type | Method and Description |
---|---|
boolean |
isLocalResource()
Determine whether the transactional resource is ready for local optimizations.
|
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly, withDefaults
boolean isLocalResource()
true
if the resource is known to be entirely transaction-local,
not affecting any operations outside the scope of the current transactionTransactionDefinition.isReadOnly()