public class JtaQuery
extends java.lang.Object
Constructor and Description |
---|
JtaQuery(EntityManager entityManager,
JtaEntityManager jtaEntityManager,
java.lang.reflect.Method method,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
int |
executeUpdate() |
int |
getFirstResult() |
FlushModeType |
getFlushMode() |
java.util.Map<java.lang.String,java.lang.Object> |
getHints() |
LockModeType |
getLockMode() |
int |
getMaxResults() |
<any> |
getParameter(int position) |
<T> <any> |
getParameter(int position,
java.lang.Class<T> type) |
<any> |
getParameter(java.lang.String name) |
<T> <any> |
getParameter(java.lang.String name,
java.lang.Class<T> type) |
java.util.Set<<any>> |
getParameters() |
<T> T |
getParameterValue(<any> param) |
java.lang.Object |
getParameterValue(int position) |
java.lang.Object |
getParameterValue(java.lang.String name) |
java.util.List |
getResultList() |
java.lang.Object |
getSingleResult() |
boolean |
isBound(<any> param) |
protected java.lang.Class<? extends Query> |
queryType() |
Query |
setFirstResult(int i) |
Query |
setFlushMode(FlushModeType flushModeType) |
Query |
setHint(java.lang.String s,
java.lang.Object o) |
Query |
setLockMode(LockModeType lockMode) |
Query |
setMaxResults(int i) |
Query |
setParameter(<any> param,
java.util.Calendar value,
TemporalType temporalType) |
Query |
setParameter(<any> param,
java.util.Date value,
TemporalType temporalType) |
<T> Query |
setParameter(<any> param,
T value) |
Query |
setParameter(int i,
java.util.Calendar calendar,
TemporalType temporalType) |
Query |
setParameter(int i,
java.util.Date date,
TemporalType temporalType) |
Query |
setParameter(int i,
java.lang.Object o) |
Query |
setParameter(java.lang.String s,
java.util.Calendar calendar,
TemporalType temporalType) |
Query |
setParameter(java.lang.String s,
java.util.Date date,
TemporalType temporalType) |
Query |
setParameter(java.lang.String s,
java.lang.Object o) |
<T> T |
unwrap(java.lang.Class<T> cls) |
public JtaQuery(EntityManager entityManager, JtaEntityManager jtaEntityManager, java.lang.reflect.Method method, java.lang.Object... args)
protected java.lang.Class<? extends Query> queryType()
public java.util.List getResultList()
public java.lang.Object getSingleResult()
public int executeUpdate()
public Query setMaxResults(int i)
public Query setFirstResult(int i)
public Query setFlushMode(FlushModeType flushModeType)
public Query setHint(java.lang.String s, java.lang.Object o)
public Query setParameter(java.lang.String s, java.lang.Object o)
public Query setParameter(java.lang.String s, java.util.Date date, TemporalType temporalType)
public Query setParameter(java.lang.String s, java.util.Calendar calendar, TemporalType temporalType)
public Query setParameter(int i, java.lang.Object o)
public Query setParameter(int i, java.util.Date date, TemporalType temporalType)
public Query setParameter(int i, java.util.Calendar calendar, TemporalType temporalType)
public int getFirstResult()
public FlushModeType getFlushMode()
public java.util.Map<java.lang.String,java.lang.Object> getHints()
public LockModeType getLockMode()
public int getMaxResults()
public <any> getParameter(java.lang.String name)
public <any> getParameter(int position)
public <T> <any> getParameter(java.lang.String name, java.lang.Class<T> type)
public <T> <any> getParameter(int position, java.lang.Class<T> type)
public <T> T getParameterValue(<any> param)
public java.lang.Object getParameterValue(java.lang.String name)
public java.lang.Object getParameterValue(int position)
public java.util.Set<<any>> getParameters()
public boolean isBound(<any> param)
public Query setLockMode(LockModeType lockMode)
public <T> Query setParameter(<any> param, T value)
public Query setParameter(<any> param, java.util.Calendar value, TemporalType temporalType)
public Query setParameter(<any> param, java.util.Date value, TemporalType temporalType)
public <T> T unwrap(java.lang.Class<T> cls)