public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !throwing) { try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) ((EntityManagerImpl) em).setRollbackOnly(re); } finally { // handle re-entrancy throwing = false; } } return ex; } };
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !(ex instanceof LockTimeoutException) && !(ex instanceof QueryTimeoutException) && !throwing) { try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) ((EntityManagerImpl) em).setRollbackOnly(ex); } finally { // handle re-entrancy throwing = false; } } return ex; } };
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !(ex instanceof LockTimeoutException) && !(ex instanceof QueryTimeoutException) && !throwing) { try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) ((EntityManagerImpl) em).setRollbackOnly(ex); } finally { // handle re-entrancy throwing = false; } } return ex; } };
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !(ex instanceof LockTimeoutException) && !(ex instanceof QueryTimeoutException) && !throwing) { try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) ((EntityManagerImpl) em).setRollbackOnly(ex); } finally { // handle re-entrancy throwing = false; } } return ex; } };
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !(ex instanceof LockTimeoutException) && !(ex instanceof QueryTimeoutException) && !throwing) { try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) ((EntityManagerImpl) em).setRollbackOnly(ex); } finally { // handle re-entrancy throwing = false; } } return ex; } };