类org.hibernate.jdbc.util.BasicFormatterImpl源码实例Demo

下面列出了怎么用org.hibernate.jdbc.util.BasicFormatterImpl的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: MogwaiERDesignerNG   文件: SQLUtils.java
/**
 * 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);
}
 
 类所在包
 类方法
 同包方法