public class TopLimitHandler extends AbstractLimitHandler
Constructor and Description |
---|
TopLimitHandler(boolean supportsVariableLimit,
boolean bindLimitParametersFirst) |
Modifier and Type | Method and Description |
---|---|
boolean |
bindLimitParametersFirst()
Does the LIMIT clause come at the start of the
SELECT statement, rather than at the end?
|
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 |
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, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, setMaxRows, supportsVariableLimit
public TopLimitHandler(boolean supportsVariableLimit, boolean bindLimitParametersFirst)
public boolean supportsLimit()
LimitHandler
supportsLimit
in interface LimitHandler
supportsLimit
in class AbstractLimitHandler
public boolean useMaxForLimit()
AbstractLimitHandler
useMaxForLimit
in class AbstractLimitHandler
public boolean supportsLimitOffset()
LimitHandler
supportsLimitOffset
in interface LimitHandler
supportsLimitOffset
in class AbstractLimitHandler
public boolean bindLimitParametersFirst()
AbstractLimitHandler
bindLimitParametersFirst
in class AbstractLimitHandler
public String processSql(String sql, RowSelection selection)
LimitHandler
processSql
in interface LimitHandler
processSql
in class AbstractLimitHandler
sql
- the SQL query to process.selection
- the selection criteria for rows.Copyright © 2017 JBoss by Red Hat. All rights reserved.