import androidx.room.EntityDeleteOrUpdateAdapter import androidx.room.EntityInsertAdapter import androidx.room.EntityUpsertAdapter import androidx.room.RoomDatabase import androidx.room.util.performBlocking import androidx.sqlite.SQLiteStatement import javax.`annotation`.processing.Generated import kotlin.Array import kotlin.Int import kotlin.Long import kotlin.LongArray import kotlin.String import kotlin.Suppress import kotlin.Unit import kotlin.collections.List import kotlin.collections.MutableList import kotlin.reflect.KClass @Generated(value = ["androidx.room.RoomProcessor"]) @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"]) public class MyDao_Impl( __db: RoomDatabase, ) : MyDao { private val __db: RoomDatabase private val __insertAdapterOfMyEntity: EntityInsertAdapter private val __deleteAdapterOfMyEntity: EntityDeleteOrUpdateAdapter private val __updateAdapterOfMyEntity: EntityDeleteOrUpdateAdapter private val __upsertAdapterOfMyEntity: EntityUpsertAdapter init { this.__db = __db this.__insertAdapterOfMyEntity = object : EntityInsertAdapter() { protected override fun createQuery(): String = "INSERT OR ABORT INTO `MyEntity` (`pk`,`other`) VALUES (?,?)" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { statement.bindLong(1, entity.pk.toLong()) statement.bindText(2, entity.other) } } this.__deleteAdapterOfMyEntity = object : EntityDeleteOrUpdateAdapter() { protected override fun createQuery(): String = "DELETE FROM `MyEntity` WHERE `pk` = ?" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { statement.bindLong(1, entity.pk.toLong()) } } this.__updateAdapterOfMyEntity = object : EntityDeleteOrUpdateAdapter() { protected override fun createQuery(): String = "UPDATE OR ABORT `MyEntity` SET `pk` = ?,`other` = ? WHERE `pk` = ?" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { statement.bindLong(1, entity.pk.toLong()) statement.bindText(2, entity.other) statement.bindLong(3, entity.pk.toLong()) } } this.__upsertAdapterOfMyEntity = EntityUpsertAdapter(object : EntityInsertAdapter() { protected override fun createQuery(): String = "INSERT INTO `MyEntity` (`pk`,`other`) VALUES (?,?)" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { statement.bindLong(1, entity.pk.toLong()) statement.bindText(2, entity.other) } }, object : EntityDeleteOrUpdateAdapter() { protected override fun createQuery(): String = "UPDATE `MyEntity` SET `pk` = ?,`other` = ? WHERE `pk` = ?" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { statement.bindLong(1, entity.pk.toLong()) statement.bindText(2, entity.other) statement.bindLong(3, entity.pk.toLong()) } }) } public override fun insert(entities: Array?): MutableList? = performBlocking(__db, false, true) { _connection -> val _result: MutableList? = __insertAdapterOfMyEntity.insertAndReturnIdsList(_connection, entities) _result } public override fun insertList(entities: MutableList?): LongArray? = performBlocking(__db, false, true) { _connection -> val _result: LongArray? = __insertAdapterOfMyEntity.insertAndReturnIdsArray(_connection, entities) _result } public override fun delete(entity: MyEntity?): Unit = performBlocking(__db, false, true) { _connection -> __deleteAdapterOfMyEntity.handle(_connection, entity) } public override fun deleteList(entity: MutableList?): Int = performBlocking(__db, false, true) { _connection -> var _result: Int = 0 _result += __deleteAdapterOfMyEntity.handleMultiple(_connection, entity) _result } public override fun update(entity: MyEntity?): Unit = performBlocking(__db, false, true) { _connection -> __updateAdapterOfMyEntity.handle(_connection, entity) } public override fun updateList(entity: MutableList?): Int = performBlocking(__db, false, true) { _connection -> var _result: Int = 0 _result += __updateAdapterOfMyEntity.handleMultiple(_connection, entity) _result } public override fun upsert(entities: Array?): MutableList? = performBlocking(__db, false, true) { _connection -> val _result: MutableList? = __upsertAdapterOfMyEntity.upsertAndReturnIdsList(_connection, entities) _result } public override fun upsertList(entities: MutableList?): LongArray? = performBlocking(__db, false, true) { _connection -> val _result: LongArray? = __upsertAdapterOfMyEntity.upsertAndReturnIdsArray(_connection, entities) _result } public companion object { public fun getRequiredConverters(): List> = emptyList() } }