updateQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    validateEntityClass(entityClass)

    return (recordCallback) => {
      if (this[PRIVATE.activeTransaction]) {
        return this[PRIVATE.activeTransaction].updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit
        )(recordCallback)
      }

      return this.runTransaction((transaction) => {
        return transaction.updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit
        )(recordCallback)
      })
    }
  }
/**
   * Updates the records matched by the specified query.
   *
   * @template {T} extends AbstractEntity
   * @param {function(new: T, data: Object<string, *>)} entityClass The entity
   *        class, specifying the type of entities to match.
   * @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 records affected 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 modify. The
   *        records are numbered from {@code 0}, the offset must be a
   *        non-negative integer.
   * @param {?number} limit The maximum number of records to modify. The limit
   *        must be a positive integer, or {@code null} if no limit should be
   *        imposed.
   * @return {function(function(T)): Promise<number>} A function that executes
   *         the update query, and returns a promise that resolves to the
   *         number of records matched by the query. The function accepts a
   *         callback that is invoked for each record to modify them.
   */
Updates the records matched by the specified query.
@template {T} extends AbstractEntity
@param {function(new: T, data: Object)} entityClass The entity
class, specifying the type of entities to match.
Updates the records matched by the specified query . @template { T } extends AbstractEntity @param { function ( new : T data : Object ) } entityClass The entity class specifying the type of entities to match .
updateQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    validateEntityClass(entityClass)
    return (recordCallback) => {
      if (this[PRIVATE.activeTransaction]) {
        return this[PRIVATE.activeTransaction].updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit
        )(recordCallback)
      }
      return this.runTransaction((transaction) => {
        return transaction.updateQuery(
          entityClass,
          filter,
          order,
          offset,
          limit
        )(recordCallback)
      })
    }
  }
updateQuery ( entityClass , filter = null , order = "next" , offset = 0 , limit = null ) { validateEntityClass ( entityClass ) return ( recordCallback ) => { if ( this [ PRIVATE . activeTransaction ] ) { return this [ PRIVATE . activeTransaction ] . updateQuery ( entityClass , filter , order , offset , limit ) ( recordCallback ) } return this . runTransaction ( ( transaction ) => { return transaction . updateQuery ( entityClass , filter , order , offset , limit ) ( recordCallback ) } ) } }
Updates the records matched by the specified query.
Updates the records matched by the specified query .