Package com.cbe

Class QueryChain

java.lang.Object
com.cbe.QueryChain
Direct Known Subclasses:
QueryChainExt

public class QueryChain extends Object
To do a search for Object combining more than one Container table.
[Async] QueryChain is used when a query()
is carried out with a solely
QueryDelegate.

Anyway, if a subsequent join() will be used, an additional
JoinDelegate
is required in the join()-call.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • QueryChain

      public QueryChain(long cPtr, boolean cMemoryOwn)
    • QueryChain

      public QueryChain(DefaultCtor arg0)
  • Method Details

    • getCPtr

      public static long getCPtr(QueryChain obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • join

      public QueryChain join(Container containerToQuery, String key1, String key2, JoinDelegate joinDelegate)
      Performs a join request in conjunction with a query, or previous join,
      to get related items from another container.

      Asynchronous version of this service function.

      Parameters:
      containerToQuery -
      The container of which the join shall be done with.
      key1 -
      The key from the previous query on which to perform the join.
      key2 -
      The key on objects in containerToQuery on which to perform the
      join
      joinDelegate -
      Pointer to a JoinDelegate
      instance, implemented by the user, that receives the response of
      this query request.

      I.e., either of the JoinDelegate callback functions
      delegate::JoinDelegate::onJoinSuccess()
      "onJoinSuccess()" or
      delegate::JoinDelegate::onJoinError()
      "onJoinError()"
      will be called.
    • join

      public QueryChain join(Container containerToQuery, String key1, String key2, Filter constraints, JoinDelegate joinDelegate)
      Same as
      join(Container,std::string,std::string,delegate::JoinDelegatePtr),
      but with an additional Filter parameter constraints .

      Parameters:
      constraints - A filter that provides any constraints for the query.
    • join

      public QueryChain join(Container containerToQuery, String key1, String key2, Container containerForResults, JoinDelegate joinDelegate)
      Same as
      join(Container,std::string,std::string,delegate::JoinDelegatePtr),
      but with an additional Container parameter containerForResults .

      Parameters:
      containerForResults - Can be the Container from the previous query if
      desired items should be from that container.
    • join

      public QueryChain join(Container containerToQuery, String key1, String key2, Filter constraints, Container containerForResults, JoinDelegate joinDelegate)
      Same as
      join(Container,std::string,std::string,Container,delegate::JoinDelegatePtr),
      but with an additional Filter parameter constraints .

      Parameters:
      constraints - A filter that provides any constraints for the query.
    • getQueryResult

      public QueryResult getQueryResult()
      Returns the QueryResult provided to the delegate after the the last query()
      or join() call.
      If this method is called before the delegate call,
      an empty QueryResult is returned.