public class SQLUtils extends Object
| 构造器和说明 |
|---|
SQLUtils() |
public static List<SQLStatement> toStatementList(String sql, String dbType)
public static String toSQLString(List<SQLStatement> statementList, String dbType)
public static String toSQLString(List<SQLStatement> statementList, String dbType, List<Object> parameters)
public static SQLASTOutputVisitor createFormatOutputVisitor(Appendable out, List<SQLStatement> statementList, String dbType)
public static SchemaStatVisitor createSchemaStatVisitor(List<SQLStatement> statementList, String dbType)
public static List<SQLStatement> parseStatements(String sql, String dbType)
public static String buildToDate(String columnName, String tableAlias, String pattern, String dbType)
columnName - tableAlias - pattern - if pattern is null,it will be set {%Y-%m-%d %H:%i:%s} as mysql default value and set {yyyy-mm-dd
hh24:mi:ss} as oracle default valuedbType - JdbcConstants if dbType is null ,it will be set the mysql as a default valuepublic static List<SQLExpr> split(SQLBinaryOpExpr x)
Copyright © 2013-2014 Alibaba Group. All Rights Reserved.