public class AnsiSqlDialect extends Dialect
AnsiSqlDialect class.
Dialect.HolderkeepByteAndShort, modelBuilder, recordBuilder| 构造器和说明 |
|---|
AnsiSqlDialect()
Constructor for AnsiSqlDialect.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
buildModel(ResultSet rs,
Class<? extends Model> modelClass,
int pageSize)
buildModel.
|
void |
fillStatement(PreparedStatement pst,
List<Object> paras)
fillStatement.
|
void |
fillStatement(PreparedStatement pst,
Object... paras)
fillStatement.
|
String |
forDbDeleteById(String tableName,
String[] pKeys)
forDbDeleteById.
|
String |
forDbFindById(String tableName,
String[] pKeys)
forDbFindById.
|
void |
forDbSave(String tableName,
String[] pKeys,
Record record,
StringBuilder sql,
List<Object> paras)
forDbSave.
|
void |
forDbUpdate(String tableName,
String[] pKeys,
Object[] ids,
Record record,
StringBuilder sql,
List<Object> paras)
forDbUpdate.
|
String |
forModelDeleteById(Table table)
forModelDeleteById.
|
String |
forModelFindById(Table table,
String columns)
forModelFindById.
|
void |
forModelSave(Table table,
Map<String,Object> attrs,
StringBuilder sql,
List<Object> paras)
forModelSave.
|
void |
forModelUpdate(Table table,
Map<String,Object> attrs,
Set<String> modifyFlag,
StringBuilder sql,
List<Object> paras)
forModelUpdate.
|
String |
forPaginate(int pageNumber,
int pageSize,
StringBuilder findSql)
forPaginate.
|
String |
forTableBuilderDoBuild(String tableName)
forTableBuilderDoBuild.
|
boolean |
isTakeOverDbPaginate()
isTakeOverDbPaginate.
|
boolean |
isTakeOverModelPaginate()
isTakeOverModelPaginate.
|
Page<Record> |
takeOverDbPaginate(Connection conn,
int pageNumber,
int pageSize,
Boolean isGroupBySql,
String totalRowSql,
StringBuilder findSql,
Object... paras)
takeOverDbPaginate.
|
Page<? extends Model> |
takeOverModelPaginate(Connection conn,
Class<? extends Model> modelClass,
int pageNumber,
int pageSize,
Boolean isGroupBySql,
String totalRowSql,
StringBuilder findSql,
Object... paras)
takeOverModelPaginate.
|
buildModelList, buildRecordList, fillStatementHandleDateType, fillStatementHandleDateType, forFindAll, getDefaultPrimaryKey, getModelGeneratedKey, getRecordGeneratedKey, isKeepByteAndShort, isOracle, isPrimaryKey, processGeneratedBigIntegerKey, replaceOrderBy, setKeepByteAndShort, setModelBuilder, setRecordBuilder, trimPrimaryKeyspublic String forTableBuilderDoBuild(String tableName)
forTableBuilderDoBuild.
forTableBuilderDoBuild 在类中 DialecttableName - a String object.String object.public void forModelSave(Table table, Map<String,Object> attrs, StringBuilder sql, List<Object> paras)
forModelSave.
forModelSave 在类中 Dialecttable - a Table object.attrs - a Map object.sql - a StringBuilder object.paras - a List object.public String forModelDeleteById(Table table)
forModelDeleteById.
forModelDeleteById 在类中 Dialecttable - a Table object.String object.public void forModelUpdate(Table table, Map<String,Object> attrs, Set<String> modifyFlag, StringBuilder sql, List<Object> paras)
forModelUpdate.
forModelUpdate 在类中 Dialecttable - a Table object.attrs - a Map object.modifyFlag - a Set object.sql - a StringBuilder object.paras - a List object.public String forModelFindById(Table table, String columns)
forModelFindById.
forModelFindById 在类中 Dialecttable - a Table object.columns - a String object.String object.public String forDbFindById(String tableName, String[] pKeys)
forDbFindById.
forDbFindById 在类中 DialecttableName - a String object.pKeys - an array of String objects.String object.public String forDbDeleteById(String tableName, String[] pKeys)
forDbDeleteById.
forDbDeleteById 在类中 DialecttableName - a String object.pKeys - an array of String objects.String object.public void forDbSave(String tableName, String[] pKeys, Record record, StringBuilder sql, List<Object> paras)
forDbSave.
public void forDbUpdate(String tableName, String[] pKeys, Object[] ids, Record record, StringBuilder sql, List<Object> paras)
forDbUpdate.
forDbUpdate 在类中 DialecttableName - a String object.pKeys - an array of String objects.ids - an array of Object objects.record - a Record object.sql - a StringBuilder object.paras - a List object.public String forPaginate(int pageNumber, int pageSize, StringBuilder findSql)
forPaginate.
forPaginate 在类中 DialectpageNumber - a int.pageSize - a int.findSql - a StringBuilder object.String object.public boolean isTakeOverDbPaginate()
isTakeOverDbPaginate.
isTakeOverDbPaginate 在类中 Dialectpublic Page<Record> takeOverDbPaginate(Connection conn, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws SQLException
takeOverDbPaginate.
takeOverDbPaginate 在类中 Dialectconn - a Connection object.pageNumber - a int.pageSize - a int.isGroupBySql - a Boolean object.totalRowSql - a String object.findSql - a StringBuilder object.paras - a Object object.Page object.SQLException - if any.public boolean isTakeOverModelPaginate()
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.
takeOverModelPaginate 在类中 Dialectconn - a Connection object.modelClass - a Class object.pageNumber - a int.pageSize - a int.isGroupBySql - a Boolean object.totalRowSql - a String object.findSql - a StringBuilder object.paras - a Object object.Page object.Exception - if any.public final <T> List<T> buildModel(ResultSet rs, Class<? extends Model> modelClass, int pageSize) throws SQLException, ReflectiveOperationException
buildModel.
T - a T object.rs - a ResultSet object.modelClass - a Class object.pageSize - a int.List object.SQLException - if any.ReflectiveOperationException - if any.public void fillStatement(PreparedStatement pst, List<Object> paras) throws SQLException
fillStatement.
fillStatement 在类中 Dialectpst - a PreparedStatement object.paras - a List object.SQLException - if any.public void fillStatement(PreparedStatement pst, Object... paras) throws SQLException
fillStatement.
fillStatement 在类中 Dialectpst - a PreparedStatement object.paras - a Object object.SQLException - if any.Copyright © 2023. All rights reserved.