Package org.hibernate.jdbc.util
Class DDLFormatterImpl
java.lang.Object
org.hibernate.jdbc.util.DDLFormatterImpl
- All Implemented Interfaces:
Formatter
Performs formatting of DDL SQL statements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormat 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.
-
Constructor Details
-
DDLFormatterImpl
public DDLFormatterImpl()
-
-
Method Details
-
format
Format an SQL statement using simple rules- Insert newline after each comma
- Indent three spaces after each inserted newline
-