Top Description Methods
org.hibernate.query.hql

public Interface HqlTranslator

Known Direct Implementers
org.hibernate.query.hql.internal.StandardHqlTranslator
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.spi.QueryEngine, org.hibernate.query.sqm.tree.SqmStatement

Main entry point into building semantic queries.
Author
Steve Ebersole
See Also
SessionFactoryImplementor#getQueryEngine(), QueryEngine#getHqlTranslator()

Method Summary

Modifier and TypeMethod and Description
public <R> SqmStatement<R>

Returns:

The semantic representation of the incoming query.
translate
(String
The HQL/JPQL query string to interpret
hql
,
Class<R>
The type specified when creating the query
expectedResultType
)

Performs the interpretation of a HQL/JPQL query string to SQM.

Method Detail

translateback to summary
public <R> SqmStatement<R> translate(String hql, Class<R> expectedResultType)

Performs the interpretation of a HQL/JPQL query string to SQM.

Parameters
hql:String

The HQL/JPQL query string to interpret

expectedResultType:Class<R>

The type specified when creating the query

Returns:SqmStatement<R>

The semantic representation of the incoming query.