Top Description Methods
org.hibernate.query.spi

public Interface QueryProducerImplementor

extends QueryProducer
Known Direct Subinterfaces
org.hibernate.engine.spi.SharedSessionContractImplementor
Imports
org.hibernate.CacheMode, .FlushMode, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.Query, .QueryProducer

The internal contract for QueryProducer implementations. Acts as the value passed to produced queries and provides them with access to needed functionality.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Query<R>
createNamedQuery(String
the name of a pre-defined, named query
name
)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery.

Deprecated as a consequence of Query being deprecated.
The JPA-defined named query creation method.
public <R> QueryImplementor<R>
createNamedQuery(String
the name of a query defined in metadata
name
,
Class<R>
the type of the query result
resultClass
)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
The JPA-defined named, typed query creation method.
public NativeQueryImplementor<T>
createNativeQuery(String
a native SQL query string
sqlString
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create a NativeQuery instance for the given native (SQL) query
public NativeQueryImplementor<T>
createNativeQuery(String
Native (SQL) query string
sqlString
,
Class<T>
The Java entity type to map results to
resultClass
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
public NativeQueryImplementor<T>
createNativeQuery(String
Native (SQL) query string
sqlString
,
String
The explicit (named) result mapping
resultSetMapping
)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
public QueryImplementor<R>
createQuery(String
The HQL/JPQL query
queryString
)

Redeclares org.hibernate.query.QueryProducer.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create a Query instance for the given HQL/JPQL query string.
public <R> QueryImplementor<R>
createQuery(String
The HQL/JPQL query
queryString
,
Class<R>
The type of the query result
resultClass
)

Redeclares org.hibernate.query.QueryProducer.createQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create a typed Query instance for the given HQL/JPQL query string.
public default NativeQueryImplementor<T>
createSQLQuery(String
The SQL query
queryString
)

Overrides default org.hibernate.query.QueryProducer.createSQLQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Create a NativeQuery instance for the given SQL query string.
public CacheMode
public SessionFactoryImplementor
getFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public FlushMode
public NativeQueryImplementor<T>
getNamedNativeQuery(String
The name of the pre-defined query
name
)

Redeclares org.hibernate.query.QueryProducer.getNamedNativeQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Get a NativeQuery instance for a named native SQL query
public QueryImplementor<R>
getNamedQuery(String
the name of a pre-defined, named query
queryName
)

Redeclares org.hibernate.query.QueryProducer.getNamedQuery.

Deprecated as a consequence of QueryImplementor being deprecated.
Create a Query instance for the named query.
public default NativeQueryImplementor<T>
getNamedSQLQuery(String
The name of the pre-defined query
name
)

Overrides default org.hibernate.query.QueryProducer.getNamedSQLQuery.

Deprecated as a consequence of NativeQueryImplementor being deprecated.
Get a NativeQuery instance for a named native SQL query
Inherited from org.hibernate.query.QueryProducer:
createQuerycreateQuerycreateQuery

Method Detail

createNamedQueryback to summary
public Query<R> createNamedQuery(String name)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery.

Doc from org.hibernate.query.QueryProducer.createNamedQuery.

Deprecated

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

The JPA-defined named query creation method. This form can represent an HQL/JPQL query or a native query.

Parameters
name:String

the name of a pre-defined, named query

Returns:Query<R>

The Query instance for manipulation and execution

Annotations
@Override
createNamedQueryback to summary
public <R> QueryImplementor<R> createNamedQuery(String name, Class<R> resultClass)

Redeclares org.hibernate.query.QueryProducer.createNamedQuery.

Doc from org.hibernate.query.QueryProducer.createNamedQuery.

Deprecated

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

The JPA-defined named, typed query creation method. This form can only represent an HQL/JPQL query (not a native query).

Parameters
name:String

the name of a query defined in metadata

resultClass:Class<R>

the type of the query result

Returns:QueryImplementor<R>

The Query instance for manipulation and execution

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Doc from org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated

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

Create a NativeQuery instance for the given native (SQL) query

Parameters
sqlString:String

a native SQL query string

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString, Class<T> resultClass)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Doc from org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated

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

Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.

Parameters
sqlString:String

Native (SQL) query string

resultClass:Class<T>

The Java entity type to map results to

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
createNativeQueryback to summary
public NativeQueryImplementor<T> createNativeQuery(String sqlString, String resultSetMapping)

Redeclares org.hibernate.query.QueryProducer.createNativeQuery.

Doc from org.hibernate.query.QueryProducer.createNativeQuery.

Deprecated

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

Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.

Parameters
sqlString:String

Native (SQL) query string

resultSetMapping:String

The explicit (named) result mapping

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
createQueryback to summary
public QueryImplementor<R> createQuery(String queryString)

Redeclares org.hibernate.query.QueryProducer.createQuery.

Doc from org.hibernate.query.QueryProducer.createQuery.

Deprecated

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

Create a Query instance for the given HQL/JPQL query string.

Parameters
queryString:String

The HQL/JPQL query

Returns:QueryImplementor<R>

The Query instance for manipulation and execution

Annotations
@Override
createQueryback to summary
public <R> QueryImplementor<R> createQuery(String queryString, Class<R> resultClass)

Redeclares org.hibernate.query.QueryProducer.createQuery.

Doc from org.hibernate.query.QueryProducer.createQuery.

Deprecated

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

Create a typed Query instance for the given HQL/JPQL query string.

Parameters
queryString:String

The HQL/JPQL query

resultClass:Class<R>

The type of the query result

Returns:QueryImplementor<R>

The Query instance for manipulation and execution

Annotations
@Override
createSQLQueryback to summary
public default NativeQueryImplementor<T> createSQLQuery(String queryString)

Overrides default org.hibernate.query.QueryProducer.createSQLQuery.

Doc from org.hibernate.query.QueryProducer.createSQLQuery.

Deprecated

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

Create a NativeQuery instance for the given SQL query string.

Parameters
queryString:String

The SQL query

Returns:NativeQueryImplementor<T>

The query instance for manipulation and execution

Annotations
@Override
getCacheModeback to summary
public CacheMode getCacheMode()
getFactoryback to summary
public SessionFactoryImplementor getFactory()

Deprecated

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

getHibernateFlushModeback to summary
public FlushMode getHibernateFlushMode()
getNamedNativeQueryback to summary
public NativeQueryImplementor<T> getNamedNativeQuery(String name)

Redeclares org.hibernate.query.QueryProducer.getNamedNativeQuery.

Doc from org.hibernate.query.QueryProducer.getNamedNativeQuery.

Deprecated

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

Get a NativeQuery instance for a named native SQL query

Parameters
name:String

The name of the pre-defined query

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override
getNamedQueryback to summary
public QueryImplementor<R> getNamedQuery(String queryName)

Redeclares org.hibernate.query.QueryProducer.getNamedQuery.

Doc from org.hibernate.query.QueryProducer.getNamedQuery.

Deprecated

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

Create a Query instance for the named query.

Parameters
queryName:String

the name of a pre-defined, named query

Returns:QueryImplementor<R>

The Query instance for manipulation and execution

Annotations
@Override
getNamedSQLQueryback to summary
public default NativeQueryImplementor<T> getNamedSQLQuery(String name)

Overrides default org.hibernate.query.QueryProducer.getNamedSQLQuery.

Doc from org.hibernate.query.QueryProducer.getNamedSQLQuery.

Deprecated

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

Get a NativeQuery instance for a named native SQL query

Parameters
name:String

The name of the pre-defined query

Returns:NativeQueryImplementor<T>

The NativeQuery instance for manipulation and execution

Annotations
@Override