<lambda>null1import androidx.room.RoomDatabase 2 import androidx.room.util.getColumnIndexOrThrow 3 import androidx.room.util.performBlocking 4 import androidx.sqlite.SQLiteStatement 5 import com.google.common.base.Optional 6 import javax.`annotation`.processing.Generated 7 import kotlin.Int 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 queryOfOptional(): Optional<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 _columnIndexOfOther: Int = getColumnIndexOrThrow(_stmt, "other") 30 val _value: MyEntity? 31 if (_stmt.step()) { 32 val _tmpPk: Int 33 _tmpPk = _stmt.getLong(_columnIndexOfPk).toInt() 34 val _tmpOther: String 35 _tmpOther = _stmt.getText(_columnIndexOfOther) 36 _value = MyEntity(_tmpPk,_tmpOther) 37 } else { 38 _value = null 39 } 40 val _result: Optional<MyEntity> = Optional.fromNullable(_value) 41 _result 42 } finally { 43 _stmt.close() 44 } 45 } 46 } 47 48 public companion object { 49 public fun getRequiredConverters(): List<KClass<*>> = emptyList() 50 } 51 } 52