public abstract class BasicSQLCreaterImpl extends Object implements SQLCreater
SQLCreater.DB_TYPE| 限定符和类型 | 字段和说明 |
|---|---|
String |
delimiterFr |
String |
delimiterTo |
protected static org.slf4j.Logger |
log |
protected PrimaryCreater |
primaryCreater |
BR, BR_TAB, TAB| 构造器和说明 |
|---|
BasicSQLCreaterImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
confirmInsertColumns(String dst,
Object data,
String... columns)
确认需要插入的列
|
RunSQL |
createDeleteRunSQL(String dest,
Object obj,
String... columns) |
RunSQL |
createDeleteRunSQL(String table,
String key,
Object values) |
RunSQL |
createExecuteRunSQL(SQL sql,
ConfigStore configs,
String... conditions) |
RunSQL |
createInsertTxt(String dest,
Object obj,
boolean checkParimary,
String... columns) |
RunSQL |
createQueryRunSQL(SQL sql,
ConfigStore configs,
String... conditions)
创建查询SQL
|
RunSQL |
createUpdateTxt(String dest,
Object obj,
boolean checkParimary,
String... columns) |
String |
getPrimaryKey(Object obj) |
Object |
getPrimaryValue(Object obj) |
String |
parseBaseQueryTxt(RunSQL run)
基础查询SQL
RunSQL 反转调用
|
String |
parseExistsTxt(RunSQL run) |
String |
parseTable(String table) |
String |
parseTotalQueryTxt(RunSQL run)
求总数SQL
RunSQL 反转调用
|
SQLCreater.DB_TYPE |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconcat, getDelimiterFr, getDelimiterTo, parseFinalQueryTxtprotected static final org.slf4j.Logger log
@Autowired(required=false) protected PrimaryCreater primaryCreater
public String delimiterFr
public String delimiterTo
public SQLCreater.DB_TYPE type()
type 在接口中 SQLCreaterpublic RunSQL createQueryRunSQL(SQL sql, ConfigStore configs, String... conditions)
createQueryRunSQL 在接口中 SQLCreatersql - sqlconfigs - configsconditions - conditionspublic RunSQL createExecuteRunSQL(SQL sql, ConfigStore configs, String... conditions)
createExecuteRunSQL 在接口中 SQLCreaterpublic RunSQL createDeleteRunSQL(String table, String key, Object values)
createDeleteRunSQL 在接口中 SQLCreaterpublic RunSQL createDeleteRunSQL(String dest, Object obj, String... columns)
createDeleteRunSQL 在接口中 SQLCreaterpublic String getPrimaryKey(Object obj)
getPrimaryKey 在接口中 SQLCreaterpublic Object getPrimaryValue(Object obj)
getPrimaryValue 在接口中 SQLCreaterpublic String parseBaseQueryTxt(RunSQL run)
parseBaseQueryTxt 在接口中 SQLCreaterpublic String parseTotalQueryTxt(RunSQL run)
parseTotalQueryTxt 在接口中 SQLCreaterrun - runpublic String parseExistsTxt(RunSQL run)
parseExistsTxt 在接口中 SQLCreaterpublic RunSQL createInsertTxt(String dest, Object obj, boolean checkParimary, String... columns)
createInsertTxt 在接口中 SQLCreaterpublic RunSQL createUpdateTxt(String dest, Object obj, boolean checkParimary, String... columns)
createUpdateTxt 在接口中 SQLCreaterpublic List<String> confirmInsertColumns(String dst, Object data, String... columns)
confirmInsertColumns 在接口中 SQLCreaterCopyright © 2022. All rights reserved.