本文整理了Java中com.google.inject.persist.Transactional.ignore()
方法的一些代码示例,展示了Transactional.ignore()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transactional.ignore()
方法的具体详情如下:
包路径:com.google.inject.persist.Transactional
类名称:Transactional
方法名:ignore
暂无
代码示例来源:origin: com.google.inject.extensions/guice-persist
for (Class<? extends Exception> exceptOn : transactional.ignore()) {
代码示例来源:origin: com.jwebmp.jre10/guiced-persistence
for (Class<? extends Exception> exceptOn : transactional.ignore())
代码示例来源:origin: com.jwebmp.inject.extensions/guice-persist
for (Class<? extends Exception> exceptOn : transactional.ignore()) {
代码示例来源:origin: zsoltherpai/fluent-jdbc
private boolean rollbackNecessary(Exception cause, Transactional transactional) {
return has(transactional.rollbackOn(), cause) && !has(transactional.ignore(), cause);
}
代码示例来源:origin: xvik/guice-persist-orient
/**
* Build transaction config for type.
*
* @param type type to analyze
* @param method method to analyze
* @param useDefaults true to build default config if annotation not found
* @return tx config for found annotation, null if useDefaults false and default config otherwise
*/
public static TxConfig buildConfig(final Class<?> type, final Method method, final boolean useDefaults) {
final Transactional transactional = findAnnotation(type, method, Transactional.class, useDefaults);
TxConfig res = null;
if (transactional != null) {
final TxType txType = findAnnotation(type, method, TxType.class, true);
res = new TxConfig(wrapExceptions(transactional.rollbackOn()),
wrapExceptions(transactional.ignore()), txType.value());
}
return res;
}
内容来源于网络,如有侵权,请联系作者删除!