@Test public void raw() { for (int i = 0; i < 2; i++) { final Query query = notWrapped.createNativeQuery("select 1 from INFORMATION_SCHEMA.SYSTEM_USERS"); assertTrue(query instanceof QueryImpl); query.getResultList(); } }
public List getResultList() { final EntityManager em = getEntityManager(); try { return query.getResultList(); } finally { jtaEntityManager.closeIfNoTx(em); } }
JtaQuery implements Query { public List getResultList() { final EntityManager em = getEntityManager(); try { return query.getResultList(); } finally { jtaEntityManager.closeIfNoTx(em); } } }
JtaQuery implements Query { public List getResultList() { final EntityManager em = getEntityManager(); try { return query.getResultList(); } finally { jtaEntityManager.closeIfNoTx(em); } } JtaQuery(final EntityManager entityManager, final JtaEntityManager jtaEntityManager, final Method method, final Object... args); }
JtaQuery implements Query { public List getResultList() { final EntityManager em = getEntityManager(); try { return query.getResultList(); } finally { jtaEntityManager.closeIfNoTx(em); } } JtaQuery(final EntityManager entityManager, final JtaEntityManager jtaEntityManager, final Method method, final Object... args); List getResultList(); Object getSingleResult(); int executeUpdate(); Query setMaxResults(final int i); Query setFirstResult(final int i); Query setFlushMode(final FlushModeType flushModeType); Query setHint(final String s, final Object o); Query setParameter(final String s, final Object o); Query setParameter(final String s, final Date date, final TemporalType temporalType); Query setParameter(final String s, final Calendar calendar, final TemporalType temporalType); Query setParameter(final int i, final Object o); Query setParameter(final int i, final Date date, final TemporalType temporalType); Query setParameter(final int i, final Calendar calendar, final TemporalType temporalType); int getFirstResult(); FlushModeType getFlushMode(); Map<String, Object> getHints(); LockModeType getLockMode(); int getMaxResults(); Parameter<?> getParameter(final String name); Parameter<?> getParameter(final int position); Parameter<T> getParameter(final String name, final Class<T> type); Parameter<T> getParameter(final int position, final Class<T> type); T getParameterValue(final Parameter<T> param); Object getParameterValue(final String name); Object getParameterValue(final int position); Set<Parameter<?>> getParameters(); boolean isBound(final Parameter<?> param); Query setLockMode(final LockModeType lockMode); Query setParameter(final Parameter<T> param, final T value); Query setParameter(final Parameter<Calendar> param, final Calendar value, final TemporalType temporalType); Query setParameter(final Parameter<Date> param, final Date value, final TemporalType temporalType); T unwrap(final Class<T> cls); }
JtaQuery implements Query { public List getResultList() { final EntityManager em = getEntityManager(); try { return query.getResultList(); } finally { jtaEntityManager.closeIfNoTx(em); } } JtaQuery(final EntityManager entityManager, final JtaEntityManager jtaEntityManager, final Method method, final Object... args); List getResultList(); Object getSingleResult(); int executeUpdate(); Query setMaxResults(final int i); Query setFirstResult(final int i); Query setFlushMode(final FlushModeType flushModeType); Query setHint(final String s, final Object o); Query setParameter(final String s, final Object o); Query setParameter(final String s, final Date date, final TemporalType temporalType); Query setParameter(final String s, final Calendar calendar, final TemporalType temporalType); Query setParameter(final int i, final Object o); Query setParameter(final int i, final Date date, final TemporalType temporalType); Query setParameter(final int i, final Calendar calendar, final TemporalType temporalType); int getFirstResult(); FlushModeType getFlushMode(); Map<String, Object> getHints(); LockModeType getLockMode(); int getMaxResults(); Parameter<?> getParameter(final String name); Parameter<?> getParameter(final int position); Parameter<T> getParameter(final String name, final Class<T> type); Parameter<T> getParameter(final int position, final Class<T> type); T getParameterValue(final Parameter<T> param); Object getParameterValue(final String name); Object getParameterValue(final int position); Set<Parameter<?>> getParameters(); boolean isBound(final Parameter<?> param); Query setLockMode(final LockModeType lockMode); Query setParameter(final Parameter<T> param, final T value); Query setParameter(final Parameter<Calendar> param, final Calendar value, final TemporalType temporalType); Query setParameter(final Parameter<Date> param, final Date value, final TemporalType temporalType); T unwrap(final Class<T> cls);  }