CRUDUseCaseAsync<Domain extends BasicDomainObject<IntIdentifier>> class abstract

AbstractUseCase of CRUD Async operations, of type Domain extends BasicDomainObject. Generally not implemented, instead extends the use case from DefaultCRUDUseCase.

See AbstractUseCase for general info.

Example at DefaultCRUDUseCaseAsync

Implemented types
Implementers

Constructors

CRUDUseCaseAsync()

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.
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