Modifier and Type | Method and Description |
---|---|
java.util.List<X> |
getResultList()
Executes a SELECT and return the results as a list.
|
X |
getSingleResult()
Returns the single result of a query.
|
TypedQuery<X> |
setFirstResult(int startPosition)
Sets the first result.
|
TypedQuery<X> |
setFlushMode(FlushModeType flushMode)
Sets the flush type.
|
TypedQuery<X> |
setHint(java.lang.String hintName,
java.lang.Object value)
An implementation-specific hint.
|
TypedQuery<X> |
setLockMode(LockModeType lockMode)
Sets the lock type.
|
TypedQuery<X> |
setMaxResults(int maxResult)
The maximum number of results to retrieve.
|
TypedQuery<X> |
setParameter(int position,
java.util.Calendar value,
TemporalType temporalType)
Sets a calendar parameter.
|
TypedQuery<X> |
setParameter(int position,
java.util.Date value,
TemporalType temporalType)
Sets a date parameter.
|
TypedQuery<X> |
setParameter(int position,
java.lang.Object value)
Binds a position parameter.
|
TypedQuery<X> |
setParameter(Parameter<java.util.Calendar> param,
java.util.Calendar value,
TemporalType temporalType)
Sets a calendar parameter.
|
TypedQuery<X> |
setParameter(Parameter<java.util.Date> param,
java.util.Date value,
TemporalType temporalType)
Sets a date parameter.
|
<T> TypedQuery<X> |
setParameter(Parameter<T> parameter,
T value)
Binds a named parameter.
|
TypedQuery<X> |
setParameter(java.lang.String name,
java.util.Calendar value,
TemporalType temporalType)
Sets a calendar parameter.
|
TypedQuery<X> |
setParameter(java.lang.String name,
java.util.Date value,
TemporalType temporalType)
Sets a date parameter.
|
TypedQuery<X> |
setParameter(java.lang.String name,
java.lang.Object value)
Binds a position parameter.
|
executeUpdate, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
X getSingleResult()
Query
getSingleResult
in interface Query
java.util.List<X> getResultList()
Query
getResultList
in interface Query
TypedQuery<X> setMaxResults(int maxResult)
Query
setMaxResults
in interface Query
TypedQuery<X> setFirstResult(int startPosition)
Query
setFirstResult
in interface Query
TypedQuery<X> setHint(java.lang.String hintName, java.lang.Object value)
Query
<T> TypedQuery<X> setParameter(Parameter<T> parameter, T value)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(Parameter<java.util.Calendar> param, java.util.Calendar value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(Parameter<java.util.Date> param, java.util.Date value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(java.lang.String name, java.lang.Object value)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(java.lang.String name, java.util.Calendar value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(java.lang.String name, java.util.Date value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(int position, java.lang.Object value)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(int position, java.util.Calendar value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setParameter(int position, java.util.Date value, TemporalType temporalType)
Query
setParameter
in interface Query
TypedQuery<X> setFlushMode(FlushModeType flushMode)
Query
setFlushMode
in interface Query
TypedQuery<X> setLockMode(LockModeType lockMode)
Query
setLockMode
in interface Query