Java org.hibernate Query fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate Query fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate Query.

The text is from its open source code.

Subclass

org.hibernate.Query has subclasses.
Click this link to see all its subclasses.

Implementation

org.hibernate.Query has the following implementations.
Click this link to see all its implementation.

Method

StringgetCacheRegion()
Obtain the name of the second level query cache region in which query results will be stored (if they are cached, see the discussion on #isCacheable() for more information).
IntegergetFetchSize()
Obtain the JDBC fetch size hint in effect for this query.
String[]getNamedParameters()
Return the names of all named parameters of the query.
StringgetQueryString()
Get the query string.
String[]getReturnAliases()
Type[]getReturnTypes()
Return the Hibernate types of the query results.
Iteratoriterate()
Return the query results as an Iterator.
Listlist()
Return the query results as a List.
ScrollableResultsscroll(ScrollMode scrollMode)
Return the query results as ScrollableResults.
ScrollableResultsscroll()
Return the query results as ScrollableResults.
QuerysetBigDecimal(int position, BigDecimal val)
Bind a positional BigDecimal-valued parameter.
QuerysetBigDecimal(String name, BigDecimal val)
Bind a named BigDecimal-valued parameter.
QuerysetBigInteger(int position, BigInteger val)
Bind a positional BigDecimal-valued parameter.
QuerysetBigInteger(String name, BigInteger val)
Bind a named BigInteger-valued parameter.
QuerysetBinary(int position, byte[] val)
Bind a positional binary-valued parameter.
QuerysetBinary(String name, byte[] val)
Bind a named binary-valued parameter.
QuerysetBoolean(int position, boolean val)
Bind a positional boolean-valued parameter.
QuerysetBoolean(String name, boolean val)
Bind a named boolean-valued parameter.
QuerysetByte(int position, byte val)
Bind a positional byte-valued parameter.
QuerysetByte(String name, byte val)
Bind a named byte-valued parameter.
QuerysetCacheable(boolean cacheable)
Enable/disable second level query (result) caching for this query.
QuerysetCacheMode(CacheMode cacheMode)
(Re)set the current CacheMode in effect for this query.
QuerysetCacheRegion(String cacheRegion)
Set the name of the cache region where query results should be cached (if cached at all).
QuerysetCalendar(int position, Calendar val)
Bind a positional Calendar-valued parameter using the full Timestamp portion.
QuerysetCalendar(String name, Calendar value)
Bind a named Calendar-valued parameter using the full Timestamp.
QuerysetCalendarDate(int position, Calendar val)
Bind a positional Calendar-valued parameter using just the Date portion.
QuerysetCalendarDate(String name, Calendar value)
Bind a named Calendar-valued parameter using just the Date portion.
QuerysetCharacter(int position, char val)
Bind a positional char-valued parameter.
QuerysetCharacter(String name, char val)
Bind a named char-valued parameter.
QuerysetComment(String comment)
Set the comment for this query.
QuerysetDate(int position, Date val)
Bind a positional Date-valued parameter using just the Date portion.
QuerysetDate(String name, Date val)
Bind the val (time is truncated) of a given Date object to a named query parameter.
QuerysetDouble(int position, double val)
Bind a positional double-valued parameter.
QuerysetDouble(String name, double val)
Bind a named double-valued parameter.
QuerysetEntity(int position, Object val)
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
QuerysetEntity(String name, Object val)
Bind an instance of a mapped persistent class to a named query parameter.
QuerysetFetchSize(int fetchSize)
Sets a JDBC fetch size hint for the query.
QuerysetFirstResult(int startPosition)
QuerysetFloat(int position, float val)
Bind a positional float-valued parameter.
QuerysetFloat(String name, float val)
Bind a named float-valued parameter.
QuerysetFlushMode(FlushMode flushMode)
(Re)set the current FlushMode in effect for this query.
QuerysetFlushMode(FlushModeType flushMode)
QuerysetInteger(int position, int val)
Bind a positional int-valued parameter.
QuerysetInteger(String name, int val)
Bind a named int-valued parameter.
QuerysetLocale(int position, Locale val)
Bind a positional Locale-valued parameter.
QuerysetLocale(String name, Locale val)
Bind a named Locale-valued parameter.
QuerysetLockMode(String alias, LockMode lockMode)
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
QuerysetLockOptions(LockOptions lockOptions)
Set the lock options for the query.
QuerysetLong(int position, long val)
Bind a positional long-valued parameter.
QuerysetLong(String name, long val)
Bind a named long-valued parameter.
QuerysetMaxResults(int maxResult)
QuerysetParameter(QueryParameter parameter, T val)
Bind a query parameter using its inferred Type.
QuerysetParameter(Parameter param, T value)
QuerysetParameter(String name, Object val)
Bind a named query parameter using its inferred Type.
QuerysetParameter(int position, Object val)
Bind a positional query parameter using its inferred Type.
QuerysetParameter(QueryParameter

parameter, P val, Type type)
Bind a query parameter using the supplied Type

QuerysetParameter(String name, Object val, Type type)
Bind a named query parameter using the supplied Type
QuerysetParameter(int position, Object val, Type type)
Bind a value to a JDBC-style query parameter.
QuerysetParameter(QueryParameter

parameter, P val, TemporalType temporalType)
Bind a query parameter as some form of date/time using the indicated temporal-type.

QuerysetParameter(String name, P val, TemporalType temporalType)
Bind a named query parameter as some form of date/time using the indicated temporal-type.
QuerysetParameter(int position, P val, TemporalType temporalType)
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
QuerysetParameter(Parameter param, Calendar value, TemporalType temporalType)
QuerysetParameter(Parameter param, Date value, TemporalType temporalType)
QuerysetParameter(String name, Calendar value, TemporalType temporalType)
QuerysetParameter(String name, Date value, TemporalType temporalType)
QuerysetParameter(int position, Calendar value, TemporalType temporalType)
QuerysetParameter(int position, Date value, TemporalType temporalType)
QuerysetParameterList(QueryParameter

parameter, Collection

values)
Bind multiple values to a query parameter using its inferred Type.

QuerysetParameterList(String name, Collection values)
Bind multiple values to a named query parameter.
QuerysetParameterList(int position, Collection values)
QuerysetParameterList(String name, Object[] values)
Bind multiple values to a named query parameter.
QuerysetParameterList(int position, Object[] values)
QuerysetParameterList(String name, Collection values, Type type)
Bind multiple values to a named query parameter.
QuerysetParameterList(int position, Collection values, Type type)
QuerysetParameterList(String name, Object[] values, Type type)
Bind multiple values to a named query parameter.
QuerysetParameterList(int position, Object[] values, Type type)
QuerysetParameters(Object[] values, Type[] types)
Bind values and types to positional parameters.
QuerysetProperties(Object bean)
Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.
QuerysetProperties(Map bean)
Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.
QuerysetReadOnly(boolean readOnly)
Set the read-only/modifiable mode for entities and proxies loaded by this Query.
QuerysetResultTransformer(ResultTransformer transformer)
Set a strategy for handling the query results.
QuerysetSerializable(int position, Serializable val)
Bind a positional binary-valued parameter using serialization.
QuerysetSerializable(String name, Serializable val)
Bind a named binary-valued parameter using serialization.
QuerysetShort(int position, short val)
Bind a positional short-valued parameter.
QuerysetShort(String name, short val)
Bind a named short-valued parameter.
QuerysetString(int position, String val)
Bind a positional String-valued parameter.
QuerysetString(String name, String val)
Bind a named String-valued parameter.
QuerysetText(int position, String val)
Bind a positional String-valued parameter using streaming.
QuerysetText(String name, String val)
Bind a named String-valued parameter using streaming.
QuerysetTime(int position, Date val)
Bind a positional Date-valued parameter using just the Time portion.
QuerysetTime(String name, Date val)
Bind the time (val is truncated) of a given Date object to a named query parameter.
QuerysetTimeout(int timeout)
Set the query timeout in seconds.
QuerysetTimestamp(int position, Date val)
Bind a positional Date-valued parameter using the full Timestamp.
QuerysetTimestamp(String name, Date value)
Bind the value and the time of a given Date object to a named query parameter.
RuniqueResult()
Convenience method to return a single instance that matches the query, or null if the query returns no results.