Interface QueryEngine

All Known Implementing Classes:
DataDomain, DataNode

public interface QueryEngine
Defines methods used to run Cayenne queries.
  • Method Summary

    Modifier and Type Method Description
    EntityResolver getEntityResolver()
    Returns a resolver for this query engine that is capable of resolving between classes, entity names, and obj/db entities
    void performQueries​(Collection<? extends Query> queries, OperationObserver resultConsumer)
    Executes a list of queries wrapping them in its own transaction.
  • Method Details

    • performQueries

      void performQueries​(Collection<? extends Query> queries, OperationObserver resultConsumer)
      Executes a list of queries wrapping them in its own transaction. Results of execution are passed to OperationObserverobject via its callback methods.
      Since:
      1.1 The signature has changed from List to Collection.
    • getEntityResolver

      EntityResolver getEntityResolver()
      Returns a resolver for this query engine that is capable of resolving between classes, entity names, and obj/db entities