public class LegacyFirstLimitHandler extends AbstractLimitHandler
| Modifier and Type | Field and Description |
|---|---|
static LegacyFirstLimitHandler |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
processSql(String sql,
RowSelection selection)
Return processed SQL query.
|
boolean |
supportsLimit()
Does this handler support some form of limiting query results
via a SQL clause?
|
boolean |
supportsLimitOffset()
Does this handler's LIMIT support (if any) additionally
support specifying an offset?
|
boolean |
supportsVariableLimit()
Does this handler support bind variables (i.e., prepared statement
parameters) for its limit/offset?
|
boolean |
useMaxForLimit()
Does the LIMIT clause take a "maximum" row number instead
of a total number of returned rows?
This is easiest understood via an example.
|
bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, setMaxRowspublic static final LegacyFirstLimitHandler INSTANCE
public String processSql(String sql, RowSelection selection)
LimitHandlerprocessSql in interface LimitHandlerprocessSql in class AbstractLimitHandlersql - the SQL query to process.selection - the selection criteria for rows.public boolean supportsLimit()
LimitHandlersupportsLimit in interface LimitHandlersupportsLimit in class AbstractLimitHandlerpublic boolean useMaxForLimit()
AbstractLimitHandleruseMaxForLimit in class AbstractLimitHandlerpublic boolean supportsLimitOffset()
LimitHandlersupportsLimitOffset in interface LimitHandlersupportsLimitOffset in class AbstractLimitHandlerpublic boolean supportsVariableLimit()
AbstractLimitHandlersupportsVariableLimit in class AbstractLimitHandlerCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.