CRUDRepositoryAsync<Domain extends BasicDomainObject<IntIdentifier>> class abstract

AbstractRepository of CRUD Async operations, of type Domain extends BasicDomainObject. Generally not implemented, instead extends the repo from DefaultCRUDRepoAsync.

See AbstractRepository for general info.

Example at DefaultCRUDRepoAsync

Inheritance
Implementers

Constructors

CRUDRepositoryAsync()

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

count() Future<int>
Count the amount of domains. By default calling the length of findAll().
create(Domain newObject) Future<Domain>
Create the domain.
delete(Domain objectToDestroy) Future<void>
Destroy the domain.
deleteById(int id) Future<void>
Destroy the domain by it's id.
dispose() Future<void>
edit(Domain objectToEdit) Future<Domain>
Edit the domain.
findAll() Future<List<Domain>>
Find all domains.
findById(int keyId) Future<Domain?>
Find the correspondent domain by it's Key Id.
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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