BulkUpdate<T extends Object?> class

A class for performing bulk update operations on OracleDB documents.

This class allows building complex queries with conditions using the where method and then performing updates on multiple documents that match those conditions using the update method.

The class supports chaining multiple where conditions and handles various comparison operators including equality, inequality, range comparisons, array operations, and null checks.

Example:

var bulkUpdate = BulkUpdate(
  helper: queryHelper,
  oracledb: oracledbInstance,
  path: 'collection/document'
);

await bulkUpdate
  .where('age', isGreaterThan: 18)
  .where('status', isEqualTo: 'active')
  .update({'lastUpdated': DateTime.now()});

Properties

hashCode → int
The hash code for this object.
no setterinherited
oracledb → FusabaseOracledb
The FusabaseOracledb instance associated with this bulk update operation.
no setter
path → String
The document path for this bulk update operation, constructed from the path segments.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
update(Map<Object, Object?> data, [dynamic transObj]) → Future<void>
Updates fields in multiple documents.
where(Object field, {Object? isEqualTo, Object? isNotEqualTo, Object? isLessThan, Object? isLessThanOrEqualTo, Object? isGreaterThan, Object? isGreaterThanOrEqualTo, Object? arrayContains, Iterable<Object?>? arrayContainsAny, Iterable<Object?>? whereIn, Iterable<Object?>? whereNotIn, bool? isNull}) → BulkUpdate<T>
Adds a condition to filter documents for the bulk update operation.

Operators

operator ==(Object other) → bool
The equality operator.
inherited