Home
last modified time | relevance | path

Searched refs:foreignKeys (Results 1 – 24 of 24) sorted by relevance

/frameworks/support/room/runtime/src/main/java/androidx/room/util/
DTableInfo.java63 public final Set<ForeignKey> foreignKeys; field in TableInfo
73 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys, in TableInfo() argument
77 this.foreignKeys = Collections.unmodifiableSet(foreignKeys); in TableInfo()
85 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys) { in TableInfo() argument
86 this(name, columns, foreignKeys, Collections.<Index>emptySet()); in TableInfo()
100 if (foreignKeys != null ? !foreignKeys.equals(tableInfo.foreignKeys) in equals()
101 : tableInfo.foreignKeys != null) { in equals()
116 result = 31 * result + (foreignKeys != null ? foreignKeys.hashCode() : 0); in hashCode()
126 + ", foreignKeys=" + foreignKeys in toString()
141 Set<ForeignKey> foreignKeys = readForeignKeys(database, tableName); in read() local
[all …]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
DEntity.kt29 val foreignKeys: List<ForeignKey>, in <lambda>() constant
44 identityKey.appendSorted(foreignKeys) in <lambda>()
57 return foreignKeys.map { it.databaseDefinition() } in <lambda>()
70 return foreignKeys.any { in <lambda>()
83 foreignKeys.map { it.toBundle() }) in <lambda>()
/frameworks/support/room/runtime/src/androidTest/java/androidx/room/migration/
DTableInfoTest.java122 assertThat(info.foreignKeys.size(), is(1)); in foreignKey()
123 final TableInfo.ForeignKey foreignKey = info.foreignKeys.iterator().next(); in foreignKey()
140 assertThat(info.foreignKeys.size(), is(2)); in multipleForeignKeys()
153 assertThat(info.foreignKeys, equalTo(expected)); in multipleForeignKeys()
164 assertThat(info.foreignKeys.size(), is(1)); in compositeForeignKey()
172 assertThat(info.foreignKeys.iterator().next(), is(expected)); in compositeForeignKey()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
DEntityTest.kt72 foreignKeys: List<ForeignKey> = emptyList()): Entity { in createEntity()
81 foreignKeys = foreignKeys, in createEntity()
/frameworks/support/room/migration/src/main/java/androidx/room/migration/bundle/
DEntityBundle.java74 List<ForeignKeyBundle> foreignKeys) { in EntityBundle() argument
80 mForeignKeys = foreignKeys; in EntityBundle()
/frameworks/support/room/common/src/main/java/androidx/room/
DEntity.java122 ForeignKey[] foreignKeys() default {}; in foreignKeys() method
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DForeignKeyTest.java131 @Entity(foreignKeys = {
147 @Entity(foreignKeys = {
163 @Entity(foreignKeys = {
180 @Entity(foreignKeys = {
DRelationWithReservedKeywordTest.java140 foreignKeys = @ForeignKey(
DClearAllTablesTest.java82 @Entity(foreignKeys = {
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/
DBook.kt24 @Entity(foreignKeys = arrayOf(
DBookAuthor.kt22 @Entity(foreignKeys = arrayOf(
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
DTableInfoValidationWriter.kt60 foreignKeySetType, entity.foreignKeys.size) in <lambda>()
61 entity.foreignKeys.forEach { in <lambda>()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkName.java32 @Entity(foreignKeys = {
DWorkTag.java32 @Entity(foreignKeys = {
DDependency.java32 @Entity(foreignKeys = {
DSystemIdInfo.java31 @Entity(foreignKeys = {
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
DMigrationDbKotlin.kt63 @Entity(foreignKeys = arrayOf(ForeignKey(entity = Entity1::class,
DMigrationKotlinTest.kt226 assertThat(info.foreignKeys.size, `is`(1)) in newTableWithForeignKey()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
DMigrationDb.java71 @Entity(foreignKeys = {
DMigrationTest.java228 assertThat(info.foreignKeys.size(), is(1)); in newTableWithForeignKey()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DDatabaseProcessor.kt103 val hasForeignKeys = entities.any { it.foreignKeys.isNotEmpty() } in <lambda>()
119 entity.foreignKeys.forEach foreignKeyLoop@ { foreignKey -> in <lambda>()
DEntityProcessor.kt144 foreignKeys = entityForeignKeys, in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/verifier/
DDatabaseVerifierTest.kt224 foreignKeys = emptyList(), in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DEntityProcessorTest.kt1641 assertThat(entity.foreignKeys.size, `is`(1)) in <lambda>()
1642 val fKey = entity.foreignKeys.first() in <lambda>()