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, supportsParmMark
public OracleDialect()
public int getMaxOfParameters()
SqlDialect
INPUT
parameter the database supports.getMaxOfParameters
in interface SqlDialect
getMaxOfParameters
in class AnsiDialect
Integer.MAX_VALUE
public String getSqlPatternPaging()
SqlDialect
getSqlPatternPaging
in interface SqlDialect
getSqlPatternPaging
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)
SqlDialect
buildQueryPaging
in interface SqlDialect
buildQueryPaging
in class AnsiDialect
sqlText
- 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.