Top Description Methods
org.hibernate.engine.query.spi

public Interface NativeQueryInterpreter

extends Service
Known Direct Implementers
org.hibernate.engine.query.internal.NativeQueryInterpreterStandardImpl
Imports
org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.loader.custom.CustomLoader, .CustomQuery, org.hibernate.query.internal.ParameterMetadataImpl, org.hibernate.service.Service

Service contract for dealing with native queries.
Authors
Steve Ebersole, Gunnar Morling, Guillaume Smet

Method Summary

Modifier and TypeMethod and Description
public default CustomLoader
createCustomLoader(CustomQuery
The CustomQuery to create a loader for
customQuery
,
SessionFactoryImplementor
The current session factory
sessionFactory
)

Deprecated This method will be removed in 6.
Creates a CustomLoader for the given CustomQuery.
public NativeSQLQueryPlan

Returns:

A query plan for the specified native query.
createQueryPlan
(NativeSQLQuerySpecification
Describes the query to create a plan for
specification
,
SessionFactoryImplementor
The current session factory
sessionFactory
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Creates a new query plan for the specified native query.
public ParameterMetadataImpl

Returns:

a meta-data object describing the parameters of the given query. Must not be null.
getParameterMetadata
(String
the native query to analyze.
nativeQuery
)

Returns a meta-data object with information about the named and ordinal parameters contained in the given native query.

Method Detail

createCustomLoaderback to summary
public default CustomLoader createCustomLoader(CustomQuery customQuery, SessionFactoryImplementor sessionFactory)

Deprecated

This method will be removed in 6.

Creates a CustomLoader for the given CustomQuery.

Parameters
customQuery:CustomQuery

The CustomQuery to create a loader for

sessionFactory:SessionFactoryImplementor

The current session factory

Annotations
@Deprecated
createQueryPlanback to summary
public NativeSQLQueryPlan createQueryPlan(NativeSQLQuerySpecification specification, SessionFactoryImplementor sessionFactory)

Deprecated

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

Creates a new query plan for the specified native query.

Parameters
specification:NativeSQLQuerySpecification

Describes the query to create a plan for

sessionFactory:SessionFactoryImplementor

The current session factory

Returns:NativeSQLQueryPlan

A query plan for the specified native query.

getParameterMetadataback to summary
public ParameterMetadataImpl getParameterMetadata(String nativeQuery)

Returns a meta-data object with information about the named and ordinal parameters contained in the given native query.

Parameters
nativeQuery:String

the native query to analyze.

Returns:ParameterMetadataImpl

a meta-data object describing the parameters of the given query. Must not be null.