DefaultReadUseCase<Domain extends BasicDomainObject<Domain> > class
abstract
Default implementation of CRUDUseCase of type Domain extends BasicDomainObject It's basically a delegate to the repo.
EXAMPLE: This is the implementation of ParentUseCase. See BasicDomainObject for ParentDomain's example code. See ReadUseCase for ParentUseCase's example code.
class ParentUseCaseImpl extends DefaultReadUseCase<ParentDomain>
implements ParentUseCase {
ParentUseCaseImpl(List<ParentDomain> info)
: super(info: info);
void doStuffInUseCase(){
print('Doing Stuff in the use case layer...');
}
}
- Inheritance
-
- Object
- ReadUseCase<
Domain> - DefaultReadUseCase
Constructors
-
DefaultReadUseCase(List<
Domain> _info)
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(
) → int -
Count the amount of domains.
By default calling the length of findAll().
override
-
dispose(
) → void -
override
-
findAll(
) → List< Domain> -
Find all domains.
override
-
findBy(
int keyId) → Domain -
Find the correspondent domain by it's Key Id.
override
-
init(
) → 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