List of usage examples for org.hibernate.jdbc WorkExecutorVisitable WorkExecutorVisitable
WorkExecutorVisitable
From source file:org.infinispan.hibernate.cache.commons.util.InvocationAfterCompletion.java
License:LGPL
protected void invokeIsolated(final boolean success) { try {/*w w w.ja va 2s . co m*/ // TODO: isolation without obtaining Connection -> needs HHH-9993 tc.createIsolationDelegate().delegateWork(new WorkExecutorVisitable<Void>() { @Override public Void accept(WorkExecutor<Void> executor, Connection connection) throws SQLException { invoke(success); return null; } }, requiresTransaction); } catch (HibernateException e) { // silently fail any exceptions if (log.isTraceEnabled()) { log.trace("Exception during query cache update", e); } } }