Home
last modified time | relevance | path

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

/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/
DBookAuthor.kt20 import androidx.room.ForeignKey
23 ForeignKey(entity = Book::class,
26 onUpdate = ForeignKey.CASCADE,
27 onDelete = ForeignKey.CASCADE,
29 ForeignKey(entity = Author::class,
32 onUpdate = ForeignKey.CASCADE,
33 onDelete = ForeignKey.CASCADE,
DBook.kt20 import androidx.room.ForeignKey
25 ForeignKey(entity = Publisher::class,
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
DForeignKeyAction.kt19 import androidx.room.ForeignKey
25 NO_ACTION(ForeignKey.NO_ACTION, "NO ACTION"),
26 RESTRICT(ForeignKey.RESTRICT, "RESTRICT"),
27 SET_NULL(ForeignKey.SET_NULL, "SET NULL"),
28 SET_DEFAULT(ForeignKey.SET_DEFAULT, "SET DEFAULT"),
29 CASCADE(ForeignKey.CASCADE, "CASCADE");
DForeignKey.kt24 data class ForeignKey(val parentTable: String, dataClass
DEntity.kt29 val foreignKeys: List<ForeignKey>, in <lambda>()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DDependency.java21 import android.arch.persistence.room.ForeignKey;
33 @ForeignKey(
37 onDelete = ForeignKey.CASCADE,
38 onUpdate = ForeignKey.CASCADE),
39 @ForeignKey(
43 onDelete = ForeignKey.CASCADE,
44 onUpdate = ForeignKey.CASCADE)},
DWorkName.java21 import android.arch.persistence.room.ForeignKey;
33 @ForeignKey(
37 onDelete = ForeignKey.CASCADE,
38 onUpdate = ForeignKey.CASCADE)},
DWorkTag.java21 import android.arch.persistence.room.ForeignKey;
33 @ForeignKey(
37 onDelete = ForeignKey.CASCADE,
38 onUpdate = ForeignKey.CASCADE)},
DSystemIdInfo.java21 import android.arch.persistence.room.ForeignKey;
32 @ForeignKey(
36 onDelete = ForeignKey.CASCADE,
37 onUpdate = ForeignKey.CASCADE)})
/frameworks/support/room/runtime/src/androidTest/java/androidx/room/migration/
DTableInfoTest.java65 Collections.<TableInfo.ForeignKey>emptySet()))); in readSimple()
77 Collections.<TableInfo.ForeignKey>emptySet()))); in multiplePrimaryKeys()
91 Collections.<TableInfo.ForeignKey>emptySet()))); in alteredTable()
101 Collections.<TableInfo.ForeignKey>emptySet()))); in nonNull()
112 Collections.<TableInfo.ForeignKey>emptySet()))); in defaultValue()
123 final TableInfo.ForeignKey foreignKey = info.foreignKeys.iterator().next(); in foreignKey()
141 Set<TableInfo.ForeignKey> expected = new HashSet<>(); in multipleForeignKeys()
142 expected.add(new TableInfo.ForeignKey("foo2", // table in multipleForeignKeys()
148 expected.add(new TableInfo.ForeignKey("foo", // table in multipleForeignKeys()
165 TableInfo.ForeignKey expected = new TableInfo.ForeignKey( in compositeForeignKey()
[all …]
/frameworks/support/room/runtime/src/main/java/androidx/room/util/
DTableInfo.java63 public final Set<ForeignKey> foreignKeys;
73 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys, in TableInfo()
85 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys) { in TableInfo()
141 Set<ForeignKey> foreignKeys = readForeignKeys(database, tableName); in read()
146 private static Set<ForeignKey> readForeignKeys(SupportSQLiteDatabase database, in readForeignKeys()
148 Set<ForeignKey> foreignKeys = new HashSet<>(); in readForeignKeys()
175 foreignKeys.add(new ForeignKey( in readForeignKeys()
442 public static class ForeignKey { class in TableInfo
454 public ForeignKey(@NonNull String referenceTable, @NonNull String onDelete, in ForeignKey() method in TableInfo.ForeignKey
469 ForeignKey that = (ForeignKey) o; in equals()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DForeignKeyTest.java38 import androidx.room.ForeignKey;
132 @ForeignKey(entity = A.class,
148 @ForeignKey(entity = A.class,
164 @ForeignKey(entity = A.class,
167 onDelete = ForeignKey.CASCADE,
168 onUpdate = ForeignKey.CASCADE)})
181 @ForeignKey(entity = A.class,
184 onDelete = ForeignKey.SET_NULL,
185 onUpdate = ForeignKey.CASCADE)})
DRelationWithReservedKeywordTest.java33 import androidx.room.ForeignKey;
140 foreignKeys = @ForeignKey(
144 onDelete = ForeignKey.CASCADE),
DClearAllTablesTest.java39 import androidx.room.ForeignKey;
83 @ForeignKey(entity = Parent.class, parentColumns = "id", childColumns = "parentId")})
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
DEntityTest.kt72 foreignKeys: List<ForeignKey> = emptyList()): Entity { in createEntity()
88 deferred: Boolean): ForeignKey { in createForeignKey()
89 return ForeignKey( in createForeignKey()
/frameworks/support/room/compiler/src/test/data/databasewriter/output/
DComplexDatabase.java9 import androidx.room.util.TableInfo.ForeignKey;
70 … final HashSet<TableInfo.ForeignKey> _foreignKeysUser = new HashSet<TableInfo.ForeignKey>(0); in createOpenHelper()
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
DMigrationDbKotlin.kt24 import androidx.room.ForeignKey
63 @Entity(foreignKeys = arrayOf(ForeignKey(entity = Entity1::class,
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
DMigrationDb.java26 import androidx.room.ForeignKey;
72 @ForeignKey(entity = Entity1.class,
/frameworks/support/room/common/src/main/java/androidx/room/
DEntity.java122 ForeignKey[] foreignKeys() default {}; in foreignKeys()
DForeignKey.java49 public @interface ForeignKey { annotation
/frameworks/support/room/testing/src/main/java/androidx/room/testing/
DMigrationTestHelper.java311 private static Set<TableInfo.ForeignKey> toForeignKeys( in toForeignKeys()
316 Set<TableInfo.ForeignKey> result = new HashSet<>(bundles.size()); in toForeignKeys()
318 result.add(new TableInfo.ForeignKey(bundle.getTable(), in toForeignKeys()
/frameworks/support/room/common/api_legacy/
D1.0.0.txt37 public abstract class ForeignKey implements java.lang.annotation.Annotation {
45 public static abstract class ForeignKey.Action implements java.lang.annotation.Annotation {
/frameworks/support/room/common/api/
Dcurrent.txt39 public abstract class ForeignKey implements java.lang.annotation.Annotation {
47 public static abstract class ForeignKey.Action implements java.lang.annotation.Annotation {
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DEntityProcessor.kt32 import androidx.room.vo.ForeignKey in <lambda>()
150 private fun checkIndicesForForeignKeys(entityForeignKeys: List<ForeignKey>, in <lambda>()
179 pojo: Pojo): List<ForeignKey> { in <lambda>()
229 ForeignKey( in <lambda>()
/frameworks/support/jetifier/jetifier/core/src/main/resources/
Ddefault.generated.config2293 "android/arch/persistence/room/ForeignKey": "androidx/room/ForeignKey",
2459 "android/arch/persistence/room/vo/ForeignKey": "androidx/room/vo/ForeignKey",