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 simpleSQLFormatterthat 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:SQLFormatterFormats SQL statement text.- Specified by:
formatin interfaceSQLFormatter- Parameters:
sql- the statement to format- Returns:
- formatted SQL statement text
-
-