public class SQLServer2005Dialect extends Dialect
boundSql, mappedStatement, pageBounds, pageParameters, parameterMappings, parameterObject, typeHandlerRegistry| 构造器和说明 |
|---|
SQLServer2005Dialect(org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
PageBounds pageBounds) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getLimitString(String sql,
String offsetName,
int offset,
String limitName,
int limit)
Add a LIMIT clause to the given SQL SELECT
The LIMIT SQL will look like:
WITH query AS
(SELECT TOP 100 percent ROW_NUMBER() OVER (ORDER BY CURRENT_TIMESTAMP) as __row_number__, * from table_name)
SELECT *
FROM query
WHERE __row_number__ BETWEEN :offset and :lastRows
ORDER BY __row_number__
|
getCountSQL, getCountString, getPageSQL, getParameterMappings, getParameterObject, getSortString, init, setPageParameterpublic SQLServer2005Dialect(org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
PageBounds pageBounds)
protected String getLimitString(String sql, String offsetName, int offset, String limitName, int limit)
getLimitString 在类中 Dialectsql - The SQL statement to base the limit query off of.offset - Offset of the first row to be returned by the query (zero-based)limit - Maximum number of rows to be returned by the queryCopyright © 2018. All rights reserved.