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

public Interface RenderingContext

Imports
javax.persistence.criteria.ParameterExpression, org.hibernate.dialect.Dialect, org.hibernate.internal.util.collections.Stack, org.hibernate.query.criteria.LiteralHandlingMode, org.hibernate.query.criteria.internal.expression.function.FunctionExpression, org.hibernate.sql.ast.Clause

Used to provide a context and services to the rendering.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The generated correlation name
generateAlias
()

Generate a correlation name.

public String

Returns:

The cast type name.
getCastType
(Class<T>
The java type.
javaType
)

Given a java type, determine the proper cast type name.

public Stack<Clause>
public default LiteralHandlingMode

Returns:

literal handling strategy
getCriteriaLiteralHandlingMode
()

How literals are going to be handled.

public Dialect

Returns:

Dialect
getDialect
()

Current Dialect.

public Stack<FunctionExpression<T>>
public ExplicitParameterInfo<T>

Returns:

The JPA-QL parameter name
registerExplicitParameter
(ParameterExpression<?>
The parameter expression
criteriaQueryParameter
)

Register parameters explicitly encountered in the criteria query.

public String

Returns:

The JPA-QL parameter name
registerLiteralParameterBinding
(Object
The literal value
literal
,
Class<T>
The java type as which to handle the literal value.
javaType
)

Register a parameter that was not part of the criteria query (at least not as a parameter).

Method Detail

generateAliasback to summary
public String generateAlias()

Generate a correlation name.

Returns:String

The generated correlation name

getCastTypeback to summary
public String getCastType(Class<T> javaType)

Given a java type, determine the proper cast type name.

Parameters
javaType:Class<T>

The java type.

Returns:String

The cast type name.

getClauseStackback to summary
public Stack<Clause> getClauseStack()
getCriteriaLiteralHandlingModeback to summary
public default LiteralHandlingMode getCriteriaLiteralHandlingMode()

How literals are going to be handled.

Returns:LiteralHandlingMode

literal handling strategy

getDialectback to summary
public Dialect getDialect()

Current Dialect.

Returns:Dialect

Dialect

getFunctionStackback to summary
public Stack<FunctionExpression<T>> getFunctionStack()
registerExplicitParameterback to summary
public ExplicitParameterInfo<T> registerExplicitParameter(ParameterExpression<?> criteriaQueryParameter)

Register parameters explicitly encountered in the criteria query.

Parameters
criteriaQueryParameter:ParameterExpression<?>

The parameter expression

Returns:ExplicitParameterInfo<T>

The JPA-QL parameter name

registerLiteralParameterBindingback to summary
public String registerLiteralParameterBinding(Object literal, Class<T> javaType)

Register a parameter that was not part of the criteria query (at least not as a parameter).

Parameters
literal:Object

The literal value

javaType:Class<T>

The java type as which to handle the literal value.

Returns:String

The JPA-QL parameter name