Class SimpleSQLFormatter

  • All Implemented Interfaces:
    SQLFormatter

    public class SimpleSQLFormatter
    extends Object
    implements SQLFormatter
    A simple SQLFormatter that removes comments and cleans up whitespace to make an SQL statement occupy a single line in a log file.
    Author:
    Carl Harris
    • Constructor Detail

      • SimpleSQLFormatter

        public SimpleSQLFormatter()
    • Method Detail

      • format

        public String format​(String sql)
        Description copied from interface: SQLFormatter
        Formats SQL statement text.
        Specified by:
        format in interface SQLFormatter
        Parameters:
        sql - the statement to format
        Returns:
        formatted SQL statement text