Package org.soulwing.jdbc.source
Class SimpleSQLFormatter
- java.lang.Object
-
- org.soulwing.jdbc.source.SimpleSQLFormatter
-
- All Implemented Interfaces:
SQLFormatter
public class SimpleSQLFormatter extends Object implements SQLFormatter
A simpleSQLFormatter
that removes comments and cleans up whitespace to make an SQL statement occupy a single line in a log file.- Author:
- Carl Harris
-
-
Constructor Summary
Constructors Constructor Description SimpleSQLFormatter()
-
-
-
Method Detail
-
format
public String format(String sql)
Description copied from interface:SQLFormatter
Formats SQL statement text.- Specified by:
format
in interfaceSQLFormatter
- Parameters:
sql
- the statement to format- Returns:
- formatted SQL statement text
-
-