接口 ResourceTransactionDefinition
- 所有超级接口:
TransactionDefinition
public interface ResourceTransactionDefinition extends TransactionDefinition
Extended variant ofTransactionDefinition
, indicating a resource transaction and in particular whether the transactional resource is ready for local optimizations.- 从以下版本开始:
- 5.1
- 作者:
- Juergen Hoeller
- 另请参阅:
ResourceTransactionManager
字段概要
从接口继承的字段 org.springframework.transaction.TransactionDefinition
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
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 boolean
isLocalResource()
Determine whether the transactional resource is ready for local optimizations.从接口继承的方法 org.springframework.transaction.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
方法详细资料
isLocalResource
boolean isLocalResource()
Determine whether the transactional resource is ready for local optimizations.- 返回:
true
if the resource is known to be entirely transaction-local, not affecting any operations outside of the scope of the current transaction- 另请参阅:
TransactionDefinition.isReadOnly()