@Override public FlushModeType getFlushMode() { return em.getFlushMode(); }
@Override public FlushModeType getFlushMode() { return em().getFlushMode(); }
@Override public FlushModeType getFlushMode() { return manager.getFlushMode(); } }
public FlushModeType getFlushMode () { return m_aEntityMgr.getFlushMode (); }
@Override public FlushModeType getFlushMode() { return delegate.getFlushMode(); }
/** {@inheritDoc} */ @Override public FlushModeType getFlushMode() { return entityManager.getFlushMode(); }
@Override public FlushModeType getFlushMode() { return entityManager().getFlushMode(); }
public void lookupPersistenceContext() throws TestFailureException { try { Assert.assertNotNull("The EntityManager is null", emField); try { // call a do nothing method to assure entity manager actually exists emField.getFlushMode(); } catch (Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (AssertionFailedError afe) { throw new TestFailureException(afe); } }
public FlushModeType getFlushMode() { initEntityManager(); return em.getFlushMode(); }
public String getFlushMode() { return entityManager.getFlushMode().toString(); } }
public void lookupPersistenceContext() throws TestFailureException{ try{ try{ EntityManager em = (EntityManager) mdbContext.lookup("persistence/TestContext"); Assert.assertNotNull("The EntityManager is null", em); // call a do nothing method to assure entity manager actually exists em.getFlushMode(); } catch (Exception e){ Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage()); } } catch (AssertionFailedError afe){ throw new TestFailureException(afe); } }
public FlushModeType getFlushMode() { long start = 0; if (isTraceEnabled) start = System.currentTimeMillis(); try { return getEntityManager().getFlushMode(); } finally { if (isTraceEnabled) { long elapsed = System.currentTimeMillis() - start; ROOT_LOGGER.tracef("getFlushMode took %dms", elapsed); } } }
public FlushModeType getFlushMode() { final boolean mustClose = !isTxActive(); final EntityManager em = getEntityManager(); try { return em.getFlushMode(); } finally { if (mustClose) { em.close(); } } }
public void lookupPersistenceContext() throws TestFailureException { try { Assert.assertNotNull("The EntityManager is null", em); try { // call a do nothing method to assure entity manager actually exists em.getFlushMode(); } catch (final Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (final AssertionFailedError afe) { throw new TestFailureException(afe); } }
public void lookupPersistenceContext() throws TestFailureException { try { Assert.assertNotNull("The EntityManager is null", emField); try { // call a do nothing method to assure entity manager actually exists emField.getFlushMode(); } catch (final Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (final AssertionFailedError afe) { throw new TestFailureException(afe); } }
public void lookupPersistenceContext() throws TestFailureException { try { Assert.assertNotNull("The EntityManager is null", emField); try { // call a do nothing method to assure entity manager actually exists emField.getFlushMode(); } catch (final Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (final AssertionFailedError afe) { throw new TestFailureException(afe); } }
public void lookupPersistenceContext() throws TestFailureException { try { Assert.assertNotNull("The EntityManager is null", em); try { // call a do nothing method to assure entity manager actually exists em.getFlushMode(); } catch (final Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (final AssertionFailedError afe) { throw new TestFailureException(afe); } }
@Override public DateDimension getDateDimensionById(long key) { final EntityManager entityManager = this.getEntityManager(); final FlushModeType flushMode = entityManager.getFlushMode(); try { entityManager.setFlushMode(FlushModeType.COMMIT); return entityManager.find(DateDimensionImpl.class, key); } finally { entityManager.setFlushMode(flushMode); } }
public void lookupPersistenceContext() throws TestFailureException { try { try { final EntityManager em = (EntityManager) ejbContext.lookup("persistence/TestContext"); Assert.assertNotNull("The EntityManager is null", em); // call a do nothing method to assure entity manager actually exists em.getFlushMode(); } catch (final Exception e) { Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } } catch (final AssertionFailedError afe) { throw new TestFailureException(afe); } }
public FlushModeType getFlushMode() { final EntityManager entityManager = getEntityManager(); try { final Timer timer = Op.getFlushMode.start(this.timer, this); try { return entityManager.getFlushMode(); } finally { timer.stop(); } } finally { closeIfNoTx(entityManager); } }