Class MySQLDialect
java.lang.Object
org.huiche.dialect.BaseDialect
org.huiche.dialect.MySQLDialect
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
MariaDBDialect
-
Field Summary
Fields inherited from class BaseDialect
keywords, quoteString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean是否支持ORDER BY的NULLS FIRST/LAST语法获取模板,可重写translatePaging(Integer limit, Integer offset) 转译分页Methods inherited from class BaseDialect
quote, quoteIdentifier, quotePart, translate, translate, translateCustomMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Dialect
processTemplateParams, requiresOrderByForPaging, setJsonValue, supportsSetOperandParenthesis, typeForSetNull, useNational
-
Constructor Details
-
MySQLDialect
public MySQLDialect()默认构造 -
MySQLDialect
-
-
Method Details
-
supportsNullsOrdering
public boolean supportsNullsOrdering()Description copied from interface:Dialect是否支持ORDER BY的NULLS FIRST/LAST语法MySQL、MariaDB、SQL Server不支持该语法,但它们都把NULL视为最小值, 因此可以改写为
CASE WHEN ... IS NULL实现等价排序。- Returns:
- 是否支持
-
template
-
translatePaging
Description copied from interface:Dialect转译分页- Specified by:
translatePagingin interfaceDialect- Overrides:
translatePagingin classBaseDialect- Parameters:
limit- 限制条数offset- 跳过条数- Returns:
- 分页语法
-