CRUDRepositoryFramework<Entity extends BasicEntityObject> class abstract

Default CRUD repository of type Entity extends BasicEntityObject for External operations. Implemented by the framework, the external library of persistence.

EXAMPLE://todo: change example External repo in clean-core example

  class ParentRepoExternal
      extends ObjectBoxCRUDRepositoryExternal<ParentEntity> {
    ParentRepoExternal(Store store) : super(store);
  }
Inheritance
Implementers

Constructors

CRUDRepositoryFramework()

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 entity. By default calling the length of findAll().
create(Entity newObject) → Entity
Create the entity.
delete(Entity objectToDestroy) → void
Destroy the entity.
deleteById(int id) → void
Destroy the entity by it's id.
dispose() → void
edit(Entity objectToEdit) → Entity
Edit the entity.
findAll() List<Entity>
Find all entity.
findById(int keyId) → Entity?
Find the correspondent entity by it's Key Id.
init() → 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