updateQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }

    return (entityCallback) => {
      if (!this[PRIVATE.active]) {
        throw new Error("The transaction is no longer active")
      }

      return this[PRIVATE.runOperation]((operationsProvider) => {
        return operationsProvider.updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit,
          entityCallback
        )
      })
    }
  }
/**
   * Executes an update query for batch update of entities matched by the
   * specified query.
   *
   * Note that the entities matched by this query will become managed by the
   * entity managed owning this transaction, unless they are already managed by
   * it.
   *
   * @template {T} extends AbstractEntity
   * @param {function(new: T, Object<string, *>)} entityClass The entity class
   *        specifying the type of entity to match by the query.
   * @param {?(undefined|number|string|Date|Array|IDBKeyRange|Object<string, (number|string|Date|Array|IDBKeyRange)>|function(*, (number|string|Date|Array)): boolean)=} filter
   *        The filter, restricting the entities updated by this method. If a
   *        function is provided, the first argument will be set to the record
   *        and the second argument will be set to the primary key of the
   *        record.
   * @param {?(CursorDirection|string|string[]|function(*, *): number)} order
   *        How the records should be sorted.
   * @param {number} offset The index of the first record to delete. The
   *        records are numbered from {@code 0}, the offset must be a
   *        non-negative integer.
   * @param {?number} limit The maximum number of records to delete. The limit
   *        must be a positive integer, or {@code null} if no limit should be
   *        imposed.
   * @return {function(function(T)): Promise<number>} A factory function that
   *         accepts a callback that will be executed on each entity matched by
   *         this query. The modifications made by the callback will be saved.
   *         The factory function returns a promise that will resolve once all
   *         entities have been processed. The promise resolves to the number
   *         of updated entities.
   */
Executes an update query for batch update of entities matched by the
specified query.

Note that the entities matched by this query will become managed by the
entity managed owning this transaction, unless they are already managed by
it.

@template {T} extends AbstractEntity
@param {function(new: T, Object)} entityClass The entity class
specifying the type of entity to match by the query.
Executes an update query for batch update of entities matched by the specified query . Note that the entities matched by this query will become managed by the entity managed owning this transaction unless they are already managed by it . @template { T } extends AbstractEntity @param { function ( new : T Object ) } entityClass The entity class specifying the type of entity to match by the query .
updateQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }
    return (entityCallback) => {
      if (!this[PRIVATE.active]) {
        throw new Error("The transaction is no longer active")
      }
      return this[PRIVATE.runOperation]((operationsProvider) => {
        return operationsProvider.updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit,
          entityCallback
        )
      })
    }
  }
updateQuery ( entityClass , filter = null , order = "next" , offset = 0 , limit = null ) { if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } return ( entityCallback ) => { if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } return this [ PRIVATE . runOperation ] ( ( operationsProvider ) => { return operationsProvider . updateQuery ( entityClass , filter , order , offset , limit , entityCallback ) } ) } }
Executes an update query for batch update of entities matched by the
 specified query.
Executes an update query for batch update of entities matched by the specified query .