Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.pretty
Class DDLFormatter

    java.lang.Object
      org.hibernate.pretty.DDLFormatter

    public class DDLFormatter

extends Object

Constructor Summary
`DDLFormatter(String sql)`

Method Summary
`String` | `format()` Format an SQL statement using simple rules: a) Insert newline after each comma; b) 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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DDLFormatter

    public DDLFormatter(String sql)

Method Detail

### format

    public String format()

  Format an SQL statement using simple rules: a) Insert newline after each comma; b) 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD