| /room/room-compiler/src/main/kotlin/androidx/room/vo/ |
| D | Entity.kt | 32 val primaryKey: PrimaryKey, in <lambda>() constant 48 identityKey.append(primaryKey) in <lambda>() 59 primaryKey.autoGenerateId && primaryKey.properties.contains(it) in <lambda>() 71 return if (primaryKey.properties.isEmpty() || primaryKey.autoGenerateId) { in <lambda>() 74 val keys = primaryKey.columnNames.joinToString(", ") { "`$it`" } in <lambda>() 92 primaryKey.toBundle(), in <lambda>() 99 primaryKey.columnNames.size == columns.size && in <lambda>() 100 primaryKey.columnNames.containsAll(columns) in <lambda>()
|
| D | ShortcutEntity.kt | 27 val primaryKey by lazy { in <lambda>() constant 29 entity.primaryKey in <lambda>() 32 entity.primaryKey.properties.mapNotNull { in <lambda>() 35 entity.primaryKey.copy(properties = Properties(partialEntityPrimaryKeyFields)) in <lambda>()
|
| D | FtsEntity.kt | 32 primaryKey: PrimaryKey, in <lambda>() 44 primaryKey, in <lambda>() 56 primaryKey.properties.isNotEmpty() && primaryKey.properties.first() == it || in <lambda>() 148 primaryKey.toBundle(), in <lambda>()
|
| /room/room-migration/src/commonTest/kotlin/androidx/room/migration/bundle/ |
| D | EntityBundleTest.kt | 30 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_same_equal() 40 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_same_equal() 55 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_reorderedFields_equal() 65 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_reorderedFields_equal() 80 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_diffFields_notEqual() 90 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_diffFields_notEqual() 105 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_reorderedForeignKeys_equal() 116 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_reorderedForeignKeys_equal() 132 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_diffForeignKeys_notEqual() 142 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_diffForeignKeys_notEqual() [all …]
|
| D | DatabaseBundleTest.kt | 31 primaryKey = PrimaryKeyBundle(false, listOf("foo1")), in buildCreateQueries_noFts() 40 primaryKey = PrimaryKeyBundle(false, listOf("foo2")), in buildCreateQueries_noFts() 63 primaryKey = PrimaryKeyBundle(false, listOf("foo1")), in buildCreateQueries_withFts() 72 primaryKey = PrimaryKeyBundle(false, listOf("foo2")), in buildCreateQueries_withFts() 82 primaryKey = PrimaryKeyBundle(false, listOf("foo3")), in buildCreateQueries_withFts() 105 primaryKey = PrimaryKeyBundle(false, listOf("foo1")), in buildCreateQueries_withExternalContentFts() 114 primaryKey = PrimaryKeyBundle(false, listOf("foo2")), in buildCreateQueries_withExternalContentFts() 124 primaryKey = PrimaryKeyBundle(false, listOf("foo3")), in buildCreateQueries_withExternalContentFts() 147 primaryKey = PrimaryKeyBundle(false, listOf("foo")), in schemaEquality_missingView_notEqual()
|
| /room/room-migration/src/commonMain/kotlin/androidx/room/migration/bundle/ |
| D | EntityBundle.kt | 31 @SerialName("primaryKey") override val primaryKey: PrimaryKeyBundle, in <lambda>() constant in androidx.room.migration.bundle.EntityBundle 49 checkSchemaEquality(primaryKey, other.primaryKey) && in <lambda>()
|
| D | FtsEntityBundle.kt | 34 @SerialName("primaryKey") override val primaryKey: PrimaryKeyBundle, in <lambda>() constant in androidx.room.migration.bundle.FtsEntityBundle 55 checkSchemaEquality(primaryKey, other.primaryKey) && in <lambda>()
|
| D | BaseEntityBundle.kt | 30 @SerialName("primaryKey") abstract val primaryKey: PrimaryKeyBundle constant in androidx.room.migration.bundle.BaseEntityBundle
|
| /room/room-compiler/src/main/kotlin/androidx/room/processor/ |
| D | UpsertFunctionProcessor.kt | 51 entity.primaryKey.properties.any { in <lambda>() 55 entity.primaryKey.autoGenerateId || !missingPrimaryKeys, in <lambda>() 59 primaryKeyNames = entity.primaryKey.properties.columnNames in <lambda>() 66 (entity.properties - entity.primaryKey.properties).filter { in <lambda>()
|
| D | InsertFunctionProcessor.kt | 60 entity.primaryKey.properties.any { in <lambda>() 64 entity.primaryKey.autoGenerateId || !missingPrimaryKeys, in <lambda>() 68 primaryKeyNames = entity.primaryKey.properties.columnNames in <lambda>() 75 (entity.properties - entity.primaryKey.properties).filter { in <lambda>()
|
| D | FtsTableEntityProcessor.kt | 65 primaryKey = PrimaryKey.MISSING, in <lambda>() 136 val primaryKey = findAndValidatePrimaryKey(entityAnnotation, pojo.properties) in <lambda>() constant 159 primaryKey = primaryKey, in <lambda>() 281 val primaryKey = primaryKeys.first() in <lambda>() constant 283 primaryKey.columnNames.first() == "rowid", in <lambda>() 284 primaryKey.declaredIn ?: element, in <lambda>() 288 primaryKey.properties.first().affinity == SQLTypeAffinity.INTEGER, in <lambda>() 289 primaryKey.declaredIn ?: element, in <lambda>() 292 return primaryKey in <lambda>()
|
| D | TableEntityProcessor.kt | 67 primaryKey = PrimaryKey.MISSING, in <lambda>() 157 val primaryKey = findAndValidatePrimaryKey(pojo.properties, pojo.embeddedProperties) in <lambda>() constant 158 val affinity = primaryKey.properties.firstOrNull()?.affinity ?: SQLTypeAffinity.TEXT in <lambda>() 160 !primaryKey.autoGenerateId || affinity == SQLTypeAffinity.INTEGER, in <lambda>() 161 primaryKey.properties.firstOrNull()?.element ?: element, in <lambda>() 166 checkIndicesForForeignKeys(entityForeignKeys, primaryKey, indices) in <lambda>() 189 primaryKey = primaryKey, in <lambda>() 200 primaryKey: PrimaryKey, in <lambda>() 210 covers(columnNames, primaryKey.properties) || in <lambda>()
|
| D | UpdateFunctionProcessor.kt | 51 entity.primaryKey.properties.filter { in <lambda>()
|
| /room/room-compiler/src/test/kotlin/androidx/room/processor/ |
| D | TableEntityProcessorTest.kt | 86 assertThat(entity.primaryKey.properties, `is`(Properties(field))) in <lambda>() 547 assertThat(entity.primaryKey.properties.map { it.name }, `is`(listOf("id"))) in <lambda>() 572 assertThat(entity.primaryKey.properties.map { it.name }, `is`(listOf("id"))) in <lambda>() 1298 assertThat(entity.primaryKey.properties.isEmpty(), `is`(true)) in <lambda>() 1332 assertThat(entity.primaryKey.properties.firstOrNull()?.name, `is`("baseId")) in <lambda>() 1360 assertThat(entity.primaryKey.properties.firstOrNull()?.name, `is`("baseId")) in <lambda>() 1389 assertThat(entity.primaryKey.properties.size, `is`(1)) in <lambda>() 1390 assertThat(entity.primaryKey.properties.firstOrNull()?.name, `is`("id")) in <lambda>() 1391 assertThat(entity.primaryKey.autoGenerateId, `is`(false)) in <lambda>() 1422 assertThat(entity.primaryKey.properties.size, `is`(1)) in <lambda>() [all …]
|
| D | Fts3TableEntityProcessorTest.kt | 94 assertThat(entity.primaryKey.properties, `is`(Properties(field))) in <lambda>()
|
| /room/room-compiler/src/test/kotlin/androidx/room/vo/ |
| D | FtsEntityTest.kt | 55 primaryKey = in createStatement() 107 primaryKey = in createStatement_simpleTokenizer_withTokenizerArgs() 151 primaryKey = in createStatement_simpleTokenizer_noTokenizerArgs() 190 primaryKey = in createStatement_nonSimpleTokenizer_withTokenizerArgs() 234 primaryKey = in createStatement_nonSimpleTokenizer_noTokenizerArgs()
|
| D | DatabaseTest.kt | 47 primaryKey = in indexLegacyHash()
|
| D | EntityTest.kt | 85 primaryKey = PrimaryKey(mock(XElement::class.java), Properties(), false), in createEntity()
|
| /room/room-compiler/src/main/kotlin/androidx/room/writer/ |
| D | EntityInsertAdapterWriter.kt | 45 if (entity.primaryKey.autoGenerateId) { in <lambda>() 46 entity.primaryKey.properties.firstOrNull()?.let { field -> in <lambda>()
|
| D | EntityDeleteAdapterWriter.kt | 41 entity.primaryKey.properties in create()
|
| D | EntityUpdateAdapterWriter.kt | 44 primaryKeyFields = entity.primaryKey.properties, in <lambda>()
|
| D | TableInfoValidationWriter.kt | 80 entity.primaryKey.properties.indexOf(field) + 1, // pkeyPos in <lambda>()
|
| /room/room-migration/bcv/native/ |
| D | current.txt | 152 … final val primaryKey // androidx.room.migration.bundle/FtsEntityBundle.primaryKey|{}primaryKey[0] 153 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/F… 315 open val primaryKey // androidx.room.migration.bundle/EntityBundle.primaryKey|{}primaryKey[0] 316 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/E… 348 …abstract val primaryKey // androidx.room.migration.bundle/BaseEntityBundle.primaryKey|{}primaryKey… 349 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/B…
|
| D | 2.7.0-beta01.txt | 152 … final val primaryKey // androidx.room.migration.bundle/FtsEntityBundle.primaryKey|{}primaryKey[0] 153 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/F… 315 open val primaryKey // androidx.room.migration.bundle/EntityBundle.primaryKey|{}primaryKey[0] 316 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/E… 348 …abstract val primaryKey // androidx.room.migration.bundle/BaseEntityBundle.primaryKey|{}primaryKey… 349 …primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/B…
|
| /room/room-testing/src/commonMain/kotlin/androidx/room/testing/ |
| D | BundleUtil.kt | 116 return entity.primaryKey.columnNames.indexOfFirst { columnName -> in findPrimaryKeyPosition()
|