com.centit.support.database.utils.QueryAndParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of centit-database Show documentation
Show all versions of centit-database Show documentation
数据库操作通用方法和函数,从以前的util包中分离出来,并且整合了部分sys-module中的函数
The newest version!
package com.centit.support.database.utils;
import com.centit.support.compiler.Lexer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public class QueryAndParams {
public String queryStmt;
public Object[] params;
public QueryAndParams() {
this.queryStmt = null;
this.params = null;
}
public QueryAndParams(String shql) {
this.queryStmt = shql;
this.params = null;
}
public QueryAndParams(String shql, final Object[] values) {
this.queryStmt = shql;
this.params = values;
}
public static QueryAndParams creepArrayParamForInQuery(String sql, Object[] sqlParams) {
StringBuilder sqlb = new StringBuilder();
List