SQLQuery | addEntity(String entityName) Declare a "root" entity, without specifying an alias. |
SQLQuery | addEntity(Class entityType) Declare a "root" entity, without specifying an alias. |
SQLQuery | addEntity(String tableAlias, String entityName) Declare a "root" entity. |
SQLQuery | addEntity(String tableAlias, Class entityType) Declare a "root" entity. |
SQLQuery | addJoin(String tableAlias, String path) Declare a join fetch result. |
SQLQuery | addScalar(String columnAlias, Type type) Declare a scalar query result. |
SQLQuery | addScalar(String columnAlias) Declare a scalar query result. |
SQLQuery | addSynchronizedEntityClass(Class entityClass)
|
String | getQueryString() Get the query string. |
List | list() Return the query results as a List. |
ScrollableResults | scroll(ScrollMode scrollMode) Return the query results as ScrollableResults. |
ScrollableResults | scroll() Return the query results as ScrollableResults. |
Query | setBigDecimal(int position, BigDecimal val) Bind a positional BigDecimal-valued parameter. |
Query | setBigInteger(int position, BigInteger val) Bind a positional BigDecimal-valued parameter. |
Query | setBinary(int position, byte[] val) Bind a positional binary-valued parameter. |
Query | setBoolean(int position, boolean val) Bind a positional boolean-valued parameter. |
NativeQuery | setCacheable(boolean cacheable)
|
NativeQuery | setCacheRegion(String cacheRegion)
|
Query | setCharacter(int position, char val) Bind a positional char-valued parameter. |
NativeQuery | setComment(String comment)
|
Query | setDate(int position, Date val) Bind a positional Date-valued parameter using just the Date portion. |
Query | setDouble(int position, double val) Bind a positional double-valued parameter. |
NativeQuery | setFetchSize(int fetchSize)
|
Query | setFirstResult(int startPosition)
|
Query | setFloat(int position, float val) Bind a positional float-valued parameter. |
NativeQuery | setFlushMode(FlushModeType flushMode)
|
NativeQuery | setFlushMode(FlushMode flushMode)
|
Query | setInteger(int position, int val) Bind a positional int-valued parameter. |
NativeQuery | setLockOptions(LockOptions lockOptions)
|
Query | setLong(int position, long val) Bind a positional long-valued parameter. |
Query | setMaxResults(int maxResult)
|
NativeQuery | setParameter(QueryParameter parameter, P val)
|
NativeQuery | setParameter(Parameter param, P value)
|
NativeQuery | setParameter(String name, Object val)
|
NativeQuery | setParameter(int position, Object val)
|
NativeQuery | setParameter(QueryParameter parameter, P val, Type type)
|
NativeQuery | setParameter(String name, Object val, Type type)
|
NativeQuery | setParameter(int position, Object val, Type type)
|
NativeQuery | setParameter(QueryParameter parameter, P val, TemporalType temporalType)
|
NativeQuery | setParameter(String name, P val, TemporalType temporalType)
|
NativeQuery | setParameter(int position, P val, TemporalType temporalType)
|
NativeQuery | setParameter(Parameter param, Calendar value, TemporalType temporalType)
|
NativeQuery | setParameter(Parameter param, Date value, TemporalType temporalType)
|
NativeQuery | setParameter(String name, Calendar value, TemporalType temporalType)
|
NativeQuery | setParameter(String name, Date value, TemporalType temporalType)
|
NativeQuery | setParameter(int position, Calendar value, TemporalType temporalType)
|
NativeQuery | setParameter(int position, Date value, TemporalType temporalType)
|
NativeQuery | setParameterList(QueryParameter parameter, Collection values)
|
NativeQuery | setParameterList(String name, Collection values)
|
NativeQuery | setParameterList(String name, Object[] values)
|
NativeQuery | setParameterList(String name, Collection values, Type type)
|
NativeQuery | setParameterList(String name, Object[] values, Type type)
|
NativeQuery | setProperties(Object bean)
|
NativeQuery | setProperties(Map bean)
|
NativeQuery | setReadOnly(boolean readOnly)
|
Query | setResultTransformer(ResultTransformer transformer) Set a strategy for handling the query results. |
Query | setSerializable(int position, Serializable val) Bind a positional binary-valued parameter using serialization. |
Query | setString(int position, String val) Bind a positional String-valued parameter. |
NativeQuery | setTimeout(int timeout)
|
Query | setTimestamp(int position, Date val) Bind a positional Date-valued parameter using the full Timestamp. |
R | uniqueResult() Convenience method to return a single instance that matches the query, or null if the query returns no results. |