Class BatchQuery

    • Constructor Detail

      • BatchQuery

        public BatchQuery​(DbEntity dbEntity,
                          List<DbAttribute> dbAttributes,
                          int batchCapacity)
        Since:
        4.0
    • Method Detail

      • route

        public void route​(QueryRouter router,
                          EntityResolver resolver,
                          Query substitutedQuery)
        Description copied from interface: Query
        A callback method invoked by Cayenne during the routing phase of the query execution. Mapping of DataNodes is provided by QueryRouter. Query should use a QueryRouter.route(QueryEngine, Query, Query) callback method to route itself. Query can create one or more substitute queries or even provide its own QueryEngine to execute itself.
        Specified by:
        route in interface Query
        Since:
        1.2
      • isUsingOptimisticLocking

        public boolean isUsingOptimisticLocking()
        Returns true if the batch query uses optimistic locking.
        Since:
        1.1
      • getDbEntity

        public DbEntity getDbEntity()
        Returns a DbEntity associated with this batch.
      • getDbAttributes

        public List<DbAttribute> getDbAttributes()
        Returns a list of DbAttributes describing batch parameters.