Home
last modified time | relevance | path

Searched refs:primaryKey (Results 1 – 25 of 33) sorted by relevance

12

/room/room-compiler/src/main/kotlin/androidx/room/vo/
DEntity.kt32 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>()
DShortcutEntity.kt27 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>()
DFtsEntity.kt32 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/
DEntityBundleTest.kt30 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 …]
DDatabaseBundleTest.kt31 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/
DEntityBundle.kt31 @SerialName("primaryKey") override val primaryKey: PrimaryKeyBundle, in <lambda>() constant in androidx.room.migration.bundle.EntityBundle
49 checkSchemaEquality(primaryKey, other.primaryKey) && in <lambda>()
DFtsEntityBundle.kt34 @SerialName("primaryKey") override val primaryKey: PrimaryKeyBundle, in <lambda>() constant in androidx.room.migration.bundle.FtsEntityBundle
55 checkSchemaEquality(primaryKey, other.primaryKey) && in <lambda>()
DBaseEntityBundle.kt30 @SerialName("primaryKey") abstract val primaryKey: PrimaryKeyBundle constant in androidx.room.migration.bundle.BaseEntityBundle
/room/room-compiler/src/main/kotlin/androidx/room/processor/
DUpsertFunctionProcessor.kt51 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>()
DInsertFunctionProcessor.kt60 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>()
DFtsTableEntityProcessor.kt65 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>()
DTableEntityProcessor.kt67 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>()
DUpdateFunctionProcessor.kt51 entity.primaryKey.properties.filter { in <lambda>()
/room/room-compiler/src/test/kotlin/androidx/room/processor/
DTableEntityProcessorTest.kt86 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 …]
DFts3TableEntityProcessorTest.kt94 assertThat(entity.primaryKey.properties, `is`(Properties(field))) in <lambda>()
/room/room-compiler/src/test/kotlin/androidx/room/vo/
DFtsEntityTest.kt55 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()
DDatabaseTest.kt47 primaryKey = in indexLegacyHash()
DEntityTest.kt85 primaryKey = PrimaryKey(mock(XElement::class.java), Properties(), false), in createEntity()
/room/room-compiler/src/main/kotlin/androidx/room/writer/
DEntityInsertAdapterWriter.kt45 if (entity.primaryKey.autoGenerateId) { in <lambda>()
46 entity.primaryKey.properties.firstOrNull()?.let { field -> in <lambda>()
DEntityDeleteAdapterWriter.kt41 entity.primaryKey.properties in create()
DEntityUpdateAdapterWriter.kt44 primaryKeyFields = entity.primaryKey.properties, in <lambda>()
DTableInfoValidationWriter.kt80 entity.primaryKey.properties.indexOf(field) + 1, // pkeyPos in <lambda>()
/room/room-migration/bcv/native/
Dcurrent.txt152 … final val primaryKey // androidx.room.migration.bundle/FtsEntityBundle.primaryKey|{}primaryKey[0]
153primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/F…
315 open val primaryKey // androidx.room.migration.bundle/EntityBundle.primaryKey|{}primaryKey[0]
316primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/E…
348 …abstract val primaryKey // androidx.room.migration.bundle/BaseEntityBundle.primaryKey|{}primaryKey
349primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/B…
D2.7.0-beta01.txt152 … final val primaryKey // androidx.room.migration.bundle/FtsEntityBundle.primaryKey|{}primaryKey[0]
153primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/F…
315 open val primaryKey // androidx.room.migration.bundle/EntityBundle.primaryKey|{}primaryKey[0]
316primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/E…
348 …abstract val primaryKey // androidx.room.migration.bundle/BaseEntityBundle.primaryKey|{}primaryKey
349primaryKey>(): androidx.room.migration.bundle/PrimaryKeyBundle // androidx.room.migration.bundle/B…
/room/room-testing/src/commonMain/kotlin/androidx/room/testing/
DBundleUtil.kt116 return entity.primaryKey.columnNames.indexOfFirst { columnName -> in findPrimaryKeyPosition()

12