import androidx.room.EntityInsertAdapter 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.Byte import kotlin.Char import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long import kotlin.Short import kotlin.String import kotlin.Suppress import kotlin.Unit 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 private val __insertAdapterOfMyEntity: EntityInsertAdapter init { this.__db = __db this.__insertAdapterOfMyEntity = object : EntityInsertAdapter() { protected override fun createQuery(): String = "INSERT OR ABORT INTO `MyEntity` (`int`,`short`,`byte`,`long`,`char`,`float`,`double`) VALUES (?,?,?,?,?,?,?)" protected override fun bind(statement: SQLiteStatement, entity: MyEntity) { val _tmpInt: Int? = entity.int if (_tmpInt == null) { statement.bindNull(1) } else { statement.bindLong(1, _tmpInt.toLong()) } val _tmpShort: Short? = entity.short if (_tmpShort == null) { statement.bindNull(2) } else { statement.bindLong(2, _tmpShort.toLong()) } val _tmpByte: Byte? = entity.byte if (_tmpByte == null) { statement.bindNull(3) } else { statement.bindLong(3, _tmpByte.toLong()) } val _tmpLong: Long? = entity.long if (_tmpLong == null) { statement.bindNull(4) } else { statement.bindLong(4, _tmpLong) } val _tmpChar: Char? = entity.char if (_tmpChar == null) { statement.bindNull(5) } else { statement.bindLong(5, _tmpChar.toLong()) } val _tmpFloat: Float? = entity.float if (_tmpFloat == null) { statement.bindNull(6) } else { statement.bindDouble(6, _tmpFloat.toDouble()) } val _tmpDouble: Double? = entity.double if (_tmpDouble == null) { statement.bindNull(7) } else { statement.bindDouble(7, _tmpDouble) } } } } public override fun addEntity(item: MyEntity): Unit = performBlocking(__db, false, true) { _connection -> __insertAdapterOfMyEntity.insert(_connection, item) } public override fun getEntity(): MyEntity { val _sql: String = "SELECT * FROM MyEntity" return performBlocking(__db, true, false) { _connection -> val _stmt: SQLiteStatement = _connection.prepare(_sql) try { val _columnIndexOfInt: Int = getColumnIndexOrThrow(_stmt, "int") val _columnIndexOfShort: Int = getColumnIndexOrThrow(_stmt, "short") val _columnIndexOfByte: Int = getColumnIndexOrThrow(_stmt, "byte") val _columnIndexOfLong: Int = getColumnIndexOrThrow(_stmt, "long") val _columnIndexOfChar: Int = getColumnIndexOrThrow(_stmt, "char") val _columnIndexOfFloat: Int = getColumnIndexOrThrow(_stmt, "float") val _columnIndexOfDouble: Int = getColumnIndexOrThrow(_stmt, "double") val _result: MyEntity if (_stmt.step()) { val _tmpInt: Int? if (_stmt.isNull(_columnIndexOfInt)) { _tmpInt = null } else { _tmpInt = _stmt.getLong(_columnIndexOfInt).toInt() } val _tmpShort: Short? if (_stmt.isNull(_columnIndexOfShort)) { _tmpShort = null } else { _tmpShort = _stmt.getLong(_columnIndexOfShort).toShort() } val _tmpByte: Byte? if (_stmt.isNull(_columnIndexOfByte)) { _tmpByte = null } else { _tmpByte = _stmt.getLong(_columnIndexOfByte).toByte() } val _tmpLong: Long? if (_stmt.isNull(_columnIndexOfLong)) { _tmpLong = null } else { _tmpLong = _stmt.getLong(_columnIndexOfLong) } val _tmpChar: Char? if (_stmt.isNull(_columnIndexOfChar)) { _tmpChar = null } else { _tmpChar = _stmt.getLong(_columnIndexOfChar).toChar() } val _tmpFloat: Float? if (_stmt.isNull(_columnIndexOfFloat)) { _tmpFloat = null } else { _tmpFloat = _stmt.getDouble(_columnIndexOfFloat).toFloat() } val _tmpDouble: Double? if (_stmt.isNull(_columnIndexOfDouble)) { _tmpDouble = null } else { _tmpDouble = _stmt.getDouble(_columnIndexOfDouble) } _result = MyEntity(_tmpInt,_tmpShort,_tmpByte,_tmpLong,_tmpChar,_tmpFloat,_tmpDouble) } 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 companion object { public fun getRequiredConverters(): List> = emptyList() } }