Description:
The HiveMainTaskDataStore is responsible for directly interacting with the Hive database to manage task-related data. It inherits common data operations from the BaseHiveDataStoreAbstraction class and provides additional methods for specific task-related queries. This class ensures that tasks are stored, retrieved, updated, and deleted efficiently, leveraging Hive's capabilities for data persistence.
Inherited Methods from BaseHiveDataStoreAbstraction:
Description: The
HiveMainTaskDataStore
is responsible for directly interacting with the Hive database to manage task-related data. It inherits common data operations from theBaseHiveDataStoreAbstraction
class and provides additional methods for specific task-related queries. This class ensures that tasks are stored, retrieved, updated, and deleted efficiently, leveraging Hive's capabilities for data persistence.Inherited Methods from BaseHiveDataStoreAbstraction:
ResultFuture<void> createEntity({required HiveTaskModel newEntity});
ResultFuture<List<Entity>> getEntities();
ResultFuture<Entity> getEntity({required String id});
ResultFuture<void> updateEntity({required HiveTaskModel entity});
ResultFuture<void> deleteEntity({required String id});
ResultFuture<void> deleteAllSelected(List<String> keys);
Specific Filtering Methods:
ResultFuture<List<Entity>> getMainTasksByStatus(int status);
ResultFuture<List<Entity>> getMainTasksByDueDate(DateTime dueDate);
ResultFuture<List<Entity>> getMainTasksByPriority(int priority);
Key Responsibilities:
Implementation Considerations:
HiveMainTaskDataStore
.Example Usage:
MainTaskRepository
will call methods fromHiveMainTaskDataStore
to perform CRUD operations and specific queries on tasks.HiveMainTaskDataStore
will handle the actual interaction with the Hive database, abstracting these details from the repository.