org.hibernate.jdbc.util
Class DDLFormatterImpl
java.lang.Object
org.hibernate.jdbc.util.DDLFormatterImpl
- Formatter
public class DDLFormatterImpl
extends java.lang.Object
Performs formatting of DDL SQL statements.
String | format(String sql) - Format an SQL statement using simple rules
- Insert newline after each comma
- Indent three spaces after each inserted newline
If the statement contains single/double quotes return unchanged,
it is too complex and could be broken by simple formatting.
|
format
public String format(String sql)
Format an SQL statement using simple rules
- Insert newline after each comma
- Indent three spaces after each inserted newline
If the statement contains single/double quotes return unchanged,
it is too complex and could be broken by simple formatting.
- format in interface Formatter
sql
- The statement to be fornmatted.