CRUDRepository<Domain extends BasicDomainObject<IntIdentifier> > class
Null safety
AbstractRepository of CRUD operations, of type Domain extends BasicDomainObject. Generally not implemented, instead extends the use case from DefaultCRUDRepo.
See AbstractRepository for general info.
EXAMPLE: This is the definition of Parent CRUDRepository, it need to be implemented after, implementation example at DefaultCRUDRepo.
See BasicDomainObject for ParentDomain's example code.
abstract class ParentRepo extends CRUDRepository<ParentDomain> {
//define in here the methods of this repo, implemented it [DefaultCRUDRepo]
void doStuffInRepo();
}
- Inheritance
- Object
- AbstractRepository
- CRUDRepository
- 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