app / com.ocean.ishareeconomy_android.database.dao / LendObjectDatabaseDao

LendObjectDatabaseDao

interface LendObjectDatabaseDao

Part of database.dao.

Defines the actions, concerning the local storage of objects of type LendingObject in the DB

Functions

deleteFromObjects

abstract fun deleteFromObjects(): Unit

deleteObjectById

abstract fun deleteObjectById(id: String): Unit

getLendingObjectsFromUserById

abstract fun getLendingObjectsFromUserById(id: String): LiveData<List<LendObjectWithObjectUsers>>

getObjectsCurrentlyUsedByUser

abstract fun getObjectsCurrentlyUsedByUser(id: String): LiveData<List<LendObjectWithObjectUsers>>

insertAllLendObjects

abstract fun insertAllLendObjects(vararg objects: DatabaseLendObject): Unit

lendingObjectsForUserById

abstract fun lendingObjectsForUserById(id: String): List<LendObjectWithObjectUsers>

usingObjectsForUserById

abstract fun usingObjectsForUserById(id: String): List<LendObjectWithObjectUsers>