Class AbstractExpressionRenderer

  • Direct Known Subclasses:
    ValueExpressionRenderer

    public abstract class AbstractExpressionRenderer
    extends Object
    Common base class for expression renderers.
    • Field Detail

      • config

        protected final StringRendererConfig config
        Configuration that controls string rendering options
      • builder

        protected final StringBuilder builder
        Builder that holds the fragments of the rendered string
    • Constructor Detail

    • Method Detail

      • appendKeyword

        protected void appendKeyword​(String keyword)
        Append a SQL keyword (like SELECT).
        Parameters:
        keyword - SQL keyword
      • appendBooleanLiteral

        protected void appendBooleanLiteral​(BooleanLiteral literal)
        Append a boolean literal (i.e. true of false).
        Parameters:
        literal - boolean literal
      • startParenthesis

        protected void startParenthesis()
        Start a parenthesis.
      • endParenthesis

        protected void endParenthesis()
        End a parenthesis.
      • append

        protected void append​(String string)
        Append a string.
        Parameters:
        string - string to append
      • appendAutoQuoted

        protected void appendAutoQuoted​(String identifier)
        Append a SQL identifier with the right form of quotes.
        Parameters:
        identifier - SQL identifier to be appended
      • render

        public String render()
        Render expression to a string
        Returns:
        rendered string