CrudOperation<T, ID extends Object, E extends Entity, P extends Params> class abstract

Annotations
  • @experimental

Constructors

CrudOperation()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(E entity) Future<T>
Deletes a given entity.
deleteAll() Future<T>
Deletes all entities managed by the repository.
deleteAllById(List<ID> ids) Future<T>
Deletes all entities with the given IDs.
deleteById(ID id) Future<T>
Deletes a single record of the given id.
existsById(ID id) bool
Returns whether an entity with the given id exists.
findAll({P? params}) Future<List<E>?>
Returns all entities.
findAllById(List<ID> ids, {P? params}) Future<List<E>?>
Returns all entities with the given IDs.
findById(ID id) Future<E?>
Retrieves an entity by its id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(E entity) Future<T>
Saves a given entity.
saveAll(List<E> entities) Future<T>
Saves all given entities.
toString() String
A string representation of this object.
inherited
update(ID id, E entity) Future<T>
Updates a single record by the given id with the new entity object.

Operators

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