本文整理了Java中org.springframework.transaction.annotation.Transactional.value()
方法的一些代码示例,展示了Transactional.value()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transactional.value()
方法的具体详情如下:
包路径:org.springframework.transaction.annotation.Transactional
类名称:Transactional
方法名:value
暂无
代码示例来源:origin: com.haulmont.cuba/cuba-core
private Object aroundInvoke(ProceedingJoinPoint ctx) throws Throwable {
Method method = ((MethodSignature) ctx.getSignature()).getMethod();
Method specificMethod = ClassUtils.getMostSpecificMethod(method, ctx.getTarget().getClass());
Transactional transactional = specificMethod.getAnnotation(Transactional.class);
if (transactional == null)
throw new IllegalStateException("Cannot determine data store of the current transaction");
String storeName = Strings.isNullOrEmpty(transactional.value()) ? Stores.MAIN : transactional.value();
log.trace("Entering transactional method, store='{}'", storeName);
((PersistenceImpl) persistence).registerSynchronizations(storeName);
return ctx.proceed();
}
}
代码示例来源:origin: jeffreyning/nh-micro
String beanId=trans.value();
代码示例来源:origin: jeffreyning/nh-micro
String beanId=trans.value();
内容来源于网络,如有侵权,请联系作者删除!