public class MysqlDialect extends Dialect
Dialect.HolderkeepByteAndShort, modelBuilder, recordBuilder| Constructor and Description |
|---|
MysqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
forDbDeleteById(String tableName,
String[] pKeys) |
String |
forDbFindById(String tableName,
String[] pKeys) |
void |
forDbSave(String tableName,
String[] pKeys,
Record record,
StringBuilder sql,
List<Object> paras)
Do not delete the String[] pKeys parameter, the element of pKeys needs to trim()
|
void |
forDbUpdate(String tableName,
String[] pKeys,
Object[] ids,
Record record,
StringBuilder sql,
List<Object> paras) |
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) |
String |
forTableBuilderDoBuild(String tableName) |
buildModelList, buildRecordList, fillStatement, fillStatement, fillStatementHandleDateType, fillStatementHandleDateType, getDefaultPrimaryKey, getModelGeneratedKey, getRecordGeneratedKey, isKeepByteAndShort, isOracle, isPrimaryKey, isTakeOverDbPaginate, isTakeOverModelPaginate, processGeneratedBigIntegerKey, replaceOrderBy, setKeepByteAndShort, setModelBuilder, setRecordBuilder, takeOverDbPaginate, takeOverModelPaginate, trimPrimaryKeyspublic String forTableBuilderDoBuild(String tableName)
forTableBuilderDoBuild in class Dialectpublic void forModelSave(Table table, Map<String,Object> attrs, StringBuilder sql, List<Object> paras)
forModelSave in class Dialectpublic String forModelDeleteById(Table table)
forModelDeleteById in class Dialectpublic void forModelUpdate(Table table, Map<String,Object> attrs, Set<String> modifyFlag, StringBuilder sql, List<Object> paras)
forModelUpdate in class Dialectpublic String forModelFindById(Table table, String columns)
forModelFindById in class Dialectpublic String forDbFindById(String tableName, String[] pKeys)
forDbFindById in class Dialectpublic String forDbDeleteById(String tableName, String[] pKeys)
forDbDeleteById in class 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 in class Dialectpublic String forPaginate(int pageNumber, int pageSize, StringBuilder findSql)
forPaginate in class DialectCopyright © 2018. All rights reserved.