loadAllBy<T extends Entity> method

Future<List<T>> loadAllBy<T extends Entity>(
  1. Iterable<String>? fields,
  2. T newInstance(
    1. String oid
    ),
  3. Map<String, dynamic> whereValues, [
  4. AccessOption? option,
])

Loads all entities of the given AND criteria.

  • By AND, we mean it satisfies all values in whereValues.
    • option - whether to use forShare, forUpdate
  • or null (default; no lock).

Implementation

Future<List<T>> loadAllBy<T extends Entity>(
    Iterable<String>? fields, T newInstance(String oid),
    Map<String, dynamic> whereValues, [AccessOption? option])
=> loadAllWith(fields, newInstance,
    sqlWhereBy(whereValues), whereValues, null, null, option);