org.hibernate.jdbc.util.BasicFormatterImpl Java Examples
The following examples show how to use
org.hibernate.jdbc.util.BasicFormatterImpl.
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 File: SQLUtils.java From MogwaiERDesignerNG with GNU General Public License v3.0 | 3 votes |
/** * 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); }