org.hibernate.ejb.criteria
Interface CriteriaQueryCompiler.RenderingContext

Enclosing class:
CriteriaQueryCompiler

public static interface CriteriaQueryCompiler.RenderingContext

Used to provide a context and services to the rendering.


Method Summary
 java.lang.String generateAlias()
          Generate a correlation name.
 java.lang.String getCastType(java.lang.Class javaType)
          Given a java type, determine the proper cast type name.
 java.lang.String registerExplicitParameter(javax.persistence.criteria.ParameterExpression<?> criteriaQueryParameter)
          Register parameters explicitly encountered in the criteria query.
 java.lang.String registerLiteralParameterBinding(java.lang.Object literal, java.lang.Class javaType)
          Register a parameter that was not part of the criteria query (at least not as a parameter).
 

Method Detail

generateAlias

java.lang.String generateAlias()
Generate a correlation name.

Returns:
The generated correlation name

registerExplicitParameter

java.lang.String registerExplicitParameter(javax.persistence.criteria.ParameterExpression<?> criteriaQueryParameter)
Register parameters explicitly encountered in the criteria query.

Parameters:
criteriaQueryParameter - The parameter expression
Returns:
The JPA-QL parameter name

registerLiteralParameterBinding

java.lang.String registerLiteralParameterBinding(java.lang.Object literal,
                                                 java.lang.Class javaType)
Register a parameter that was not part of the criteria query (at least not as a parameter).

Parameters:
literal - The literal value
javaType - The java type as whcih to handle the literal value.
Returns:
The JPA-QL parameter name

getCastType

java.lang.String getCastType(java.lang.Class javaType)
Given a java type, determine the proper cast type name.

Parameters:
javaType - The java type.
Returns:
The cast type name.


Copyright © 2012. All Rights Reserved.