Top Fields Constructors Methods
org.hibernate.query.internal

public abstract Class AbstractProducedQuery<R>

extends Object
implements QueryImplementor<R>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.QueryImplementor, org.hibernate.query.Query, org.hibernate.query.CommonQueryContract, org.hibernate.BasicQueryContract, org.hibernate.Query, javax.persistence.TypedQuery, javax.persistence.Query
Known Direct Subclasses
org.hibernate.query.internal.CollectionFilterImpl, org.hibernate.query.internal.NativeQueryImpl, org.hibernate.query.internal.QueryImpl, org.hibernate.procedure.internal.ProcedureCallImpl
Imports
java.io.Serializable, java.time.Instant, .LocalDateTime, .OffsetDateTime, .ZonedDateTime, java.util.ArrayList, .Arrays, .Calendar, .Collection, .Collections, .Date, .HashMap, .Iterator, .List, .Map, .Optional, .Set, .Spliterator, .Spliterators, java.util.function.BiConsumer, .BiFunction, .Function, java.util.stream.Stream, .StreamSupport, javax.persistence.CacheRetrieveMode, .CacheStoreMode, .FlushModeType, .LockModeType, .NoResultException, .Parameter, .TemporalType, .TransactionRequiredException, org.hibernate.CacheMode, .Filter, .FlushMode, .HibernateException, .LockMode, .LockOptions, .NonUniqueResultException, .PropertyNotFoundException, .QueryParameterException, .ScrollMode, .TypeMismatchException, org.hibernate.engine.query.spi.EntityGraphQueryHint, .HQLQueryPlan, org.hibernate.engine.spi.ExceptionConverter, .QueryParameters, .RowSelection, .SharedSessionContractImplementor, .TypedValue, org.hibernate.graph.GraphSemantic, .RootGraph, org.hibernate.graph.internal.RootGraphImpl, org.hibernate.graph.spi.RootGraphImplementor, org.hibernate.hql.internal.QueryExecutionRequestException, org.hibernate.internal.EmptyScrollableResults, .EntityManagerMessageLogger, .HEMLogging, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.jpa.QueryHints, .TypedParameterValue, org.hibernate.jpa.internal.util.CacheModeHelper, .ConfigurationHelper, .FlushModeTypeHelper, .LockModeTypeHelper, org.hibernate.property.access.spi.BuiltInPropertyAccessStrategies, .Getter, .PropertyAccess, org.hibernate.query.ParameterMetadata, .Query, .QueryParameter, org.hibernate.query.spi.QueryImplementor, .QueryParameterBinding, .QueryParameterBindings, .QueryParameterListBinding, .ScrollableResultsImplementor, .StreamDecorator, org.hibernate.transform.ResultTransformer, org.hibernate.type.Type, org.jboss.logging.Logger

Deprecated

as a consequence of QueryImplementor being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private String
private CacheRetrieveMode
private CacheStoreMode
private String
private final List<String>
private EntityGraphQueryHint
private FlushMode
private LockOptions
private static final Logger
private static final EntityManagerMessageLogger
private String
private Serializable
private Object
private final ParameterMetadata
private Boolean
private final SharedSessionContractImplementor
private RowSelection
private Boolean
private ResultTransformer
private CacheMode
private FlushMode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public QueryImplementor<R>
addQueryHint(String
The database specific query hint to add.
hint
)

Implements org.hibernate.query.Query.addQueryHint.

Deprecated as a consequence of QueryImplementor being deprecated.
Add a DB query hint to the SQL.
protected void
protected void
protected void
applyAliasSpecificLockModeHint(String
The alias to apply the 'lockMode' to.
alias
,
LockMode
The LockMode to apply.
lockMode
)

Apply the alias specific lock modes.

protected boolean

Returns:

true if the hint was "applied"
applyCacheableHint
(boolean
The value specified as hint
isCacheable
)

Apply the cacheable (true/false) hint.

protected boolean

Returns:

true if the hint was "applied"
applyCacheModeHint
(CacheMode
The CacheMode value specified as a hint.
cacheMode
)

Apply the CacheMode hint.

protected boolean

Returns:

true if the hint was "applied"
applyCacheRegionHint
(String
The name of the cache region specified as a hint
regionName
)

Apply the cache region hint

protected boolean

Returns:

true if the hint was "applied"
applyCommentHint
(String
The comment specified as a hint
comment
)

Apply the comment hint.

protected void
applyEntityGraphQueryHint(EntityGraphQueryHint
The entity graph hint object
hint
)

Deprecated (5.4) Use applyGraph instead
Used from HEM code as a (hopefully temporary) means to apply a custom query plan in regards to a JPA entity graph.
protected boolean

Returns:

true if the hint was "applied"
applyFetchSizeHint
(int
The fetch size specified as a hint
fetchSize
)

Apply the fetch size hint

protected boolean

Returns:

true if the hint was "applied"
applyFlushModeHint
(FlushMode
The FlushMode value specified as hint
flushMode
)

Apply the FlushMode hint.

protected boolean
applyFollowOnLockingHint(Boolean
The follow-on-locking strategy.
followOnLocking
)

Apply the follow-on-locking hint.

public Query<R>
applyGraph(RootGraph<J>
The graph the apply.
graph
,
GraphSemantic
The semantic to use when applying the graph
semantic
)

Implements org.hibernate.query.Query.applyGraph.

Deprecated as a consequence of Query being deprecated.
Apply the given graph using the given semantic
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean

Returns:

true if the hint was "applied"
applyLockTimeoutHint
(int
The timeout (in seconds!) specified as a hint
timeout
)

Apply the lock timeout (in seconds!) hint

protected boolean
protected boolean
applyPassDistinctThrough(boolean
the query passes distinct to the database
passDistinctThrough
)

Apply the follow-on-locking hint.

protected boolean
protected boolean

Returns:

true if the hint was "applied"
applyReadOnlyHint
(boolean
The value specified as hint
isReadOnly
)

Apply the read-only (true/false) hint.

protected boolean

Returns:

true if the hint was "applied"
applyTimeoutHint
(int
The timeout (in seconds!) specified as a hint
timeout
)

Apply the query timeout hint.

protected void
protected boolean

Returns:

true indicates they can be applied, false otherwise.
canApplyAliasSpecificLockModeHints
()

Can alias-specific lock modes be applied?

protected void
protected void
public Type
public Type
protected Type
determineType(String namedParam, Class<T> retType)

protected int
protected Iterator<R>
protected List<R>
protected ScrollableResultsImplementor
doScroll(ScrollMode scrollMode)

public int
executeUpdate()

Implements javax.persistence.Query.executeUpdate.

Execute an update or delete statement.
public CacheMode
getCacheMode()

Implements org.hibernate.query.Query.getCacheMode.

Obtain the CacheMode in effect for this query.
public String
getCacheRegion()

Implements org.hibernate.query.Query.getCacheRegion.

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).
public String
getComment()

Implements org.hibernate.query.Query.getComment.

Obtain the comment currently associated with this query.
protected ExceptionConverter
public Integer
getFetchSize()

Implements org.hibernate.query.Query.getFetchSize.

Obtain the JDBC fetch size hint in effect for this query.
public int
getFirstResult()

Implements javax.persistence.Query.getFirstResult.

The position of the first result the query object was set to retrieve.
public FlushModeType
getFlushMode()

Implements javax.persistence.Query.getFlushMode, org.hibernate.Query.getFlushMode.

For users of the Hibernate native APIs, we've had to rename this method as defined by Hibernate historically because the JPA contract defines a method of the same name, but returning the JPA FlushModeType rather than Hibernate's FlushMode.
public FlushMode
getHibernateFlushMode()

Implements org.hibernate.query.Query.getHibernateFlushMode.

Obtain the FlushMode in effect for this query.
public Map<String, Object>
getHints()

Implements javax.persistence.Query.getHints.

Get the properties and hints and associated values that are in effect for the query instance.
public LockModeType
getLockMode()

Implements javax.persistence.Query.getLockMode.

Get the current lock mode for the query.
public LockOptions
getLockOptions()

Implements org.hibernate.query.Query.getLockOptions.

Obtains the LockOptions in effect for this query.
public int
getMaxResults()

Implements javax.persistence.Query.getMaxResults.

The maximum number of results the query object was set to retrieve.
protected Map<String, TypedValue>
public String[]
getNamedParameters()

Implements org.hibernate.Query.getNamedParameters.

Return the names of all named parameters of the query.
public QueryParameter<?>
getParameter(String
parameter name
name
)

Implements javax.persistence.Query.getParameter.

Get the parameter object corresponding to the declared parameter of the given name.
public <T> QueryParameter<T>
getParameter(String
parameter name
name
,
Class<T>
type
type
)

Implements javax.persistence.Query.getParameter.

Get the parameter object corresponding to the declared parameter of the given name and type.
public QueryParameter<?>
getParameter(int
position
position
)

Implements javax.persistence.Query.getParameter.

Get the parameter object corresponding to the declared positional parameter with the given position.
public <T> QueryParameter<T>
getParameter(int
position
position
,
Class<T>
type
type
)

Implements javax.persistence.Query.getParameter.

Get the parameter object corresponding to the declared positional parameter with the given position and type.
public ParameterMetadata
getParameterMetadata()

Implements org.hibernate.query.Query.getParameterMetadata.

Access to information about query parameters.
public Set<Parameter<?>>
getParameters()

Implements javax.persistence.Query.getParameters.

Get the parameter objects corresponding to the declared parameters of the query.
public <T> T
getParameterValue(Parameter<T>
parameter object
parameter
)

Implements javax.persistence.Query.getParameterValue.

Return the input value bound to the parameter.
public Object
getParameterValue(String
parameter name
name
)

Implements javax.persistence.Query.getParameterValue.

Return the input value bound to the named parameter.
public Object
getParameterValue(int
position
position
)

Implements javax.persistence.Query.getParameterValue.

Return the input value bound to the positional parameter.
private Object
getParameterValue(QueryParameter<T> queryParameter, Function<QueryParameter<T>, IllegalStateException> notBoundParamenterException, BiFunction<QueryParameter<T>, QueryParameterException, IllegalArgumentException> couldNotResolveParameterException, BiConsumer<QueryParameter<T>, Boolean> boundCheckingLogger)

protected Type[]
protected Object[]
public SharedSessionContractImplementor
getProducer()

Implements org.hibernate.query.spi.QueryImplementor.getProducer.

Get the QueryProducer this Query originates from.
public RowSelection
getQueryOptions()

Implements org.hibernate.Query.getQueryOptions.

"QueryOptions" is a better name, I think, than "RowSelection" -> 6.0
protected abstract QueryParameterBindings
public QueryParameters
public R
getSingleResult()

Overrides default org.hibernate.query.Query.getSingleResult.

Execute a SELECT query that returns a single result.
public Set<String>
public Integer
protected void
public boolean
isBound(Parameter<?>
parameter object
parameter
)

Implements javax.persistence.Query.isBound.

Return a boolean indicating whether a value has been bound to the parameter.
public boolean
isCacheable()

Implements org.hibernate.Query.isCacheable, org.hibernate.BasicQueryContract.isCacheable.

Are the results of this query eligible for second level query caching?
protected boolean
protected abstract boolean

Returns:

true if it is a native query; false otherwise
isNativeQuery
()

Is the query represented here a native (SQL) query?

public boolean
isReadOnly()

Implements org.hibernate.Query.isReadOnly, org.hibernate.BasicQueryContract.isReadOnly.

Should entities and proxies loaded by this Query be put in read-only mode?
private boolean
protected boolean
public Iterator<R>
iterate()

Implements org.hibernate.Query.iterate.

Return the query results as an Iterator.
public List<R>
list()

Implements org.hibernate.query.Query.list.

Return the query results as a List.
private <P> QueryParameterBinding<P>
locateBinding(Parameter<P> parameter)

private <P> QueryParameterBinding<P>
private <P> QueryParameterBinding<P>
locateBinding(int position)

private QueryParameterListBinding<T>
protected QueryParameters
protected void
putIfNotNull(Map<String, Object> hints, String hintName, Enum<E extends Enum<E>> hintValue)

protected void
putIfNotNull(Map<String, Object> hints, String hintName, Object hintValue)

protected String
public ScrollableResultsImplementor
scroll()

Implements org.hibernate.query.Query.scroll.

Return the query results as ScrollableResults.
public ScrollableResultsImplementor
scroll(ScrollMode
The scroll mode
scrollMode
)

Implements org.hibernate.query.Query.scroll.

Return the query results as ScrollableResults.
public QueryImplementor<R>
setCacheable(boolean
Should the query results be cacheable?
cacheable
)

Implements org.hibernate.query.Query.setCacheable.

Deprecated as a consequence of QueryImplementor being deprecated.
Enable/disable second level query (result) caching for this query.
public QueryImplementor<R>
setCacheMode(CacheMode
The new CacheMode to use.
cacheMode
)

Implements org.hibernate.query.Query.setCacheMode.

Deprecated as a consequence of QueryImplementor being deprecated.
(Re)set the current CacheMode in effect for this query.
public QueryImplementor<R>
setCacheRegion(String
the name of a query cache region, or null to indicate that the default region should be used.
cacheRegion
)

Implements org.hibernate.query.Query.setCacheRegion.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the name of the cache region where query results should be cached (if cached at all).
public QueryImplementor<R>
setComment(String
The human-readable comment
comment
)

Implements org.hibernate.query.Query.setComment.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the comment for this query.
public QueryImplementor<R>
setFetchSize(int
the fetch size hint
fetchSize
)

Implements org.hibernate.query.Query.setFetchSize.

Deprecated as a consequence of QueryImplementor being deprecated.
Sets a JDBC fetch size hint for the query.
public QueryImplementor<R>
setFirstResult(int
position of the first result, numbered from 0
startPosition
)

Implements org.hibernate.query.Query.setFirstResult.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the position of the first result to retrieve.
public QueryImplementor<R>
setFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Overrides default org.hibernate.query.Query.setFlushMode.

Deprecated as a consequence of QueryImplementor being deprecated.
(Re)set the current FlushMode in effect for this query.
public QueryImplementor<R>
setFlushMode(FlushModeType
flush mode
flushModeType
)

Implements org.hibernate.query.Query.setFlushMode.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the flush mode type to be used for the query execution.
public QueryImplementor<R>
setHibernateFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Implements org.hibernate.query.Query.setHibernateFlushMode.

Deprecated as a consequence of QueryImplementor being deprecated.
(Re)set the current FlushMode in effect for this query.
public QueryImplementor<R>
setHint(String
name of property or hint
hintName
,
Object
value for the property or hint
value
)

Implements org.hibernate.query.Query.setHint.

Deprecated as a consequence of QueryImplementor being deprecated.
Set a query property or hint.
public QueryImplementor<R>
setLockMode(String
a query alias, or "this" for a collection filter
alias
,
LockMode
The lock mode to apply.
lockMode
)

Implements org.hibernate.query.Query.setLockMode.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
public QueryImplementor<R>
setLockMode(LockModeType
lock mode
lockModeType
)

Implements org.hibernate.query.Query.setLockMode.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the lock mode type to be used for the query execution.
public QueryImplementor<R>
setLockOptions(LockOptions
The lock options to apply to the query.
lockOptions
)

Implements org.hibernate.query.Query.setLockOptions.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the lock options for the query.
public QueryImplementor<R>
setMaxResults(int
maximum number of results to retrieve
maxResult
)

Implements org.hibernate.query.Query.setMaxResults.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the maximum number of results to retrieve.
public void
public void
public void
public QueryImplementor<R>
setParameter(Parameter<Instant> param, Instant value, TemporalType temporalType)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameter(Parameter<LocalDateTime> param, LocalDateTime value, TemporalType temporalType)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameter(Parameter<ZonedDateTime> param, ZonedDateTime value, TemporalType temporalType)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameter(Parameter<OffsetDateTime> param, OffsetDateTime value, TemporalType temporalType)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameter(String
the parameter name
name
,
Instant
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(String
the parameter name
name
,
LocalDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(String
the parameter name
name
,
ZonedDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(String
the parameter name
name
,
OffsetDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Instant
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
LocalDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
ZonedDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
OffsetDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public <P> QueryImplementor<R>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
value
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a query parameter using its inferred Type.
public <P> QueryImplementor<R>
setParameter(Parameter<P>
parameter object
parameter
,
P
parameter value
value
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind the value of a Parameter object.
private <P> void
setParameter(Parameter<P> parameter, Object value, Type type)

public QueryImplementor<R>
setParameter(String
parameter name
name
,
Object
parameter value
value
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an argument value to a named parameter.
public QueryImplementor<R>
setParameter(int
position
position
,
Object
parameter value
value
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an argument value to a positional parameter.
public <P> QueryImplementor<R>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
value
,
Type
the Hibernate type
type
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a query parameter using the supplied Type
public QueryImplementor<R>
setParameter(String
the name of the parameter
name
,
Object
the possibly-null parameter value
value
,
Type
the Hibernate type
type
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter using the supplied Type
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
the possibly-null parameter value
value
,
Type
the Hibernate type
type
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a value to a JDBC-style query parameter.
public <P> QueryImplementor<R>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(String
the parameter name
name
,
Object
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public QueryImplementor<R>
setParameter(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Calendar to a Parameter object.
public QueryImplementor<R>
setParameter(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Date to a Parameter object.
public QueryImplementor<R>
setParameter(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Calendar to a named parameter.
public QueryImplementor<R>
setParameter(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Date to a named parameter.
public QueryImplementor<R>
setParameter(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Calendar to a positional parameter.
public QueryImplementor<R>
setParameter(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Implements org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind an instance of java.util.Date to a positional parameter.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P>
the parameter memento
parameter
,
Collection<P>
a collection of values to list
values
)

Implements org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind multiple values to a query parameter using its inferred Type.
public QueryImplementor<R>
setParameterList(String
the name of the parameter
name
,
Collection<E>
a collection of values to list
values
)

Implements org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public QueryImplementor<R>
setParameterList(int position, Collection<E> values)

Implements org.hibernate.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
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
)

Implements org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public QueryImplementor<R>
setParameterList(int position, Collection<E> values, Type type)

Implements org.hibernate.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
,
Type
the Hibernate type of the values
type
)

Implements org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public QueryImplementor<R>
setParameterList(int position, Object[] values, Type type)

Implements org.hibernate.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
)

Implements org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public QueryImplementor<R>
setParameterList(int position, Object[] values)

Implements org.hibernate.Query.setParameterList.

Deprecated as a consequence of QueryImplementor being deprecated.
public QueryImplementor<R>
setProperties(Object
any JavaBean or POJO
bean
)

Implements org.hibernate.query.Query.setProperties.

Deprecated as a consequence of QueryImplementor being deprecated.
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.
public QueryImplementor<R>
setProperties(Map<K, V>
a java.util.Map
map
)

Implements org.hibernate.query.Query.setProperties.

Deprecated as a consequence of QueryImplementor being deprecated.
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.
public QueryImplementor<R>
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 mode
readOnly
)

Implements org.hibernate.query.Query.setReadOnly.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the read-only/modifiable mode for entities and proxies loaded by this Query.
public QueryImplementor<R>
setResultTransformer(ResultTransformer
The transformer to apply
transformer
)

Implements org.hibernate.query.Query.setResultTransformer.

Deprecated as a consequence of QueryImplementor being deprecated.
Set a strategy for handling the query results.
public QueryImplementor<R>
setTimeout(int
the timeout in seconds
timeout
)

Implements org.hibernate.query.Query.setTimeout.

Deprecated as a consequence of QueryImplementor being deprecated.
Set the query timeout in seconds.
public Stream<R>
stream()

Implements org.hibernate.query.Query.stream.

Retrieve a Stream over the query results.
public static <R> R
public R
uniqueResult()

Implements org.hibernate.query.Query.uniqueResult.

Convenience method to return a single instance that matches the query, or null if the query returns no results.
public Optional<R>
public <T> T
unwrap(Class<T>
the class of the object to be returned. This is normally either the underlying query implementation class or an interface that it implements.
cls
)

Implements javax.persistence.Query.unwrap.

Return an object of the specified type to allow access to the provider-specific API.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait