类 SQLServer2005Dialect
java.lang.Object
cn.nkpro.elcube.data.mybatis.pagination.dialect.Dialect
cn.nkpro.elcube.data.mybatis.pagination.dialect.SQLServer2005Dialect
- 作者:
- badqiu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getLimitString(String querySqlString, int offset, String offsetPlaceholder, int limit, String limitPlaceholder)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__booleanboolean从类继承的方法 cn.nkpro.elcube.data.mybatis.pagination.dialect.Dialect
getLimitString
-
构造器详细资料
-
SQLServer2005Dialect
public SQLServer2005Dialect()
-
-
方法详细资料
-
supportsLimit
public boolean supportsLimit()- 覆盖:
supportsLimit在类中Dialect
-
supportsLimitOffset
public boolean supportsLimitOffset()- 覆盖:
supportsLimitOffset在类中Dialect
-
getLimitString
public String getLimitString(String querySqlString, int offset, String offsetPlaceholder, int limit, String limitPlaceholder)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__- 覆盖:
getLimitString在类中Dialect- 参数:
querySqlString- The SQL statement to base the limit query off of.offset- Offset of the first row to be returned by the query (zero-based)last- Maximum number of rows to be returned by the query- 返回:
- A new SQL statement with the LIMIT clause applied.
-