|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.jdbc.util.DDLFormatterImpl
public class DDLFormatterImpl
Performs formatting of DDL SQL statements.
Constructor Summary | |
---|---|
DDLFormatterImpl()
|
Method Summary | |
---|---|
java.lang.String |
format(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DDLFormatterImpl()
Method Detail |
---|
public java.lang.String format(java.lang.String sql)
format
in interface Formatter
sql
- The statement to be fornmatted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |