public abstract class AbstractSQLPagingDialect extends Object implements SQLPagingDialect
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Properties |
config |
protected static String |
COUNT |
protected static String |
COUNT_END |
protected static String |
COUNT_REGEX |
protected static String |
COUNT_START |
protected static String |
SELECT |
protected static int |
SELECT_LEN |
| 构造器和说明 |
|---|
AbstractSQLPagingDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
countSql(String namedSql,
SQLMetaData sqlMetaData)
根据SQL生成特定数据库统计总记录数SQL
|
protected static String |
wrapUnLimitedSqlToCountSql(String namedSql,
int selectIndex,
int fromIndex,
int groupByIndex,
int orderByIndex,
boolean isUnion)
包装不含行数限定条件的查询SQL为查询总记录数的SQL
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpageSqlprotected static final String COUNT
protected static final String COUNT_START
protected static final int SELECT_LEN
protected static final Properties config
public String countSql(String namedSql, SQLMetaData sqlMetaData)
SQLPagingDialectcountSql 在接口中 SQLPagingDialectnamedSql - 可能含命名参数的查询SQLsqlMetaData - SQL相关数据protected static String wrapUnLimitedSqlToCountSql(String namedSql, int selectIndex, int fromIndex, int groupByIndex, int orderByIndex, boolean isUnion)
namedSql - 可能含命名参数的查询SQLselectIndex - SELECT子句的开始位置fromIndex - FROM子句的开始位置groupByIndex - GROUP BY子句的开始位置orderByIndex - ORDER BY子句的开始位置isUnion - 主查询是否含有 UNION 子句Copyright © 2023 10MG. All rights reserved.