CrudRepository<IdType, EntityType> class abstract

A CrudRepository represents a data storage.

Implemented types

Constructors

CrudRepository()

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

create(EntityType entity) Future<int>
Creates the entity and returns its ID.
inherited
delete(IdType id) Future<bool>
Deletes the entity with the given id.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieve(IdType id) Future<EntityType>
Retrieves the entity with the given id.
inherited
retrieveAll() Future<List<EntityType>>
Retrieves all entities.
inherited
toString() String
A string representation of this object.
inherited
update(IdType id, EntityType entity) Future<bool>
Updates the entity with the given id to the given entity.
inherited

Operators

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