| 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.Int |
| 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 queryOfList(): List<MyEntity> { |
| val _sql: String = "SELECT * FROM MyEntity" |
| return performBlocking(__db, true, false) { _connection -> |
| val _stmt: SQLiteStatement = _connection.prepare(_sql) |
| try { |
| val _cursorIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk") |
| val _cursorIndexOfOther: Int = getColumnIndexOrThrow(_stmt, "other") |
| val _result: MutableList<MyEntity> = mutableListOf() |
| while (_stmt.step()) { |
| val _item: MyEntity |
| val _tmpPk: Int |
| _tmpPk = _stmt.getLong(_cursorIndexOfPk).toInt() |
| val _tmpOther: String |
| _tmpOther = _stmt.getText(_cursorIndexOfOther) |
| _item = MyEntity(_tmpPk,_tmpOther) |
| _result.add(_item) |
| } |
| _result |
| } finally { |
| _stmt.close() |
| } |
| } |
| } |
| |
| public companion object { |
| public fun getRequiredConverters(): List<KClass<*>> = emptyList() |
| } |
| } |