| java.lang.Object org.apache.openejb.persistence.JtaQuery
JtaQuery | public class JtaQuery implements Query(Code) | | The JtaQuery is a wrapper around a query and and entity manager that automatically closes the entity managers
when the query is finished. This implementation is only for non-transaction queryies
|
Constructor Summary | |
public | JtaQuery(EntityManager entityManager, Query query) |
Method Summary | |
public int | executeUpdate() | public List | getResultList() | public Object | getSingleResult() | public Query | setFirstResult(int i) | public Query | setFlushMode(FlushModeType flushModeType) | public Query | setHint(String s, Object o) | public Query | setMaxResults(int i) | public Query | setParameter(String s, Object o) | public Query | setParameter(String s, Date date, TemporalType temporalType) | public Query | setParameter(String s, Calendar calendar, TemporalType temporalType) | public Query | setParameter(int i, Object o) | public Query | setParameter(int i, Date date, TemporalType temporalType) | public Query | setParameter(int i, Calendar calendar, TemporalType temporalType) |
JtaQuery | public JtaQuery(EntityManager entityManager, Query query)(Code) | | |
executeUpdate | public int executeUpdate()(Code) | | |
setFirstResult | public Query setFirstResult(int i)(Code) | | |
setFlushMode | public Query setFlushMode(FlushModeType flushModeType)(Code) | | |
setMaxResults | public Query setMaxResults(int i)(Code) | | |
setParameter | public Query setParameter(String s, Date date, TemporalType temporalType)(Code) | | |
setParameter | public Query setParameter(int i, Object o)(Code) | | |
setParameter | public Query setParameter(int i, Date date, TemporalType temporalType)(Code) | | |
setParameter | public Query setParameter(int i, Calendar calendar, TemporalType temporalType)(Code) | | |
|
|