public class AnsiSqlDialect extends Dialect
A clever person solves a problem. A wise person avoids it.
Dialect.HolderkeepByteAndShort, modelBuilder, recordBuilder| 构造器和说明 |
|---|
AnsiSqlDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
buildModel(ResultSet rs,
Class<? extends Model> modelClass,
int pageSize) |
void |
fillStatement(PreparedStatement pst,
List<Object> paras) |
void |
fillStatement(PreparedStatement pst,
Object... paras) |
void |
forDbDelete(String tableName,
String[] pKeys,
Record record,
StringBuilder sql,
List<Object> paras) |
String |
forDbDeleteById(String tableName,
String[] pKeys) |
String |
forDbFindById(String tableName,
String[] pKeys) |
String |
forDbFindColumns(String tableName,
String columns) |
String |
forDbFindColumnsById(String tableName,
String columns,
String[] pKeys) |
void |
forDbSave(String tableName,
String[] pKeys,
Record record,
StringBuilder sql,
List<Object> paras) |
void |
forDbSave(String tableName,
String[] pKeys,
Record record,
StringBuilder sql,
List<Object> paras,
String[] jsonFields) |
void |
forDbUpdate(String tableName,
String[] pKeys,
Object[] ids,
Record record,
StringBuilder sql,
List<Object> paras) |
void |
forDbUpdate(String tableName,
String[] pKeys,
Object[] ids,
Record record,
StringBuilder sql,
List<Object> paras,
String[] jsonFields) |
String |
forExistsByFields(String tableName,
String fields) |
String |
forModelDeleteById(Table table) |
String |
forModelFindById(Table table,
String columns) |
void |
forModelSave(Table table,
Map<String,Object> attrs,
StringBuilder sql,
List<Object> paras) |
void |
forModelUpdate(Table table,
Map<String,Object> attrs,
Set<String> modifyFlag,
StringBuilder sql,
List<Object> paras) |
String |
forPaginate(int pageNumber,
int pageSize,
StringBuilder findSql)
SELECT * FROM subject t1 WHERE (SELECT count(*) FROM subject t2 WHERE t2.id < t1.id AND t2.key = '123') > = 10 AND (SELECT count(*) FROM subject t2 WHERE t2.id < t1.id AND t2.key = '123') < 20 AND t1.key = '123'
|
String |
forTableBuilderDoBuild(String tableName) |
boolean |
isTakeOverDbPaginate() |
boolean |
isTakeOverModelPaginate() |
Page<Record> |
takeOverDbPaginate(Connection conn,
int pageNumber,
int pageSize,
Boolean isGroupBySql,
String totalRowSql,
StringBuilder findSql,
Object... paras) |
Page<? extends Model> |
takeOverModelPaginate(Connection conn,
Class<? extends Model> modelClass,
int pageNumber,
int pageSize,
Boolean isGroupBySql,
String totalRowSql,
StringBuilder findSql,
Object... paras) |
buildModelList, buildRecordList, buildRecordListWithJsonFields, eachModel, eachRecord, fillStatementHandleDateType, fillStatementHandleDateType, forFindAll, forPaginateTotalRow, getDefaultPrimaryKey, getModelGeneratedKey, getRecordGeneratedKey, isKeepByteAndShort, isOracle, isPrimaryKey, processGeneratedBigIntegerKey, replaceOrderBy, setKeepByteAndShort, setModelBuilder, setRecordBuilder, trimPrimaryKeyspublic String forTableBuilderDoBuild(String tableName)
forTableBuilderDoBuild 在类中 Dialectpublic void forModelSave(Table table, Map<String,Object> attrs, StringBuilder sql, List<Object> paras)
forModelSave 在类中 Dialectpublic String forModelDeleteById(Table table)
forModelDeleteById 在类中 Dialectpublic void forModelUpdate(Table table, Map<String,Object> attrs, Set<String> modifyFlag, StringBuilder sql, List<Object> paras)
forModelUpdate 在类中 Dialectpublic String forModelFindById(Table table, String columns)
forModelFindById 在类中 Dialectpublic String forDbFindById(String tableName, String[] pKeys)
forDbFindById 在类中 Dialectpublic String forDbDeleteById(String tableName, String[] pKeys)
forDbDeleteById 在类中 Dialectpublic void forDbSave(String tableName, String[] pKeys, Record record, StringBuilder sql, List<Object> paras)
public void forDbUpdate(String tableName, String[] pKeys, Object[] ids, Record record, StringBuilder sql, List<Object> paras)
forDbUpdate 在类中 Dialectpublic String forPaginate(int pageNumber, int pageSize, StringBuilder findSql)
forPaginate 在类中 Dialectpublic boolean isTakeOverDbPaginate()
isTakeOverDbPaginate 在类中 Dialectpublic Page<Record> takeOverDbPaginate(Connection conn, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws SQLException
takeOverDbPaginate 在类中 DialectSQLExceptionpublic boolean isTakeOverModelPaginate()
isTakeOverModelPaginate 在类中 Dialectpublic Page<? extends Model> takeOverModelPaginate(Connection conn, Class<? extends Model> modelClass, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws Exception
takeOverModelPaginate 在类中 DialectExceptionpublic final <T> List<T> buildModel(ResultSet rs, Class<? extends Model> modelClass, int pageSize) throws SQLException, ReflectiveOperationException
public void fillStatement(PreparedStatement pst, List<Object> paras) throws SQLException
fillStatement 在类中 DialectSQLExceptionpublic void fillStatement(PreparedStatement pst, Object... paras) throws SQLException
fillStatement 在类中 DialectSQLExceptionpublic String forDbFindColumnsById(String tableName, String columns, String[] pKeys)
forDbFindColumnsById 在类中 Dialectpublic String forDbFindColumns(String tableName, String columns)
forDbFindColumns 在类中 Dialectpublic void forDbDelete(String tableName, String[] pKeys, Record record, StringBuilder sql, List<Object> paras)
forDbDelete 在类中 Dialectpublic String forExistsByFields(String tableName, String fields)
forExistsByFields 在类中 Dialectpublic void forDbUpdate(String tableName, String[] pKeys, Object[] ids, Record record, StringBuilder sql, List<Object> paras, String[] jsonFields)
forDbUpdate 在类中 DialectCopyright © 2024. All rights reserved.