Class Dialect
java.lang.Object
com.gsitm.ustra.java.data.mybatis.pagination.dialect.Dialect
- Direct Known Subclasses:
MultiRoutingDataSourceDialect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.ibatis.mapping.BoundSqlprotected Stringprotected org.apache.ibatis.mapping.MappedStatementprotected PageBoundsprotected Stringprotected List<org.apache.ibatis.mapping.ParameterMapping>protected Objectprotected org.apache.ibatis.type.TypeHandlerRegistry -
Constructor Summary
ConstructorsConstructorDescriptionDialect(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, PageBounds pageBounds) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringgetCountString(String sql) protected StringgetLimitString(String sql, int offset, int limit, List<Order> orders) List<org.apache.ibatis.mapping.ParameterMapping>protected voidinit()voidsetPageParameter(String name, Object value, Class<?> type)
-
Field Details
-
typeHandlerRegistry
protected org.apache.ibatis.type.TypeHandlerRegistry typeHandlerRegistry -
mappedStatement
protected org.apache.ibatis.mapping.MappedStatement mappedStatement -
pageBounds
-
parameterObject
-
boundSql
protected org.apache.ibatis.mapping.BoundSql boundSql -
parameterMappings
-
pageParameters
-
pageSQL
-
countSQL
-
-
Constructor Details
-
Dialect
public Dialect(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, PageBounds pageBounds)
-
-
Method Details
-
init
protected void init() -
createSql
protected void createSql() -
getParameterMappings
-
getParameterObject
-
getPageSQL
-
setPageParameter
-
getCountSQL
-
getLimitString
-
getCountString
-