public class CouchDbDialect2o0 extends AnsiDialect
Limit clause:
{ "selector": { "year": {"$gt": 2010} }, "fields": ["_id", "_rev", "year", "title"], "sort": [{"year": "asc"}], "limit": 2, "skip": 0 }
name, patternORDER_BY
Constructor and Description |
---|
CouchDbDialect2o0() |
Modifier and Type | Method and Description |
---|---|
String |
buildQueryCount(String sqlText)
Build a paginate query to count the total of records from
sqlText |
String |
buildQueryPaging(String sqlText,
int offset,
int max)
Build a paginate query accordingly data base dialect
|
String |
buildQueryPaging(String sqlText,
int offset,
int max,
String bookmark)
Build a paginate query accordingly data base dialect
|
boolean |
supportsParmMark(ParamMarkType paramParse)
verify if dialect supports a specific
ParamMarkType |
addFeature, countOccurrencesOf, getAccessId, getAccessRevision, getMaxOfParameters, getSqlPatternCount, getSqlPatternPaging, name, setMaxOfParameters, sqlEndsWithOrderBy, sqlEndWithForUpdate, sqlStartWithSelect, sqlStartWithSelectOrDistinct, supportsFeature
public CouchDbDialect2o0()
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.public String buildQueryPaging(String sqlText, int offset, int max, String bookmark)
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.bookmark
- a page selected marked the reader's placepublic boolean supportsParmMark(ParamMarkType paramParse)
SqlDialect
ParamMarkType
supportsParmMark
in interface SqlDialect
supportsParmMark
in class AnsiDialect
paramParse
- parameter mark typetrue
when the parse type is supported, false
otherwisepublic String buildQueryCount(String sqlText)
SqlDialect
sqlText
buildQueryCount
in interface SqlDialect
buildQueryCount
in class AnsiDialect
sqlText
- original SQL to discover the total of recordssqlText
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.