接口 RenderingContext
-
public interface RenderingContextUsed to provide a context and services to the rendering.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 StringgenerateAlias()Generate a correlation name.StringgetCastType(Class javaType)Given a java type, determine the proper cast type name.Stack<Clause>getClauseStack()default LiteralHandlingModegetCriteriaLiteralHandlingMode()How literals are going to be handled.DialectgetDialect()Current Dialect.Stack<FunctionExpression>getFunctionStack()ExplicitParameterInforegisterExplicitParameter(javax.persistence.criteria.ParameterExpression<?> criteriaQueryParameter)Register parameters explicitly encountered in the criteria query.StringregisterLiteralParameterBinding(Object literal, Class javaType)Register a parameter that was not part of the criteria query (at least not as a parameter).
-
-
-
方法详细资料
-
generateAlias
String generateAlias()
Generate a correlation name.- 返回:
- The generated correlation name
-
registerExplicitParameter
ExplicitParameterInfo registerExplicitParameter(javax.persistence.criteria.ParameterExpression<?> criteriaQueryParameter)
Register parameters explicitly encountered in the criteria query.- 参数:
criteriaQueryParameter- The parameter expression- 返回:
- The JPA-QL parameter name
-
registerLiteralParameterBinding
String registerLiteralParameterBinding(Object literal, Class javaType)
Register a parameter that was not part of the criteria query (at least not as a parameter).- 参数:
literal- The literal valuejavaType- The java type as which to handle the literal value.- 返回:
- The JPA-QL parameter name
-
getCastType
String getCastType(Class javaType)
Given a java type, determine the proper cast type name.- 参数:
javaType- The java type.- 返回:
- The cast type name.
-
getDialect
Dialect getDialect()
Current Dialect.- 返回:
- Dialect
-
getCriteriaLiteralHandlingMode
default LiteralHandlingMode getCriteriaLiteralHandlingMode()
How literals are going to be handled.- 返回:
- literal handling strategy
-
getFunctionStack
Stack<FunctionExpression> getFunctionStack()
-
-