Top Methods
org.hibernate.query.spi

public Interface QueryImplementor<R>

extends Query<R>
Known Direct Subinterfaces
org.hibernate.query.sql.spi.NativeQueryImplementor, org.hibernate.procedure.spi.ProcedureCallImplementor, org.hibernate.query.hql.spi.SqmQueryImplementor
Known Direct Implementers
org.hibernate.query.spi.AbstractQuery
Annotations
@Incubating
Imports
java.io.Serializable, java.time.Instant, java.util.Calendar, .Collection, .Date, .Map, org.hibernate.Incubating, .ScrollMode, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.BindableType, .Query, .QueryParameter, .ResultListTransformer, .TupleTransformer, jakarta.persistence.Parameter, .TemporalType, org.hibernate.transform.ResultTransformer

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public QueryParameterBindings
public SharedSessionContractImplementor
getSession()

Redeclares org.hibernate.query.Query.getSession.

Get the QueryProducer which produced this Query, that is, the org.hibernate.Session or org.hibernate.StatelessSession that was used to create this Query instance.
public ScrollableResultsImplementor<R>
scroll()

Redeclares org.hibernate.query.Query.scroll.

Execute the query and return the results in a scrollable form.
public ScrollableResultsImplementor<R>
scroll(ScrollMode scrollMode)

Redeclares org.hibernate.query.Query.scroll.

Execute the query and return the results in a scrollable form.
public void
public void
public void
setOptionalObject(Object optionalObject)

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

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to a named query parameter.
public <P> QueryImplementor<R>
setParameter(String name, P value, Class<P> type)

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to a named query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameter(String name, P value, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to a named query parameter using the given BindableType.
public QueryImplementor<R>
setParameter(String name, Instant value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Bind an Instant value to the named query parameter using just the portion indicated by the given TemporalType.
public QueryImplementor<R>
setParameter(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameter(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameter(int
position
position
,
Object
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to an ordinal query parameter.
public <P> QueryImplementor<R>
setParameter(int position, P value, Class<P> type)

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameter(int position, P value, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameter.

Bind the given argument to an ordinal query parameter using the given BindableType.
public QueryImplementor<R>
setParameter(int position, Instant value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Bind an Instant value to the ordinal query parameter using just the portion indicated by the given TemporalType.
public QueryImplementor<R>
setParameter(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameter(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public <T> QueryImplementor<R>
setParameter(QueryParameter<T>
the query parameter memento
parameter
,
T
the argument, which might be null
value
)

Redeclares org.hibernate.query.Query.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter.
public <P> QueryImplementor<R>
setParameter(QueryParameter<P>
the query parameter memento
parameter
,
P
the argument, which might be null
value
,
Class<P>
a BindableType representing the type of the parameter
type
)

Redeclares org.hibernate.query.Query.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameter(QueryParameter<P>
the query parameter memento
parameter
,
P
the argument, which might be null
val
,
BindableType<P>
an BindableType representing the type of the parameter
type
)

Redeclares org.hibernate.query.Query.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter using the given BindableType.
public <T> QueryImplementor<R>
setParameter(Parameter<T>
parameter object
param
,
T
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameter(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameter(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter.

jakarta.persistence.Query override
public QueryImplementor<R>
setParameterList(String name, Collection<E> values)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter.
public <P> QueryImplementor<R>
setParameterList(String name, Collection<? extends P> values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(String name, Collection<? extends P> values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter using the given BindableType.
public QueryImplementor<R>
setParameterList(String name, Object[] values)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter.
public <P> QueryImplementor<R>
setParameterList(String name, P[] values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(String name, P[] values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to a named query parameter using the given BindableType.
public QueryImplementor<R>
setParameterList(int position, Collection<E> values)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter.
public <P> QueryImplementor<R>
setParameterList(int position, Collection<? extends P> values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(int position, Collection<? extends P> values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter using the given BindableType.
public QueryImplementor<R>
setParameterList(int position, Object[] values)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter.
public <P> QueryImplementor<R>
setParameterList(int position, P[] values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(int position, P[] values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to an ordinal query parameter using the given BindableType.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P>
the parameter memento
parameter
,
Collection<? extends P>
a collection of arguments
values
)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter, inferring the BindableType.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P>
the parameter memento
parameter
,
P[]
a collection of arguments
values
)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter using the given Class reference to attempt to determine the BindableType to use.
public <P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, P[] values, BindableType<P> type)

Redeclares org.hibernate.query.Query.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter, inferring the BindableType.
public QueryImplementor<R>
setProperties(Object
any JavaBean or POJO
bean
)

Redeclares org.hibernate.query.Query.setProperties.

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 Map of names to arguments
bean
)

Redeclares org.hibernate.query.Query.setProperties.

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>
public default <T> QueryImplementor<T>
public <T> QueryImplementor<T>
Inherited from org.hibernate.query.Query:
addQueryHintapplyFetchGraphapplyGraphapplyLoadGraphdisableFetchProfileenableFetchProfileexecuteUpdategetCommentgetLockOptionsgetParameterMetadatagetQueryOptionsgetQueryStringgetResultListgetResultStreamgetSingleResultlistsetCacheablesetCacheModesetCacheRegionsetCacheRetrieveModesetCacheStoreModesetCommentsetEntityGraphsetFetchSizesetFirstResultsetFlushModesetHibernateFlushModesetHintsetLockModesetLockModesetLockOptionssetMaxResultssetOrdersetOrdersetPagesetReadOnlysetTimeoutstreamuniqueResultuniqueResultOptional