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 Type
    Method
    Description
     
    Optional<org.eclipse.jnosql.communication.semistructured.CriteriaCondition>
     
    boolean
     
    The A string that enables you to specify which page of results you require.
    int
     
    long
     
     
    of(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
    returns a new instance of CouchDBDocumentQuery
    of(org.eclipse.jnosql.communication.semistructured.SelectQuery query, String bookmark)
    returns a new instance of CouchDBDocumentQuery
    long
     
    List<jakarta.data.Sort<?>>
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jnosql.communication.semistructured.SelectQuery

    isCount
  • Method Details

    • getBookmark

      public Optional<String> 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:
      limit in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • skip

      public long skip()
      Specified by:
      skip in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • name

      public String name()
      Specified by:
      name in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • condition

      public Optional<org.eclipse.jnosql.communication.semistructured.CriteriaCondition> condition()
      Specified by:
      condition in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • sorts

      public List<jakarta.data.Sort<?>> sorts()
      Specified by:
      sorts in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • columns

      public List<String> columns()
      Specified by:
      columns in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static CouchDBDocumentQuery of(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
      returns a new instance of CouchDBDocumentQuery
      Parameters:
      query - the SelectQuery
      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 of CouchDBDocumentQuery
      Parameters:
      query - the SelectQuery
      bookmark - bookmark
      Returns:
      a new instance
      Throws:
      NullPointerException - when there is null parameter