Class CouchDBDocumentQuery
java.lang.Object
org.eclipse.jnosql.databases.couchdb.communication.CouchDBDocumentQuery
- All Implemented Interfaces:
org.eclipse.jnosql.communication.semistructured.SelectQuery
public final class CouchDBDocumentQuery
extends Object
implements org.eclipse.jnosql.communication.semistructured.SelectQuery
A CouchDB specialization of
SelectQuery that allows query with bookmark which can do pagination.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jnosql.communication.semistructured.SelectQuery
org.eclipse.jnosql.communication.semistructured.SelectQuery.QueryBuilder, org.eclipse.jnosql.communication.semistructured.SelectQuery.QueryBuilderProvider, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectElements, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectFrom, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectLimit, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNameCondition, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNameOrder, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNotCondition, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectOrder, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectProvider, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectQueryBuild, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectSkip, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectWhere -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Optional<org.eclipse.jnosql.communication.semistructured.CriteriaCondition>booleanThe A string that enables you to specify which page of results you require.inthashCode()longlimit()name()static CouchDBDocumentQueryof(org.eclipse.jnosql.communication.semistructured.SelectQuery query) returns a new instance ofCouchDBDocumentQuerystatic CouchDBDocumentQueryreturns a new instance ofCouchDBDocumentQuerylongskip()List<jakarta.data.Sort<?>>sorts()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jnosql.communication.semistructured.SelectQuery
isCount
-
Method Details
-
getBookmark
The A string that enables you to specify which page of results you require. Used for paging through result sets. Every query returns an opaque string under the bookmark key that can then be passed back in a query to get the next page of results. If any part of the selector query changes between requests, the results are undefined. Optional, default: null- Returns:
- the bookmark
-
limit
public long limit()- Specified by:
limitin interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
skip
public long skip()- Specified by:
skipin interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
name
- Specified by:
namein interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
condition
- Specified by:
conditionin interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
sorts
- Specified by:
sortsin interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
columns
- Specified by:
columnsin interfaceorg.eclipse.jnosql.communication.semistructured.SelectQuery
-
equals
-
hashCode
public int hashCode() -
toString
-
of
public static CouchDBDocumentQuery of(org.eclipse.jnosql.communication.semistructured.SelectQuery query) returns a new instance ofCouchDBDocumentQuery- Parameters:
query- theSelectQuery- Returns:
- a new instance
- Throws:
NullPointerException- when query is null
-
of
public static CouchDBDocumentQuery of(org.eclipse.jnosql.communication.semistructured.SelectQuery query, String bookmark) returns a new instance ofCouchDBDocumentQuery- Parameters:
query- theSelectQuerybookmark-bookmark- Returns:
- a new instance
- Throws:
NullPointerException- when there is null parameter
-