1 import androidx.room.InvalidationTracker 2 import androidx.room.RoomOpenDelegate 3 import androidx.room.migration.AutoMigrationSpec 4 import androidx.room.migration.Migration 5 import androidx.room.util.TableInfo 6 import androidx.room.util.TableInfo.Companion.read 7 import androidx.room.util.dropFtsSyncTriggers 8 import androidx.sqlite.SQLiteConnection 9 import androidx.sqlite.execSQL 10 import javax.`annotation`.processing.Generated 11 import kotlin.Lazy 12 import kotlin.String 13 import kotlin.Suppress 14 import kotlin.collections.List 15 import kotlin.collections.Map 16 import kotlin.collections.MutableList 17 import kotlin.collections.MutableMap 18 import kotlin.collections.MutableSet 19 import kotlin.collections.Set 20 import kotlin.collections.mutableListOf 21 import kotlin.collections.mutableMapOf 22 import kotlin.collections.mutableSetOf 23 import kotlin.reflect.KClass 24 25 @Generated(value = ["androidx.room.RoomProcessor"]) 26 @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"]) 27 public class MyDatabase_Impl : MyDatabase() { <lambda>null28 private val _myDao: Lazy<MyDao> = lazy { 29 MyDao_Impl(this) 30 } 31 createOpenDelegatenull32 protected override fun createOpenDelegate(): RoomOpenDelegate { 33 val _openDelegate: RoomOpenDelegate = object : RoomOpenDelegate(1, "195d7974660177325bd1a32d2c7b8b8c", "7458a901120796c5bbc554e2fefd262f") { 34 public override fun createAllTables(connection: SQLiteConnection) { 35 connection.execSQL("CREATE TABLE IF NOT EXISTS `MyEntity` (`pk` INTEGER NOT NULL, PRIMARY KEY(`pk`))") 36 connection.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)") 37 connection.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '195d7974660177325bd1a32d2c7b8b8c')") 38 } 39 40 public override fun dropAllTables(connection: SQLiteConnection) { 41 connection.execSQL("DROP TABLE IF EXISTS `MyEntity`") 42 } 43 44 public override fun onCreate(connection: SQLiteConnection) { 45 } 46 47 public override fun onOpen(connection: SQLiteConnection) { 48 internalInitInvalidationTracker(connection) 49 } 50 51 public override fun onPreMigrate(connection: SQLiteConnection) { 52 dropFtsSyncTriggers(connection) 53 } 54 55 public override fun onPostMigrate(connection: SQLiteConnection) { 56 } 57 58 public override fun onValidateSchema(connection: SQLiteConnection): RoomOpenDelegate.ValidationResult { 59 val _columnsMyEntity: MutableMap<String, TableInfo.Column> = mutableMapOf() 60 _columnsMyEntity.put("pk", TableInfo.Column("pk", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY)) 61 val _foreignKeysMyEntity: MutableSet<TableInfo.ForeignKey> = mutableSetOf() 62 val _indicesMyEntity: MutableSet<TableInfo.Index> = mutableSetOf() 63 val _infoMyEntity: TableInfo = TableInfo("MyEntity", _columnsMyEntity, _foreignKeysMyEntity, _indicesMyEntity) 64 val _existingMyEntity: TableInfo = read(connection, "MyEntity") 65 if (!_infoMyEntity.equals(_existingMyEntity)) { 66 return RoomOpenDelegate.ValidationResult(false, """ 67 |MyEntity(MyEntity). 68 | Expected: 69 |""".trimMargin() + _infoMyEntity + """ 70 | 71 | Found: 72 |""".trimMargin() + _existingMyEntity) 73 } 74 return RoomOpenDelegate.ValidationResult(true, null) 75 } 76 } 77 return _openDelegate 78 } 79 createInvalidationTrackernull80 protected override fun createInvalidationTracker(): InvalidationTracker { 81 val _shadowTablesMap: MutableMap<String, String> = mutableMapOf() 82 val _viewTables: MutableMap<String, Set<String>> = mutableMapOf() 83 return InvalidationTracker(this, _shadowTablesMap, _viewTables, "MyEntity") 84 } 85 clearAllTablesnull86 public override fun clearAllTables() { 87 super.performClear(false, "MyEntity") 88 } 89 getRequiredTypeConverterClassesnull90 protected override fun getRequiredTypeConverterClasses(): Map<KClass<*>, List<KClass<*>>> { 91 val _typeConvertersMap: MutableMap<KClass<*>, List<KClass<*>>> = mutableMapOf() 92 _typeConvertersMap.put(MyDao::class, MyDao_Impl.getRequiredConverters()) 93 return _typeConvertersMap 94 } 95 getRequiredAutoMigrationSpecClassesnull96 public override fun getRequiredAutoMigrationSpecClasses(): Set<KClass<out AutoMigrationSpec>> { 97 val _autoMigrationSpecsSet: MutableSet<KClass<out AutoMigrationSpec>> = mutableSetOf() 98 return _autoMigrationSpecsSet 99 } 100 createAutoMigrationsnull101 public override fun createAutoMigrations(autoMigrationSpecs: Map<KClass<out AutoMigrationSpec>, AutoMigrationSpec>): List<Migration> { 102 val _autoMigrations: MutableList<Migration> = mutableListOf() 103 return _autoMigrations 104 } 105 getDaonull106 public override fun getDao(): MyDao = _myDao.value 107 } 108