Top Methods
org.hibernate.query.spi

public Interface NativeQueryImplementor<T>

extends QueryImplementor<T>, NativeQuery<T>
Known Direct Implementers
org.hibernate.query.internal.NativeQueryImpl
Annotations
@Incubating
Imports
java.io.Serializable, java.util.Calendar, .Collection, .Date, .Map, javax.persistence.Parameter, .TemporalType, org.hibernate.CacheMode, .FlushMode, .Incubating, .LockMode, .LockOptions, .MappingException, org.hibernate.query.NativeQuery, .QueryParameter, org.hibernate.type.Type

Deprecated

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

Author
Steve Ebersole

Method Summary

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

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
entityType
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.addEntity.

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

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.addQueryHint, org.hibernate.query.NativeQuery.addQueryHint.

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

Redeclares 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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.NativeQuery.addSynchronizedQuerySpace.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Adds a query space.
public NativeQueryImplementor<T>
setCacheable(boolean
Should the query results be cacheable?
cacheable
)

Redeclares org.hibernate.query.Query.setCacheable, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setCacheMode, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setCacheRegion, org.hibernate.query.NativeQuery.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>
setCollectionKey(Serializable key)

Deprecated as a consequence of NativeQueryImplementor being deprecated.
public NativeQueryImplementor<T>
setComment(String
The human-readable comment
comment
)

Redeclares org.hibernate.query.Query.setComment, org.hibernate.query.NativeQuery.setComment.

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

Redeclares org.hibernate.query.Query.setFetchSize, org.hibernate.query.NativeQuery.setFetchSize.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Sets a JDBC fetch size hint for the query.
public NativeQueryImplementor<T>
setFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Redeclares org.hibernate.query.NativeQuery.setFlushMode.

Redeclares as abstract: org.hibernate.query.Query.setFlushMode.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
(Re)set the current FlushMode in effect for this query.
public NativeQueryImplementor<T>
setHibernateFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Redeclares org.hibernate.query.Query.setHibernateFlushMode, org.hibernate.query.NativeQuery.setHibernateFlushMode.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
(Re)set the current FlushMode in effect for this query.
public NativeQueryImplementor<T>
setLockMode(String
a query alias, or "this" for a collection filter
alias
,
LockMode
The lock mode to apply.
lockMode
)

Redeclares org.hibernate.query.Query.setLockMode, org.hibernate.query.NativeQuery.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>
setLockOptions(LockOptions
The lock options to apply to the query.
lockOptions
)

Redeclares org.hibernate.query.Query.setLockOptions, org.hibernate.query.NativeQuery.setLockOptions.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the lock options for the query.
public <P> NativeQueryImplementor<T>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
val
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
param
,
P
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
val
)

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

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

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

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind a query parameter using the supplied Type
public NativeQueryImplementor<T>
setParameter(int
position
position
,
Object
parameter value
val
)

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

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

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
val
,
Type
the Hibernate type
type
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares 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
,
Object
the possibly-null parameter value
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares 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<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

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

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

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

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

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

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

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

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

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.query.NativeQuery.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
)

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

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

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.query.NativeQuery.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
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.query.NativeQuery.setParameterList.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Bind multiple values to a named query parameter.
public NativeQueryImplementor<T>
setProperties(Object
any JavaBean or POJO
bean
)

Redeclares org.hibernate.query.Query.setProperties, org.hibernate.query.NativeQuery.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>
setProperties(Map<K, V>
a java.util.Map
bean
)

Redeclares org.hibernate.query.Query.setProperties, org.hibernate.query.NativeQuery.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>
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
)

Redeclares org.hibernate.query.Query.setReadOnly, org.hibernate.query.NativeQuery.setReadOnly.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the read-only/modifiable mode for entities and proxies loaded by this Query.
public NativeQueryImplementor<T>
setTimeout(int
the timeout in seconds
timeout
)

Redeclares org.hibernate.query.Query.setTimeout, org.hibernate.query.NativeQuery.setTimeout.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Set the query timeout in seconds.
Inherited from org.hibernate.query.NativeQuery:
addFetchaddRootisCallablesetFirstResultsetFlushModesetHintsetLockModesetMaxResultssetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetResultSetMapping
Inherited from org.hibernate.query.spi.QueryImplementor:
getProducersetOptionalEntityNamesetOptionalIdsetOptionalObject