Deprecated
(since 5.2) use org. instead
| Modifier and Type | Method and Description |
|---|---|
| public Query | addQueryHint(String
The database specific query hint to add. hint)
Deprecated
as a consequence of
Add a DB query hint to the SQL.
Query being deprecated.
|
| public Type | determineProperBooleanType(int position, Object value, Type defaultType)
Deprecated
added only to allow default method definition for deprecated methods here.
|
| public Type | determineProperBooleanType(String name, Object value, Type defaultType)
Deprecated
added only to allow default method definition for deprecated methods here.
|
| public CacheMode | Returns: The query CacheMode.Redeclares org. |
| public String | Returns: The specified cache region name into which query results should be placed;null indicates
the default region.Redeclares org. isCacheable() for more information).
|
| public String | |
| public Integer | Returns: The timeout in secondsRedeclares org. |
| public FlushModeType | Returns: The FlushModeType in effect for this query.Redeclares javax. FlushModeType rather than Hibernate's FlushMode.
|
| public default Integer | Returns: the position of the first query result, ornull if uninitialized.
Deprecated
The position of the first query result to be retrieved, previously set by
getFirstResult() should be used instead.
setFirstResult(int) or setHibernateFirstResult(int).
|
| public FlushMode | Returns: The query FlushMode.Redeclares org. |
| public default Integer | Returns: the maximum number of query results, ornull if uninitialized.
Deprecated
The maximum number of query results to be retrieved, previously set by
getMaxResults() should be used instead.
setMaxResults(int) or setHibernateMaxResults(int).
|
| public LockOptions | |
| public String[] | Returns: the parameter names, in no particular order
Deprecated
(since 5.2) use
Return the names of all named parameters of the query.
ParameterMetadata#getNamedParameterNames()
|
| public ParameterMetadata | Returns: information about query parameters.Access to information about query parameters. |
| public RowSelection | Returns: Return the encapsulation of this query's options, which includes access to firstRow, maxRows, timeout and fetchSize. Important because this gives access to those values in their Integer form rather than the primitive form (int) required by JPA."QueryOptions" is a better name, I think, than "RowSelection" -> 6.0 |
| public String | |
| public String[] | getReturnAliases()
Deprecated
(since 5.2) use
javax. if you need access to "result variables".
|
| public Type[] | Returns: an array of typesRedeclares org.
Deprecated
(since 5.2) with no replacement; to be removed in 6.0
Return the Hibernate types of the query results.
|
| public Integer | Returns: The timeout in secondsRedeclares org. |
| public boolean | Returns: true if the query results are eligible for caching, false otherwise.Redeclares org. |
| public boolean | Returns: true if the entities and proxies loaded by the query will be put
in read-only mode; false otherwise (they will be modifiable)Redeclares org. |
| public Iterator | |
| public List | |
| public ScrollableResults | |
| public ScrollableResults | Returns: the result iteratorThe scroll mode scrollMode)Return the query results as ScrollableResults. |
| public default Query | Returns: this, for method chainingThe parameter position position, BigDecimal The bind value val)
Deprecated
(since 5.2) use
Bind a positional BigDecimal-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, BigDecimal The bind value val)
Deprecated
(since 5.2) use
Bind a named BigDecimal-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, BigInteger The bind value val)
Deprecated
(since 5.2) use
Bind a positional BigDecimal-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, BigInteger The bind value val)
Deprecated
(since 5.2) use
Bind a named BigInteger-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, byte[] The bind value val)
Deprecated
(since 5.2) use
Bind a positional binary-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, byte[] The bind value val)
Deprecated
(since 5.2) use
Bind a named binary-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, boolean The bind value val)
Deprecated
(since 5.2) use
Bind a positional boolean-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, boolean The bind value val)
Deprecated
(since 5.2) use
Bind a named boolean-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, byte The bind value val)
Deprecated
(since 5.2) use
Bind a positional byte-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, byte The bind value val)
Deprecated
(since 5.2) use
Bind a named byte-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingShould the query results be cacheable? cacheable)Redeclares org.
Deprecated
as a consequence of
Enable/disable second level query (result) caching for this query.
Query being deprecated.
|
| public Query | Returns: this, for method chainingThe new CacheMode to use. cacheMode)Redeclares org.
Deprecated
as a consequence of
(Re)set the current CacheMode in effect for this query.
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of a query cache region, or cacheRegion)null to indicate that the default region
should be used.Redeclares org.
Deprecated
as a consequence of
Set the name of the cache region where query results should be cached (if cached at all).
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, Calendar The bind value val)
Deprecated
(since 5.2) use
Bind a positional Calendar-valued parameter using the full Timestamp portion.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, Calendar The bind value value)
Deprecated
(since 5.2) use
Bind a named Calendar-valued parameter using the full Timestamp.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, Calendar The bind value val)
Deprecated
(since 5.2) use
Bind a positional Calendar-valued parameter using just the Date portion.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, Calendar The bind value value)
Deprecated
(since 5.2) use
Bind a named Calendar-valued parameter using just the Date portion.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, char The bind value val)
Deprecated
(since 5.2) use
Bind a positional char-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, char The bind value val)
Deprecated
(since 5.2) use
Bind a named char-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingThe human-readable comment comment)
Deprecated
as a consequence of
Set the comment for this query.
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, Date The bind value val)
Deprecated
(since 5.2) use
Bind a positional Date-valued parameter using just the Date portion.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe name of the parameter name, Date The val object val)
Deprecated
(since 5.2) use
Bind the val (time is truncated) of a given Date object to a named query parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, double The bind value val)
Deprecated
(since 5.2) use
Bind a positional double-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, double The bind value val)
Deprecated
(since 5.2) use
Bind a named double-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingthe position of the parameter in the query
string, numbered from 0. position, Object a non-null instance of a persistent class val)
Deprecated
(since 5.2) use
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Object a non-null instance of a persistent class val)
Deprecated
(since 5.2) use
Bind an instance of a mapped persistent class to a named query parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingthe fetch size hint fetchSize)Redeclares org.
Deprecated
as a consequence of
Sets a JDBC fetch size hint for the query.
Query being deprecated.
|
| public Query | setFirstResult(int
position of the first result,
numbered from 0 startPosition)Redeclares javax.
Deprecated
as a consequence of
Set the position of the first result to retrieve.
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, float The bind value val)
Deprecated
(since 5.2) use
Bind a positional float-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, float The bind value val)
Deprecated
(since 5.2) use
Bind a named float-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingThe new FlushMode to use. flushMode)Redeclares as abstract: org.
Deprecated
(since 5.2) use
(Re)set the current FlushMode in effect for this query.
setHibernateFlushMode instead
|
| public Query | setFlushMode(FlushModeType
flush mode flushMode)Redeclares javax.
Deprecated
as a consequence of
Set the flush mode type to be used for the query execution.
Query being deprecated.
|
| public default Query | Returns: this, for method chaining- the position of the first query result firstRow)
Deprecated
Set the position of the first query result to be retrieved.
setFirstResult(int) should be used instead.
|
| public default Query | Returns: this, for method chainingThe new FlushMode to use. flushMode)Implements org.
Deprecated
as a consequence of
(Re)set the current FlushMode in effect for this query.
Query being deprecated.
|
| public default Query | Returns: this, for method chaining- the maximum number of query results maxResults)
Deprecated
Set the maximum number of query results to be retrieved.
setMaxResults(int) should be used instead.
|
| public Query | setHint(String
name of property or hint hintName, Object value for the property or hint value)Redeclares javax.
Deprecated
as a consequence of
Set a query property or hint.
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, int The bind value val)
Deprecated
(since 5.2) use
Bind a positional int-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, int The bind value val)
Deprecated
(since 5.2) use
Bind a named int-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, Locale The bind value val)
Deprecated
(since 5.2) use
Bind a positional Locale-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, Locale The bind value val)
Deprecated
(since 5.2) use
Bind a named Locale-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chaininga query alias, or alias, LockMode "this" for a collection filterThe lock mode to apply. lockMode)
Deprecated
as a consequence of
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
Query being deprecated.
|
| public Query | setLockMode(LockModeType
lock mode lockMode)Redeclares javax.
Deprecated
as a consequence of
Set the lock mode type to be used for the query execution.
Query being deprecated.
|
| public Query | Returns: this, for method chainingThe lock options to apply to the query. lockOptions)
Deprecated
as a consequence of
Set the lock options for the query.
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, long The bind value val)
Deprecated
(since 5.2) use
Bind a positional long-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, long The bind value val)
Deprecated
(since 5.2) use
Bind a named long-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | setMaxResults(int
maximum number of results to retrieve maxResult)Redeclares javax.
Deprecated
as a consequence of
Set the maximum number of results to retrieve.
Query being deprecated.
|
| public <T> Query | Returns: this, for method chainingThe query parameter memento parameter, T the possibly-null parameter value val)
Deprecated
as a consequence of
Bind a query parameter using its inferred Type.
Query being deprecated.
|
| public <T> Query | setParameter(Parameter<T>
parameter object param, T parameter value value)Redeclares javax.
Deprecated
as a consequence of
Bind the value of a Query being deprecated.
Parameter object.
|
| public Query | Returns: this, for method chainingthe parameter name name, Object the (possibly-null) parameter value val)Redeclares javax.
Deprecated
as a consequence of
Bind a named query parameter using its inferred Type.
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value val)Redeclares javax.
Deprecated
as a consequence of
Bind a positional query parameter using its inferred Type.
Query being deprecated.
|
| public <P> Query | Returns: this, for method chainingThe query parameter memento parameter, P the possibly-null parameter value val, Type the Hibernate type type)
Deprecated
as a consequence of
Bind a query parameter using the supplied Type
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Object the possibly-null parameter value val, Type the Hibernate type type)
Deprecated
as a consequence of
Bind a named query parameter using the supplied Type
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value val, Type the Hibernate type type)
Deprecated
as a consequence of
Bind a value to a JDBC-style query parameter.
Query being deprecated.
|
| public <P> Query | Returns: this, for method chainingThe query parameter memento parameter, P the possibly-null parameter value val, TemporalType the temporal-type to use in binding the date/time temporalType)
Deprecated
as a consequence of
Bind a query parameter as some form of date/time using the indicated
temporal-type.
Query being deprecated.
|
| public <P> Query | Returns: this, for method chainingthe parameter name name, P the possibly-null parameter value val, TemporalType the temporal-type to use in binding the date/time temporalType)
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
Query being deprecated.
|
| public <P> Query | Returns: this, for method chainingthe position of the parameter in the query
string, numbered from 0. position, P the possibly-null parameter value val, TemporalType the temporal-type to use in binding the date/time temporalType)
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
Query being deprecated.
|
| public Query | setParameter(Parameter<Calendar>
parameter object param, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Calendar to a Parameter object.
|
| public Query | setParameter(Parameter<Date>
parameter object param, Date parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Date to a Parameter object.
|
| public Query | setParameter(String
parameter name name, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Calendar to a named parameter.
|
| public Query | setParameter(String
parameter name name, Date parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Date to a named parameter.
|
| public Query | setParameter(int
position position, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Calendar to a positional
parameter.
|
| public Query | setParameter(int
position position, Date parameter value value, TemporalType temporal type temporalType)Redeclares javax.
Deprecated
as a consequence of
Bind an instance of Query being deprecated.
java.util.Date to a positional parameter.
|
| public <P> Query | Returns: this, for method chainingthe parameter memento parameter, Collection<P> a collection of values to list values)
Deprecated
as a consequence of
Bind multiple values to a query parameter using its inferred Type.
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Collection<E> a collection of values to list values)
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
Query being deprecated.
|
| public Query | setParameterList(int position, Collection<E> values)
Deprecated
as a consequence of
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Collection<E> a collection of values to list values, Type the Hibernate type of the values type)
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
Query being deprecated.
|
| public Query | setParameterList(int position, Collection<E> values, Type type)
Deprecated
as a consequence of
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Object[] a collection of values to list values, Type the Hibernate type of the values type)
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
Query being deprecated.
|
| public Query | setParameterList(int position, Object[] values, Type type)
Deprecated
as a consequence of
Query being deprecated.
|
| public Query | Returns: this, for method chainingthe name of the parameter name, Object[] a collection of values to list values)
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
Query being deprecated.
|
| public Query | setParameterList(int position, Object[] values)
Deprecated
as a consequence of
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe values values, Type[] The types types)
Deprecated
(since 5.2) Bind values individually
Bind values and types to positional parameters.
|
| public Query | Returns: this, for method chainingany JavaBean or POJO bean)
Deprecated
as a consequence of
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.
Query being deprecated.
|
| public Query | Returns: this, for method chaininga java.util.Map bean)
Deprecated
as a consequence of
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.
Query being deprecated.
|
| public Query | Returns: this, for method chainingtrue indicates that entities and proxies loaded by the query
are to be put in read-only mode; false indicates that entities and proxies
loaded by the query will be put in modifiable modeRedeclares org.
Deprecated
as a consequence of
Set the read-only/modifiable mode for entities and proxies
loaded by this Query.
Query being deprecated.
|
| public Query | Returns: this (for method chaining)The transformer to apply transformer)
Deprecated
(since 5.2)
Set a strategy for handling the query results.
|
| public default Query | Returns: this, for method chainingThe parameter position position, Serializable The bind value val)
Deprecated
(since 5.2) use
Bind a positional binary-valued parameter using serialization.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, Serializable The bind value val)
Deprecated
(since 5.2) use
Bind a named binary-valued parameter using serialization.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, short The bind value val)
Deprecated
(since 5.2) use
Bind a positional short-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, short The bind value val)
Deprecated
(since 5.2) use
Bind a named short-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, String The bind value val)
Deprecated
(since 5.2) use
Bind a positional String-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, String The bind value val)
Deprecated
(since 5.2) use
Bind a named String-valued parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, String The bind value val)
Deprecated
(since 5.2) use
Bind a positional String-valued parameter using streaming.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter name name, String The bind value val)
Deprecated
(since 5.2) use
Bind a named String-valued parameter using streaming.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe parameter position position, Date The bind value val)
Deprecated
(since 5.2) use
Bind a positional Date-valued parameter using just the Time portion.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe name of the parameter name, Date The val object val)
Deprecated
(since 5.2) use
Bind the time (val is truncated) of a given Date object to a named query parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public Query | Returns: this, for method chainingthe timeout in seconds timeout)Redeclares org.
Deprecated
as a consequence of
Set the query timeout in seconds.
Query being deprecated.
|
| public default Query | Returns: this, for method chainingThe parameter position position, Date The bind value val)
Deprecated
(since 5.2) use
Bind a positional Date-valued parameter using the full Timestamp.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public default Query | Returns: this, for method chainingThe name of the parameter name, Date The value object value)
Deprecated
(since 5.2) use
Bind the value and the time of a given Date object to a named query parameter.
setParameter(int, Object) or setParameter(int, Object, Type)
instead
|
| public R | Returns: the single result or nullConvenience method to return a single instance that matches
the query, or |