Home » openejb-3.1.2-src » org.apache » openejb » persistence » [javadoc | source]
org.apache.openejb.persistence
public class: JtaQuery [javadoc | source]
java.lang.Object
   org.apache.openejb.persistence.JtaQuery

All Implemented Interfaces:
    javax.persistence.Query

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:
 public JtaQuery(EntityManager entityManager,
    Query query) 
Method from org.apache.openejb.persistence.JtaQuery Summary:
executeUpdate,   getResultList,   getSingleResult,   setFirstResult,   setFlushMode,   setHint,   setMaxResults,   setParameter,   setParameter,   setParameter,   setParameter,   setParameter,   setParameter
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openejb.persistence.JtaQuery Detail:
 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(int i,
    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,
    Date date,
    TemporalType temporalType) 
 public Query setParameter(int i,
    Calendar calendar,
    TemporalType temporalType)