LocalRepository<D extends EntityModel, R extends EntitySearchModel> class
abstract
LocalRepository
is an abstract class that extends DataRepository
and provides additional functionality for local repositories.
- Inheritance
-
- Object
- DataRepository<
D, R> - LocalRepository
- Implementers
- AddressLocalRepository
- AttributesLocalBaseRepository
- BoundaryLocalRepository
- FacilityLocalBaseRepository
- FacilityLocalRepository
- IndividualLocalBaseRepository
- IndividualLocalRepository
- ProductLocalBaseRepository
- ProductVariantLocalBaseRepository
- ProductVariantLocalRepository
- ProjectFacilityLocalBaseRepository
- ProjectFacilityLocalRepository
- ProjectLocalBaseRepository
- ProjectLocalRepository
- ProjectProductVariantLocalBaseRepository
- ProjectResourceLocalBaseRepository
- ProjectResourceLocalRepository
- ProjectStaffLocalBaseRepository
- ProjectStaffLocalRepository
- UserLocalBaseRepository
Constructors
-
LocalRepository(LocalSqlDataStore sql, OpLogManager<
D> opLogManager) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
opLogManager
→ OpLogManager<
D> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → LocalSqlDataStore
-
final
- type → DataModelType
-
The
type
getter returns the type of the data model.no setterinherited
Methods
-
bulkCreate(
List< D> entities) → FutureOr<void> -
create(
D entity, {bool createOpLog = true, DataOperation dataOperation = DataOperation.create}) → FutureOr< void> -
The
create
method creates a new entity.override -
createOplogEntry(
D entity, DataOperation operation) → FutureOr< void> -
delete(
D entity, {bool createOpLog = true}) → FutureOr< void> -
The
delete
method deletes an existing entity.override -
getItemsToBeSyncedDown(
String createdBy) → Future< List< OpLogEntry< >D> > -
getItemsToBeSyncedUp(
String createdBy) → Future< List< OpLogEntry< >D> > -
markSyncedUp(
{OpLogEntry< D> ? entry, String? clientReferenceId, int? id, bool? nonRecoverableError}) → FutureOr<void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
R query) → FutureOr< List< D> > -
The
search
method searches for entities that match the given query.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
update(
D entity, {bool createOpLog = true}) → FutureOr< void> -
The
update
method updates an existing entity.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited