ArcDao

ArcDao generalize implementation of insert, update, and delete entity using androidx.room.Room database.

For reading data purposes, please implement your own inside your DAO after inherit ArcDao

Author

jimlyas

Since

08 Feb 2023

Parameters

entity

Object that inherit DbEntity that will be manipulated using this DAO

Copyright © 2022-2023 jimlyas. All rights reserved.

Functions

Link copied to clipboard
abstract fun insert(data: entity)

Function to store entity to the database

Link copied to clipboard
abstract fun remove(vararg data: entity)

Function to remove an entity from the database

Link copied to clipboard
abstract fun update(vararg data: entity)

Function to update entity value inside the database