DelegatedCRUDUseCaseAsync<Domain extends BasicDomainObject<IntIdentifier> , CRUDRepo extends CRUDRepositoryAsync<Domain> > class
abstract
- Inheritance
-
- Object
- CRUDUseCaseAsync<
Domain> - DelegatedCRUDUseCaseAsync
Constructors
- DelegatedCRUDUseCaseAsync({required CRUDRepo repo})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- repo ↔ CRUDRepo
-
getter/setter pair
- 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().
override
-
create(
Domain newObject) → Future< Domain> -
Create the domain.
override
-
delete(
Domain objectToDestroy) → Future< void> -
Destroy the domain.
override
-
deleteById(
int id) → Future< void> -
Destroy the domain.
override
-
dispose(
) → Future< void> -
override
-
edit(
Domain objectToEdit) → Future< Domain> -
Edit the domain.
override
-
findAll(
) → Future< List< Domain> > -
Find all domains.
override
-
findById(
int keyId) → Future< Domain?> -
Find the correspondent domain by it's Key Id.
override
-
init(
) → Future< void> -
override
-
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