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, supportsFeaturepublic CouchDbDialect2o0()
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.public String buildQueryPaging(String sqlText, int offset, int max, String bookmark)
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.bookmark - a page selected marked the reader's placepublic boolean supportsParmMark(ParamMarkType paramParse)
SqlDialectParamMarkTypesupportsParmMark in interface SqlDialectsupportsParmMark in class AnsiDialectparamParse - parameter mark typetrue when the parse type is supported, false otherwisepublic String buildQueryCount(String sqlText)
SqlDialectsqlTextbuildQueryCount in interface SqlDialectbuildQueryCount in class AnsiDialectsqlText - original SQL to discover the total of recordssqlTextCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.