public class OracleDialect extends AnsiDialect
Limit clause:
select name from author LIMIT 1 OFFSET 2
select * from ( select row_.*, rownum rownum_ from
(select name from author )
row_ where rownum <= 5) where rownum_ > 15
name, patternORDER_BY| Constructor and Description |
|---|
OracleDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildQueryPaging(String sqlText,
int offset,
int max)
Build a paginate query accordingly data base dialect
|
int |
getMaxOfParameters()
Return the limit of elements in an
INPUT parameter the database supports. |
String |
getSqlPatternPaging()
The template to mount the SQL paginated, using LIMIT and OFFSET
clauses according the specific database
|
addFeature, buildQueryCount, buildQueryPaging, countOccurrencesOf, getAccessId, getAccessRevision, getSqlPatternCount, name, setMaxOfParameters, sqlEndsWithOrderBy, sqlEndWithForUpdate, sqlStartWithSelect, sqlStartWithSelectOrDistinct, supportsFeature, supportsParmMarkpublic OracleDialect()
public int getMaxOfParameters()
SqlDialectINPUT parameter the database supports.getMaxOfParameters in interface SqlDialectgetMaxOfParameters in class AnsiDialectInteger.MAX_VALUEpublic String getSqlPatternPaging()
SqlDialectgetSqlPatternPaging in interface SqlDialectgetSqlPatternPaging in class AnsiDialect
select * from ( select row_.*, rownum rownum_ from
(%1$s)
row_ where rownum <= %2$s) where rownum_ > %3$s
public String buildQueryPaging(String sqlText, int offset, int max)
SqlDialectbuildQueryPaging in interface SqlDialectbuildQueryPaging in class AnsiDialectsqlText - final SQL with parameters to bindoffset - number from first row from query resultmax - maximum number of rows from query result.Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.