CRUDUseCase<Domain extends BasicDomainObject<IntIdentifier> > class
Null safety
AbstractUseCase of CRUD operations, of type Domain extends BasicDomainObject. Generally not implemented, instead extends the repo from DefaultCRUDUseCase.
See AbstractUseCase for general info.
EXAMPLE: This is the definition of Parent CRUDUseCase, it need to be implemented after, implementation example at DefaultCRUDUseCase.
abstract class ParentUseCase extends CRUDUseCase<ParentDomain> {
void doStuffInUseCase();
}
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
count(
) → int - Count the amount of domains. By default calling the length of findAll().
-
create(
Domain newObject) → Domain - Create the domain.
-
destroy(
Domain objectToDestroy) → Domain - Destroy the domain.
-
dispose(
) → void -
edit(
Domain objectToEdit) → Domain - Edit the domain.
-
findAll(
) → List< Domain> - Find all domains.
-
findBy(
int keyId) → Domain - Find the correspondent domain by it's Key Id.
-
init(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited