接口 RenderingContext


  • public interface RenderingContext
    Used to provide a context and services to the rendering.
    作者:
    Steve Ebersole
    • 方法详细资料

      • 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 value
        javaType - 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