public class

DDLFormatterImpl

extends Object
implements Formatter
java.lang.Object
   ↳ org.hibernate.jdbc.util.DDLFormatterImpl

Class Overview

Performs formatting of DDL SQL statements.

Summary

Public Constructors
DDLFormatterImpl()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.jdbc.util.Formatter

Public Constructors

public DDLFormatterImpl ()

Public Methods

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.

Parameters
sql The statement to be fornmatted.