类 Informix10LimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.Informix10LimitHandler
-
- 所有已实现的接口:
LimitHandler
public class Informix10LimitHandler extends AbstractLimitHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 static Informix10LimitHandlerINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanbindLimitParametersFirst()Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?StringprocessSql(String sql, RowSelection selection)Return processed SQL query.booleansupportsLimit()Does this handler support some form of limiting query results via a SQL clause?booleansupportsLimitOffset()Does this handler's LIMIT support (if any) additionally support specifying an offset?booleansupportsVariableLimit()Does this handler support bind variables (i.e., prepared statement parameters) for its limit/offset?booleanuseMaxForLimit()Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows?-
从类继承的方法 org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, setMaxRows
-
-
-
-
字段详细资料
-
INSTANCE
public static final Informix10LimitHandler INSTANCE
-
-
方法详细资料
-
processSql
public String processSql(String sql, RowSelection selection)
从接口复制的说明:LimitHandlerReturn processed SQL query.- 指定者:
processSql在接口中LimitHandler- 覆盖:
processSql在类中AbstractLimitHandler- 参数:
sql- the SQL query to process.selection- the selection criteria for rows.- 返回:
- Query statement with LIMIT clause applied.
-
supportsLimit
public boolean supportsLimit()
从接口复制的说明:LimitHandlerDoes this handler support some form of limiting query results via a SQL clause?- 指定者:
supportsLimit在接口中LimitHandler- 覆盖:
supportsLimit在类中AbstractLimitHandler- 返回:
- True if this handler supports some form of LIMIT.
-
bindLimitParametersFirst
public boolean bindLimitParametersFirst()
从类复制的说明:AbstractLimitHandlerDoes the LIMIT clause come at the start of the SELECT statement, rather than at the end?- 覆盖:
bindLimitParametersFirst在类中AbstractLimitHandler- 返回:
- true if limit parameters should come before other parameters
-
useMaxForLimit
public boolean useMaxForLimit()
从类复制的说明:AbstractLimitHandlerDoes the LIMIT clause take a "maximum" row number instead of a total number of returned rows? This is easiest understood via an example. Consider you have a table with 20 rows, but you only want to retrieve rows number 11 through 20. Generally, a limit with offset would say that the offset = 11 and the limit = 10 (we only want 10 rows at a time); this is specifying the total number of returned rows. Some dialects require that we instead specify offset = 11 and limit = 20, where 20 is the "last" row we want relative to offset (i.e. total number of rows = 20 - 11 = 9) So essentially, is limit relative from offset? Or is limit absolute?- 覆盖:
useMaxForLimit在类中AbstractLimitHandler- 返回:
- True if limit is relative from offset; false otherwise.
-
supportsLimitOffset
public boolean supportsLimitOffset()
从接口复制的说明:LimitHandlerDoes this handler's LIMIT support (if any) additionally support specifying an offset?- 指定者:
supportsLimitOffset在接口中LimitHandler- 覆盖:
supportsLimitOffset在类中AbstractLimitHandler- 返回:
- True if the handler supports an offset within the limit support.
-
supportsVariableLimit
public boolean supportsVariableLimit()
从类复制的说明:AbstractLimitHandlerDoes this handler support bind variables (i.e., prepared statement parameters) for its limit/offset?- 覆盖:
supportsVariableLimit在类中AbstractLimitHandler- 返回:
- True if bind variables can be used; false otherwise.
-
-