Class BaseDialect
java.lang.Object
org.huiche.dialect.BaseDialect
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
DB2Dialect, DMDialect, H2Dialect, HSQLDialect, MySQLDialect, OracleDialect, PostgreSQLDialect, SQLiteDialect, SQLServerDialect
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription默认构造BaseDialect(String quoteString) 自定义转义标识符构造BaseDialect(String quoteString, Set<String> keywords) 默认构造 -
Method Summary
Modifier and TypeMethodDescription标识符转义将SQL片段翻译为sql将语句翻译为sqltranslateCustom(Segment segment) 转译自定义SQL,会在转译最后执行translatePaging(Integer limit, Integer offset) 转译分页Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Dialect
processTemplateParams, setJsonValue, template, typeForSetNull, useNational
-
Field Details
-
keywords
-
quoteString
标识符转义字符串
-
-
Constructor Details
-
BaseDialect
public BaseDialect()默认构造 -
BaseDialect
-
BaseDialect
-
-
Method Details
-
quote
-
translate
Description copied from interface:Dialect将语句翻译为sql -
translate
Description copied from interface:Dialect将SQL片段翻译为sql -
translateCustom
Description copied from interface:Dialect转译自定义SQL,会在转译最后执行- Specified by:
translateCustomin interfaceDialect- Parameters:
segment- SQL片段,不能为null- Returns:
- 翻译结果,不允许返回null
-
translatePaging
Description copied from interface:Dialect转译分页- Specified by:
translatePagingin interfaceDialect- Parameters:
limit- 限制条数offset- 跳过条数- Returns:
- 分页语法
-