Deprecated
(since 5.2) use NativeQuery instead.
addSynchronizedQuerySpace, addSynchronizedEntityName and
addSynchronizedEntityClass. This allows Hibernate to know how to properly deal with
auto-flush checking as well as cached query results if the results of the query are being
cached.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | SQLQuery.FetchReturn
Allows access to further control how join fetch returns are mapped back from result sets. |
| public static interface | SQLQuery.ReturnProperty
Allows access to further control how properties within a root or join fetch are mapped back from the result set. |
| public static interface | SQLQuery.RootReturn
Allows access to further control how root returns are mapped back from result sets. |
| Modifier and Type | Method and Description |
|---|---|
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery. | Returns: The return config object for further control.The SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)Declare a join fetch result. |
| public SQLQuery | |
| public SQLQuery | Returns: this, for method chainingThe SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)
Deprecated
as a consequence of
Declare a join fetch result.
SQLQuery being deprecated.
|
| public SQLQuery | Returns: this, for method chainingThe SQL table alias for the data to be mapped to this fetch tableAlias, String The association path ([owner-alias].[property-name]). path, LockMode The lock mode for this return. lockMode)
Deprecated
as a consequence of
Declare a join fetch result, specifying a lock mode.
SQLQuery being deprecated.
|
| public NativeQuery | addQueryHint(String
The database specific query hint to add. hint)Redeclares org.
Deprecated
as a consequence of
Add a DB query hint to the SQL.
NativeQuery being deprecated.
|
| public SQLQuery. | Returns: The return config object for further control.The SQL table alias to map to this entity tableAlias, String The name of the entity. entityName)Add a new root return mapping, returning a |
| public SQLQuery. | Returns: The return config object for further control.The SQL table alias to map to this entity tableAlias, Class<T> The java type of the entity. entityType)Add a new root return mapping, returning a |
| public SQLQuery | |
| public SQLQuery | |
| public SQLQuery | addSynchronizedEntityClass(Class<T>
The class of the entity upon whose defined query spaces we should additionally synchronize. entityClass)Redeclares org.
Deprecated
as a consequence of
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
SQLQuery being deprecated.
|
| public SQLQuery | addSynchronizedEntityName(String
The name of the entity upon whose defined query spaces we should additionally synchronize. entityName)Redeclares org.
Deprecated
as a consequence of
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
SQLQuery being deprecated.
|
| public SQLQuery | addSynchronizedQuerySpace(String
The query space to be auto-flushed for this query. querySpace)Redeclares org.
Deprecated
as a consequence of
Adds a query space.
SQLQuery being deprecated.
|
| public List | |
| public boolean | Returns: true if the query is known to be callable; false otherwise.Is this native-SQL query known to be callable? |
| public NativeQuery | setCacheable(boolean
Should the query results be cacheable? cacheable)Redeclares org.
Deprecated
as a consequence of
Enable/disable second level query (result) caching for this query.
NativeQuery being deprecated.
|
| public NativeQuery | setCacheMode(CacheMode
The new CacheMode to use. cacheMode)Redeclares org.
Deprecated
as a consequence of
(Re)set the current CacheMode in effect for this query.
NativeQuery being deprecated.
|
| public NativeQuery | setCacheRegion(String
the 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).
NativeQuery being deprecated.
|
| public NativeQuery | setComment(String
The human-readable comment comment)Redeclares org.
Deprecated
as a consequence of
Set the comment for this query.
NativeQuery being deprecated.
|
| public NativeQuery | setFetchSize(int
the fetch size hint fetchSize)Redeclares org.
Deprecated
as a consequence of
Sets a JDBC fetch size hint for the query.
NativeQuery being deprecated.
|
| public NativeQuery | setFlushMode(FlushModeType
flush mode flushMode)Redeclares org.
Deprecated
as a consequence of
Set the flush mode type to be used for the query execution.
NativeQuery being deprecated.
|
| public NativeQuery | setFlushMode(FlushMode
The new FlushMode to use. flushMode)Redeclares org.
Deprecated
as a consequence of
(Re)set the current FlushMode in effect for this query.
NativeQuery being deprecated.
|
| public NativeQuery | setHibernateFlushMode(FlushMode
The new FlushMode to use. flushMode)Redeclares as abstract: org.
Deprecated
as a consequence of
(Re)set the current FlushMode in effect for this query.
NativeQuery being deprecated.
|
| public NativeQuery | setLockMode(String
a query alias, or alias, LockMode "this" for a collection filterThe lock mode to apply. lockMode)Redeclares org.
Deprecated
as a consequence of
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
NativeQuery being deprecated.
|
| public NativeQuery | setLockOptions(LockOptions
The lock options to apply to the query. lockOptions)Redeclares org.
Deprecated
as a consequence of
Set the lock options for the query.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(QueryParameter<P>
The query parameter memento parameter, P the possibly-null parameter value val)Redeclares org.
Deprecated
as a consequence of
Bind a query parameter using its inferred Type.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(Parameter<P>
parameter object param, P parameter value value)Redeclares org.
Deprecated
as a consequence of
Bind the value of a NativeQuery being deprecated.
Parameter object.
|
| public NativeQuery | setParameter(String
the parameter name name, Object the (possibly-null) parameter value val)Redeclares org.
Deprecated
as a consequence of
Bind a named query parameter using its inferred Type.
NativeQuery being deprecated.
|
| public NativeQuery | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value val)Redeclares org.
Deprecated
as a consequence of
Bind a positional query parameter using its inferred Type.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(QueryParameter<P>
The query parameter memento parameter, P the possibly-null parameter value val, Type the Hibernate type type)Redeclares org.
Deprecated
as a consequence of
Bind a query parameter using the supplied Type
NativeQuery being deprecated.
|
| public NativeQuery | setParameter(String
the name of the parameter name, Object the possibly-null parameter value val, Type the Hibernate type type)Redeclares org.
Deprecated
as a consequence of
Bind a named query parameter using the supplied Type
NativeQuery being deprecated.
|
| public NativeQuery | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value val, Type the Hibernate type type)Redeclares org.
Deprecated
as a consequence of
Bind a value to a JDBC-style query parameter.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(QueryParameter<P>
The query parameter memento parameter, P the possibly-null parameter value val, TemporalType the temporal-type to use in binding the date/time temporalType)Redeclares org.
Deprecated
as a consequence of
Bind a query parameter as some form of date/time using the indicated
temporal-type.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(String
the parameter name name, P the possibly-null parameter value val, TemporalType the temporal-type to use in binding the date/time temporalType)Redeclares org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQuery being deprecated.
|
| public <P> NativeQuery | setParameter(int
the 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)Redeclares org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQuery being deprecated.
|
| public NativeQuery | setParameter(Parameter<Calendar>
parameter object param, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Calendar to a Parameter object.
|
| public NativeQuery | setParameter(Parameter<Date>
parameter object param, Date parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Date to a Parameter object.
|
| public NativeQuery | setParameter(String
parameter name name, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Calendar to a named parameter.
|
| public NativeQuery | setParameter(String
parameter name name, Date parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Date to a named parameter.
|
| public NativeQuery | setParameter(int
position position, Calendar parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Calendar to a positional
parameter.
|
| public NativeQuery | setParameter(int
position position, Date parameter value value, TemporalType temporal type temporalType)Redeclares org.
Deprecated
as a consequence of
Bind an instance of NativeQuery being deprecated.
java.util.Date to a positional parameter.
|
| public <P> NativeQuery | setParameterList(QueryParameter<P>
the parameter memento parameter, Collection<P> a collection of values to list values)Redeclares org.
Deprecated
as a consequence of
Bind multiple values to a query parameter using its inferred Type.
NativeQuery being deprecated.
|
| public NativeQuery | setParameterList(String
the name of the parameter name, Collection<E> a collection of values to list values)Redeclares org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQuery being deprecated.
|
| public NativeQuery | setParameterList(String
the name of the parameter name, Collection<E> a collection of values to list values, Type the Hibernate type of the values type)Redeclares org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQuery being deprecated.
|
| public NativeQuery | setParameterList(String
the name of the parameter name, Object[] a collection of values to list values, Type the Hibernate type of the values type)Redeclares org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQuery being deprecated.
|
| public NativeQuery | setParameterList(String
the name of the parameter name, Object[] a collection of values to list values)Redeclares org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQuery being deprecated.
|
| public NativeQuery | setProperties(Object
any JavaBean or POJO bean)Redeclares org.
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.
NativeQuery being deprecated.
|
| public NativeQuery | setProperties(Map<K, V>
a java.util.Map bean)Redeclares org.
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.
NativeQuery being deprecated.
|
| public NativeQuery | setReadOnly(boolean
true 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.
NativeQuery being deprecated.
|
| public SQLQuery | Returns: this, for method chainingThe name of the mapping to use. name)
Deprecated
as a consequence of
Use a predefined named result-set mapping.
SQLQuery being deprecated.
|
| public NativeQuery | setTimeout(int
the timeout in seconds timeout)Redeclares org.
Deprecated
as a consequence of
Set the query timeout in seconds.
NativeQuery being deprecated.
|