<lambda>null1 import androidx.room.RoomDatabase
2 import androidx.room.util.getColumnIndexOrThrow
3 import androidx.room.util.performBlocking
4 import androidx.sqlite.SQLiteStatement
5 import javax.`annotation`.processing.Generated
6 import kotlin.Int
7 import kotlin.Long
8 import kotlin.String
9 import kotlin.Suppress
10 import kotlin.collections.List
11 import kotlin.reflect.KClass
12 
13 @Generated(value = ["androidx.room.RoomProcessor"])
14 @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"])
15 public class MyDao_Impl(
16   __db: RoomDatabase,
17 ) : MyDao {
18   private val __db: RoomDatabase
19   init {
20     this.__db = __db
21   }
22 
23   public override fun getEntity(): MyEntity {
24     val _sql: String = "SELECT * FROM MyEntity"
25     return performBlocking(__db, true, false) { _connection ->
26       val _stmt: SQLiteStatement = _connection.prepare(_sql)
27       try {
28         val _columnIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk")
29         val _result: MyEntity
30         if (_stmt.step()) {
31           val _tmpPk: Long
32           _tmpPk = _stmt.getLong(_columnIndexOfPk)
33           _result = MyEntity(_tmpPk)
34         } else {
35           error("The query result was empty, but expected a single row to return a NON-NULL object of type <MyEntity>.")
36         }
37         _result
38       } finally {
39         _stmt.close()
40       }
41     }
42   }
43 
44   public companion object {
45     public fun getRequiredConverters(): List<KClass<*>> = emptyList()
46   }
47 }
48