Class BaseJPQLQueryFormatter

    • Field Detail

      • writer

        protected final java.lang.StringBuilder writer
        The holder of the string representation of the JPQL query.
      • COMMA

        protected static final java.lang.String COMMA
        The constant for a comma: ','.
        See Also:
        Constant Field Values
      • COMMA_SPACE

        protected static final java.lang.String COMMA_SPACE
        The constant for a comma followed by a space: ', '.
        See Also:
        Constant Field Values
      • LEFT_PARENTHESIS

        protected static final java.lang.String LEFT_PARENTHESIS
        The constant for the left parenthesis: '('.
        See Also:
        Constant Field Values
      • RIGHT_PARENTHESIS

        protected static final java.lang.String RIGHT_PARENTHESIS
        The constant for the right parenthesis: ')'.
        See Also:
        Constant Field Values
      • SPACE

        protected static final java.lang.String SPACE
        The constant for a space: '  '.
        See Also:
        Constant Field Values
    • Method Detail

      • formatIdentifier

        protected java.lang.String formatIdentifier​(java.lang.String identifier)
        Formats the given JPQL identifier, if it needs to be decorated with more information. Which depends on how the string is created.
        Parameters:
        identifier - JPQL identifier to format
        Returns:
        By default the given identifier is returned
      • getIdentifierStyle

        public IJPQLQueryFormatter.IdentifierStyle getIdentifierStyle()
        Returns the style to use when formatting the JPQL identifiers.
        Returns:
        One of the possible ways to format the JPQL identifiers
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toText

        protected void toText​(StateObject stateObject)
        Visits the given StateObject and prevents its decorator to be called, which will prevent any possible recursion when the decorator is outputting the information.
        Parameters:
        stateObject - The decorated StateObject to traverse without going through the decorator