Class BaseJPQLQueryFormatter

    • Method Detail

      • formatIdentifier

        protected String formatIdentifier​(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
      • 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