Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal.compile

public Class CriteriaCompiler

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .HashMap, .List, .Map, javax.persistence.Parameter, .TypedQuery, javax.persistence.criteria.ParameterExpression, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.Stack, .StandardStack, org.hibernate.query.criteria.LiteralHandlingMode, org.hibernate.query.criteria.internal.expression.ParameterExpressionImpl, org.hibernate.query.criteria.internal.expression.function.FunctionExpression, org.hibernate.query.spi.QueryImplementor, org.hibernate.sql.ast.Clause, org.hibernate.type.Type

Compiles a JPA criteria query into an executable TypedQuery. Its single contract is the compile method.

NOTE : This is a temporary implementation which simply translates the criteria query into a JPAQL query string. A better, long-term solution is being implemented as part of refactoring the JPAQL/HQL translator.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final SharedSessionContractImplementor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public QueryImplementor<R>
compile(CompilableCriteria criteria)

Deprecated as a consequence of QueryImplementor being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityManagerback to summary
private final SharedSessionContractImplementor entityManager

Constructor Detail

CriteriaCompilerback to summary
public CriteriaCompiler(SharedSessionContractImplementor entityManager)

Method Detail

compileback to summary
public QueryImplementor<R> compile(CompilableCriteria criteria)

Deprecated

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