import androidx.room.RoomDatabase import androidx.room.util.getColumnIndexOrThrow 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.Short import kotlin.ShortArray import kotlin.String import kotlin.Suppress import kotlin.collections.List import kotlin.collections.MutableList import kotlin.collections.mutableListOf 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 init { this.__db = __db } public override fun queryOfArray(): Array { val _sql: String = "SELECT * FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _columnIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk") val _columnIndexOfOther: Int = getColumnIndexOrThrow(_stmt, "other") val _columnIndexOfOther2: Int = getColumnIndexOrThrow(_stmt, "other2") val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: MyEntity val _tmpPk: Int _tmpPk = _stmt.getLong(_columnIndexOfPk).toInt() val _tmpOther: String _tmpOther = _stmt.getText(_columnIndexOfOther) val _tmpOther2: Long _tmpOther2 = _stmt.getLong(_columnIndexOfOther2) _item = MyEntity(_tmpPk,_tmpOther,_tmpOther2) _listResult.add(_item) } val _result: Array = _listResult.toTypedArray() _result } finally { _stmt.close() } } } public override fun queryOfNullableArray(): Array { val _sql: String = "SELECT * FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _columnIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk") val _columnIndexOfOther: Int = getColumnIndexOrThrow(_stmt, "other") val _columnIndexOfOther2: Int = getColumnIndexOrThrow(_stmt, "other2") val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: MyEntity val _tmpPk: Int _tmpPk = _stmt.getLong(_columnIndexOfPk).toInt() val _tmpOther: String _tmpOther = _stmt.getText(_columnIndexOfOther) val _tmpOther2: Long _tmpOther2 = _stmt.getLong(_columnIndexOfOther2) _item = MyEntity(_tmpPk,_tmpOther,_tmpOther2) _listResult.add(_item) } val _result: Array = _listResult.toTypedArray() _result } finally { _stmt.close() } } } public override fun queryOfArrayWithLong(): Array { val _sql: String = "SELECT pk FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: Long _item = _stmt.getLong(0) _listResult.add(_item) } val _result: Array = _listResult.toTypedArray() _result } finally { _stmt.close() } } } public override fun queryOfArrayWithNullableLong(): Array { val _sql: String = "SELECT pk FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: Long _item = _stmt.getLong(0) _listResult.add(_item) } val _result: Array = _listResult.toTypedArray() _result } finally { _stmt.close() } } } public override fun queryOfLongArray(): LongArray { val _sql: String = "SELECT pk FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: Long _item = _stmt.getLong(0) _listResult.add(_item) } val _result: LongArray = _listResult.toLongArray() _result } finally { _stmt.close() } } } public override fun queryOfShortArray(): ShortArray { val _sql: String = "SELECT pk FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _listResult: MutableList = mutableListOf() while (_stmt.step()) { val _item: Short _item = _stmt.getLong(0).toShort() _listResult.add(_item) } val _result: ShortArray = _listResult.toShortArray() _result } finally { _stmt.close() } } } public companion object { public fun getRequiredConverters(): List> = emptyList() } }