Top Fields Constructors Methods
org.hibernate.query.internal

public Class NativeQueryImpl<T>

extends AbstractProducedQuery<T>
implements NativeQueryImplementor<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.NativeQueryImplementor, org.hibernate.query.NativeQuery, org.hibernate.SynchronizeableQuery, org.hibernate.SQLQuery, org.hibernate.Query, org.hibernate.query.CommonQueryContract, org.hibernate.BasicQueryContract, javax.persistence.TypedQuery, javax.persistence.Query, org.hibernate.query.Query, org.hibernate.query.spi.QueryImplementor
Imports
java.io.Serializable, java.time.Instant, .LocalDateTime, .OffsetDateTime, .ZonedDateTime, java.util.ArrayList, .Arrays, .Calendar, .Collection, .Date, .Iterator, .List, .Map, .StringTokenizer, javax.persistence.FlushModeType, .LockModeType, .Parameter, .TemporalType, org.hibernate.CacheMode, .FlushMode, .HibernateException, .LockMode, .LockOptions, .MappingException, .QueryException, .ScrollMode, .SynchronizeableQuery, org.hibernate.engine.ResultSetMappingDefinition, org.hibernate.engine.query.spi.EntityGraphQueryHint, org.hibernate.engine.query.spi.sql.NativeSQLQueryConstructorReturn, .NativeSQLQueryReturn, .NativeSQLQueryScalarReturn, .NativeSQLQuerySpecification, org.hibernate.engine.spi.NamedSQLQueryDefinition, .QueryParameters, .SharedSessionContractImplementor, org.hibernate.graph.GraphSemantic, .RootGraph, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.jpa.internal.util.LockModeTypeHelper, org.hibernate.query.NativeQuery, .ParameterMetadata, .Query, .QueryParameter, org.hibernate.query.spi.NativeQueryImplementor, .QueryParameterBindings, .ScrollableResultsImplementor, org.hibernate.transform.ResultTransformer, org.hibernate.type.Type

Deprecated

as a consequence of AbstractProducedQuery and NativeQueryImplementor being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private final boolean
private Serializable
private final LockOptions
private final QueryParameterBindingsImpl
private List<NativeQueryReturnBuilder>
private List<NativeSQLQueryReturn>
private Collection<String>
private final String

Constructor Summary

AccessConstructor and Description
public
NativeQueryImpl(NamedSQLQueryDefinition
The representation of the defined .
queryDef
,
SharedSessionContractImplementor
The session to which this NativeQuery belongs.
session
,
ParameterMetadata
Metadata about parameters found in the query.
parameterMetadata
)

Constructs a NativeQueryImpl given a sql query defined in the mappings.

public
NativeQueryImpl(String sqlString, boolean callable, SharedSessionContractImplementor session, ParameterMetadata sqlParameterMetadata)

Method Summary

Modifier and TypeMethod and Description
public NativeQueryImplementor<T>
addEntity(String
The entity name that is the root return of the query.
entityName
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity, without specifying an alias.
public NativeQueryImplementor<T>
addEntity(String
The SQL table alias
tableAlias
,
String
The entity name
entityName
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity.
public NativeQueryImplementor<T>
addEntity(String
The SQL table alias
tableAlias
,
String
The entity name
entityName
,
LockMode
The lock mode for this return.
lockMode
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity, specifying a lock mode.
public NativeQueryImplementor<T>
addEntity(Class<T>
The java type of the entity to add as a root
entityType
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity, without specifying an alias.
public NativeQueryImplementor<T>
addEntity(String
The SQL table alias
tableAlias
,
Class<T>
The java type of the entity to add as a root
entityClass
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity.
public NativeQueryImplementor<T>
addEntity(String
The SQL table alias
tableAlias
,
Class<T>
The entity Class
entityClass
,
LockMode
The lock mode for this return.
lockMode
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a "root" entity, specifying a lock mode.
public SQLQuery.FetchReturn
addFetch(String
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
)

Implements org.hibernate.query.NativeQuery.addFetch.

Declare a join fetch result.
public NativeQueryImplementor<T>
addJoin(String
The SQL table alias for the data to be mapped to this fetch
tableAlias
,
String
The association path ([owner-alias].[property-name]).
path
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addJoin.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a join fetch result.
public NativeQueryImplementor<T>
addJoin(String
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
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addJoin.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a join fetch result.
public NativeQueryImplementor<T>
addJoin(String
The 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
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addJoin.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a join fetch result, specifying a lock mode.
public NativeQueryImplementor<T>
addQueryHint(String
The database specific query hint to add.
hint
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.addQueryHint.

Implements org.hibernate.query.spi.NativeQueryImplementor.addQueryHint, org.hibernate.query.Query.addQueryHint.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Add a DB query hint to the SQL.
protected void
protected void
protected void
public SQLQuery.RootReturn
addRoot(String
The SQL table alias to map to this entity
tableAlias
,
String
The name of the entity.
entityName
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addRoot.

Add a new root return mapping, returning a SQLQuery.RootReturn to allow further definition.
public SQLQuery.RootReturn
addRoot(String
The SQL table alias to map to this entity
tableAlias
,
Class<T>
The java type of the entity.
entityType
)

Implements org.hibernate.query.NativeQuery.addRoot.

Add a new root return mapping, returning a SQLQuery.RootReturn to allow further definition.
public NativeQueryImplementor<T>
addScalar(String
The column alias in the result-set to be processed as a scalar result
columnAlias
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addScalar.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a scalar query result.
public NativeQueryImplementor<T>
addScalar(String
The column alias in the result-set to be processed as a scalar result
columnAlias
,
Type
The Hibernate type as which to treat the value.
type
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addScalar.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Declare a scalar query result.
public NativeQueryImplementor<T>
addSynchronizedEntityClass(Class<T>
The class of the entity upon whose defined query spaces we should additionally synchronize.
entityClass
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addSynchronizedEntityClass.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
public NativeQueryImplementor<T>
addSynchronizedEntityName(String
The name of the entity upon whose defined query spaces we should additionally synchronize.
entityName
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addSynchronizedEntityName.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
public NativeQueryImplementor<T>
addSynchronizedQuerySpace(String
The query space to be auto-flushed for this query.
querySpace
)

Implements org.hibernate.query.spi.NativeQueryImplementor.addSynchronizedQuerySpace.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Adds a query space.
public SynchronizeableQuery<T>
addSynchronizedQuerySpace(String... querySpaces)

Overrides default org.hibernate.SynchronizeableQuery.addSynchronizedQuerySpace.

Adds one-or-more synchronized spaces
protected void
applyEntityGraphQueryHint(EntityGraphQueryHint
The entity graph hint object
hint
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.applyEntityGraphQueryHint.

Used from HEM code as a (hopefully temporary) means to apply a custom query plan in regards to a JPA entity graph.
public Query<T>
applyGraph(RootGraph<J>
The graph the apply.
graph
,
GraphSemantic
The semantic to use when applying the graph
semantic
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.applyGraph.

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 void
protected void
private SQLQuery.FetchReturn
createFetchJoin(String tableAlias, String path)

protected int
protected List<T>
protected ScrollableResultsImplementor
private NativeSQLQuerySpecification
protected QueryParameterBindings
public QueryParameters
public List<NativeSQLQueryReturn>
getQueryReturns()

Implements org.hibernate.SQLQuery.getQueryReturns.

Retrieve the returns associated with this query.
public String
public String[]
public Type[]
getReturnTypes()

Implements org.hibernate.Query.getReturnTypes, org.hibernate.BasicQueryContract.getReturnTypes.

Return the Hibernate types of the query results.
public Collection<String>
getSynchronizedQuerySpaces()

Implements org.hibernate.SynchronizeableQuery.getSynchronizedQuerySpaces.

Obtain the list of query spaces the query is synchronized on.
public boolean
protected boolean
isNativeQuery()

Implements abstract org.hibernate.query.internal.AbstractProducedQuery.isNativeQuery.

Is the query represented here a native (SQL) query?
public Iterator<T>
iterate()

Overrides org.hibernate.query.internal.AbstractProducedQuery.iterate.

Implements org.hibernate.Query.iterate.

Return the query results as an Iterator.
private void
public NativeQueryImplementor<T>
setCacheable(boolean
Should the query results be cacheable?
cacheable
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setCacheable.

Implements org.hibernate.query.spi.NativeQueryImplementor.setCacheable, org.hibernate.query.Query.setCacheable.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setCacheMode.

Implements org.hibernate.query.spi.NativeQueryImplementor.setCacheMode, org.hibernate.query.Query.setCacheMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setCacheRegion.

Implements org.hibernate.query.spi.NativeQueryImplementor.setCacheRegion, org.hibernate.query.Query.setCacheRegion.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setComment.

Implements org.hibernate.query.spi.NativeQueryImplementor.setComment, org.hibernate.query.Query.setComment.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the comment for this query.
public NativeQueryImplementor<T>
setEntity(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
a non-null instance of a persistent class
val
)

Implements org.hibernate.query.Query.setEntity, org.hibernate.Query.setEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
public NativeQueryImplementor<T>
setEntity(String
the name of the parameter
name
,
Object
a non-null instance of a persistent class
val
)

Implements org.hibernate.query.Query.setEntity, org.hibernate.Query.setEntity.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind an instance of a mapped persistent class to a named query parameter.
public NativeQueryImplementor<T>
setFetchSize(int
the fetch size hint
fetchSize
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setFetchSize.

Implements org.hibernate.query.spi.NativeQueryImplementor.setFetchSize, org.hibernate.query.Query.setFetchSize.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setFirstResult.

Implements org.hibernate.query.Query.setFirstResult, org.hibernate.query.NativeQuery.setFirstResult.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setFlushMode.

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

Implements org.hibernate.query.spi.NativeQueryImplementor.setFlushMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setFlushMode.

Implements org.hibernate.query.Query.setFlushMode, org.hibernate.query.NativeQuery.setFlushMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setHibernateFlushMode.

Implements org.hibernate.query.spi.NativeQueryImplementor.setHibernateFlushMode, org.hibernate.query.Query.setHibernateFlushMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setHint.

Implements org.hibernate.query.Query.setHint, org.hibernate.query.NativeQuery.setHint.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setLockMode.

Implements org.hibernate.query.spi.NativeQueryImplementor.setLockMode, org.hibernate.query.Query.setLockMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setLockMode.

Implements org.hibernate.query.Query.setLockMode, org.hibernate.query.NativeQuery.setLockMode.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setLockOptions.

Implements org.hibernate.query.spi.NativeQueryImplementor.setLockOptions, org.hibernate.query.Query.setLockOptions.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setMaxResults.

Implements org.hibernate.query.Query.setMaxResults, org.hibernate.query.NativeQuery.setMaxResults.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the maximum number of results to retrieve.
public NativeQueryImplementor<T>
setParameter(QueryParameter<T>
The query parameter memento
parameter
,
Object
the possibly-null parameter value
value
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind the value of a Parameter object.
public NativeQueryImplementor<T>
setParameter(String
parameter name
name
,
Object
parameter value
value
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter using the supplied Type
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a value to a JDBC-style query parameter.
public <P> NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
public NativeQueryImplementor<T>
public NativeQueryImplementor<T>
public NativeQueryImplementor<T>
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameter.

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

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameterList.

Implements org.hibernate.query.spi.NativeQueryImplementor.setParameterList, org.hibernate.query.Query.setParameterList.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameterList.

Implements org.hibernate.query.spi.NativeQueryImplementor.setParameterList, org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameterList.

Implements org.hibernate.query.spi.NativeQueryImplementor.setParameterList, org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public NativeQueryImplementor<T>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
,
Type
the Hibernate type of the values
type
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameterList.

Implements org.hibernate.query.spi.NativeQueryImplementor.setParameterList, org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public NativeQueryImplementor<T>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setParameterList.

Implements org.hibernate.query.spi.NativeQueryImplementor.setParameterList, org.hibernate.query.Query.setParameterList.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public NativeQueryImplementor<T>
setProperties(Map<K, V>
a java.util.Map
map
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setProperties.

Implements org.hibernate.query.spi.NativeQueryImplementor.setProperties, org.hibernate.query.Query.setProperties.

Deprecated as a consequence of NativeQueryImplementor 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 NativeQueryImplementor<T>
setProperties(Object
any JavaBean or POJO
bean
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setProperties.

Implements org.hibernate.query.spi.NativeQueryImplementor.setProperties, org.hibernate.query.Query.setProperties.

Deprecated as a consequence of NativeQueryImplementor 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 NativeQueryImplementor<T>
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
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setReadOnly.

Implements org.hibernate.query.spi.NativeQueryImplementor.setReadOnly, org.hibernate.query.Query.setReadOnly.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the read-only/modifiable mode for entities and proxies loaded by this Query.
public NativeQuery<T>
setResultSetMapping(String
The name of the mapping to use.
name
)

Implements org.hibernate.query.NativeQuery.setResultSetMapping.

Deprecated as a consequence of NativeQuery being deprecated.
Use a predefined named result-set mapping.
public NativeQueryImplementor<T>
setResultTransformer(ResultTransformer
The transformer to apply
transformer
)

Overrides org.hibernate.query.internal.AbstractProducedQuery.setResultTransformer.

Implements org.hibernate.query.Query.setResultTransformer, org.hibernate.Query.setResultTransformer.

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

Overrides org.hibernate.query.internal.AbstractProducedQuery.setTimeout.

Implements org.hibernate.query.spi.NativeQueryImplementor.setTimeout, org.hibernate.query.Query.setTimeout.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the query timeout in seconds.
private boolean
Inherited from org.hibernate.query.internal.AbstractProducedQuery:
afterQueryappendQueryPlanToQueryParametersapplyAliasSpecificLockModeHintapplyCacheableHintapplyCacheModeHintapplyCacheRegionHintapplyCommentHintapplyFetchSizeHintapplyFlushModeHintapplyFollowOnLockingHintapplyHibernateLockModeHintapplyJpaCacheRetrieveModeapplyJpaCacheStoreModeapplyLockModeTypeHintapplyLockTimeoutHintapplyPassDistinctThroughapplyReadOnlyHintapplyTimeoutHintcanApplyAliasSpecificLockModeHintscollectBaselineHintsdetermineProperBooleanTypedetermineProperBooleanTypedetermineTypedoIterateexecuteUpdategetCacheModegetCacheRegiongetCommentgetExceptionConvertergetFetchSizegetFirstResultgetFlushModegetHibernateFlushModegetHintsgetLockModegetLockOptionsgetMaxResultsgetNamedParameterMapgetNamedParametersgetParametergetParametergetParametergetParametergetParameterMetadatagetParametersgetParameterValuegetParameterValuegetParameterValuegetPositionalParameterTypesgetPositionalParameterValuesgetProducergetQueryOptionsgetSingleResultgetSupportedHintsgetTimeouthandleUnrecognizedHintisBoundisCacheableisReadOnlyisSelectlistmakeQueryParametersForExecutionputIfNotNullputIfNotNullresolveEntityNamescrollscrollsetOptionalEntityNamesetOptionalIdsetOptionalObjectsetParameterListsetParameterListsetParameterListsetParameterListstreamuniqueElementuniqueResultuniqueResultOptionalunwrap