BaseDaoLong

abstract class BaseDaoLong<Entity : IRoomEntity<Long, Entity>>(val tableName: String, val columnId: String, val sortAll: String? = null) : IBaseDao<Long, Entity>

Constructors

Link copied to clipboard
constructor(tableName: String, columnId: String, sortAll: String? = null)

Properties

Link copied to clipboard
open override val classIDInstance: Long = 0
Link copied to clipboard
open override val columnId: String
Link copied to clipboard
open override val sortAll: String?
Link copied to clipboard
open override val tableName: String

Functions

Link copied to clipboard
abstract suspend fun _delete(items: List<Entity>): Int
Link copied to clipboard
abstract fun _flowInt(query: RoomRawQuery): Flow<Int>
Link copied to clipboard
abstract fun _flowItem(query: RoomRawQuery): Flow<Entity>
Link copied to clipboard
abstract fun _flowList(query: RoomRawQuery): Flow<List<Entity>>
Link copied to clipboard
abstract suspend fun _insertOrUpdate(item: Entity): Long
abstract suspend fun _insertOrUpdate(items: List<Entity>): List<Long>
Link copied to clipboard
open suspend fun _loadAllIn(ids: List<Long>): List<Entity>
Link copied to clipboard
open fun convertId(id: Long): Long
Link copied to clipboard
open suspend fun count(): Int
Link copied to clipboard
abstract suspend fun delete(item: Entity): Int
open suspend fun delete(items: List<Entity>): Int
Link copied to clipboard
open suspend fun deleteById(database: RoomDatabase, id: Long): Int
Link copied to clipboard
open suspend fun deleteByIds(database: RoomDatabase, ids: List<Long>): Int
Link copied to clipboard
open fun flow(id: Long): Flow<Entity>
Link copied to clipboard
open fun flowAll(): Flow<List<Entity>>
Link copied to clipboard
open fun flowAllIn(ids: List<Long>): Flow<List<Entity>>
Link copied to clipboard
open fun flowCount(): Flow<Int>
Link copied to clipboard
open suspend fun insertOrUpdate(item: Entity): Entity
open suspend fun insertOrUpdate(items: List<Entity>): List<Entity>
Link copied to clipboard
open suspend fun load(id: Long): Entity
Link copied to clipboard
open suspend fun loadAll(): List<Entity>
Link copied to clipboard
open suspend fun loadAllIn(ids: List<Long>): List<Entity>
Link copied to clipboard
abstract suspend fun rawInt(query: RoomRawQuery): Int
Link copied to clipboard
abstract suspend fun rawItem(query: RoomRawQuery): Entity
Link copied to clipboard
abstract suspend fun rawItemOrNull(query: RoomRawQuery): Entity?
Link copied to clipboard
abstract suspend fun rawList(query: RoomRawQuery): List<Entity>
Link copied to clipboard
open suspend fun tryLoad(id: Long): Entity?