import androidx.room.RoomDatabase 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.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 count(): Int { val _sql: String = "SELECT count(*) FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _result: Int if (_stmt.step()) { _result = _stmt.getLong(0).toInt() } else { _result = 0 } _result } finally { _stmt.close() } } } public override fun text(): String { val _sql: String = "SELECT 'Tom' FROM MyEntity LIMIT 1" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _result: String if (_stmt.step()) { val _tmp: String _tmp = _stmt.getText(0) _result = _tmp } else { error("The query result was empty, but expected a single row to return a NON-NULL object of type .") } _result } finally { _stmt.close() } } } public override fun nullableText(): String? { val _sql: String = "SELECT 'Tom' FROM MyEntity LIMIT 1" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _result: String? if (_stmt.step()) { val _tmp: String? if (_stmt.isNull(0)) { _tmp = null } else { _tmp = _stmt.getText(0) } _result = _tmp } else { _result = null } _result } finally { _stmt.close() } } } public companion object { public fun getRequiredConverters(): List> = emptyList() } }