|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.pretty.DDLFormatter
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 |
public DDLFormatter(String sql)
Method Detail |
public String format()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |