Java Code Examples for org.hibernate.jdbc.util.BasicFormatterImpl

The following examples show how to use org.hibernate.jdbc.util.BasicFormatterImpl. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: MogwaiERDesignerNG   Source File:    License: GNU General Public License v3.0 3 votes vote down vote up
 * Prettyformat a SQL Statement.
 * This is based on the Hibernate Formatter implementation.
 * @param aSQLStatement
 *		  - SQL statement to format
 * @return pretty formatted SQL
public static String prettyFormat(String aSQLStatement) {
	if (StringUtils.isEmpty(aSQLStatement)) {
		return aSQLStatement;
	return new BasicFormatterImpl().format(aSQLStatement);