public abstract class AbstractPageSqlMatchProcess extends Object implements PageSqlMatchProcess
Constructor and Description |
---|
AbstractPageSqlMatchProcess() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
dbType() |
String |
getCountSql(String originSql) |
protected abstract String |
internalComplexSelectSqlProcess(ComplexSelect complexSelect,
int start,
int limit) |
protected abstract String |
internalSqlProcess(Select select,
int start,
int limit) |
boolean |
isMatch(String dbType)
判断是否是该数据库类型的分页sql处理器
|
String |
sqlProcess(ComplexSelect complexSelect,
int start,
int limit)
对查询语句进行分页sql处理,返回具有分页信息的sql语句
|
String |
sqlProcess(Select select,
int start,
int limit)
对查询语句进行分页sql处理,返回具有分页信息的sql语句
|
public boolean isMatch(String dbType)
PageSqlMatchProcess
isMatch
in interface PageSqlMatchProcess
dbType
- 数据库类型public String sqlProcess(Select select, int start, int limit)
PageSqlMatchProcess
sqlProcess
in interface PageSqlMatchProcess
select
- 原生sql,未带分页信息的sql语句start
- 分页参数 每页的起始数limit
- 分页参数,每页返回的条数protected abstract String dbType()
protected abstract String internalSqlProcess(Select select, int start, int limit)
public String getCountSql(String originSql)
getCountSql
in interface PageSqlMatchProcess
originSql
- 原有sqlpublic String sqlProcess(ComplexSelect complexSelect, int start, int limit)
PageSqlMatchProcess
sqlProcess
in interface PageSqlMatchProcess
complexSelect
- 原生sql,未带分页信息的sql语句start
- 分页参数 每页的起始数limit
- 分页参数,每页返回的条数protected abstract String internalComplexSelectSqlProcess(ComplexSelect complexSelect, int start, int limit)
Copyright © 2006–2018 TinyGroup. All rights reserved.