public interface Dialect
| 限定符和类型 | 方法和说明 |
|---|---|
List<SqlString> |
countSql(SearchParam<?> searchParam,
DQLSqlStructure dqlSqlStructure)
生成count查询语句
|
org.springframework.boot.jdbc.DatabaseDriver |
getDataBaseDriver() |
String |
getDbFieldQuotationMarks()
sql语句操纵数据库字段时的转义引号
sql可能涉及操作数据库关键字 为了避免关键字碰撞 将每一个字段都使用引号包裹转义
各个数据库的引号可能都是不同的 mysql是 ` Oracle是 "
|
Case |
getDefaultCharacterCase() |
default KeywordDictionary |
getKeywordDictionary() |
void |
handleFunctionSqlString(FunctionSqlString functionSqlString)
处理函数
|
List<SqlString> |
limitSql(SearchParam<?> searchParam,
DQLSqlStructure dqlSqlStructure)
生成分页sql语句
|
List<SqlString> |
selectSequenceCurrentValueSql(Class<?> pojoType,
String schema,
String sequenceName)
生成查询序列当前值的sql
|
List<SqlString> |
selectSequenceNextValueSql(Class<?> pojoType,
String schema,
String sequenceName)
生成查询序列下一个值的sql
|
org.springframework.boot.jdbc.DatabaseDriver getDataBaseDriver()
void handleFunctionSqlString(FunctionSqlString functionSqlString)
functionSqlString - 函数String getDbFieldQuotationMarks()
Case getDefaultCharacterCase()
default KeywordDictionary getKeywordDictionary()
List<SqlString> limitSql(SearchParam<?> searchParam, DQLSqlStructure dqlSqlStructure)
searchParam - 查询参数dqlSqlStructure - 查询sql语句List<SqlString> countSql(SearchParam<?> searchParam, DQLSqlStructure dqlSqlStructure)
searchParam - 查询参数dqlSqlStructure - 查询sql语句List<SqlString> selectSequenceCurrentValueSql(Class<?> pojoType, String schema, String sequenceName)
schema - 序列所在的库sequenceName - 序列名称Copyright © 2022. All rights reserved.