Searched refs:ForeignKey (Results 1 - 22 of 22) sorted by relevance

/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/
H A 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,
H A DBook.kt20 import androidx.room.ForeignKey
25 ForeignKey(entity = Publisher::class,
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DForeignKeyAction.kt19 import androidx.room.ForeignKey
22 * Compiler representation of ForeignKey#Action.
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");
H A DForeignKey.kt24 data class ForeignKey(val parentTable: String,
H A DEntity.kt29 val foreignKeys: List<ForeignKey>,
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
H A 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)},
H A DWorkName.java21 import android.arch.persistence.room.ForeignKey;
33 @ForeignKey(
37 onDelete = ForeignKey.CASCADE,
38 onUpdate = ForeignKey.CASCADE)},
H A DWorkTag.java21 import android.arch.persistence.room.ForeignKey;
33 @ForeignKey(
37 onDelete = ForeignKey.CASCADE,
38 onUpdate = ForeignKey.CASCADE)},
H A 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/
H A DTableInfoTest.java65 Collections.<TableInfo.ForeignKey>emptySet())));
77 Collections.<TableInfo.ForeignKey>emptySet())));
91 Collections.<TableInfo.ForeignKey>emptySet())));
101 Collections.<TableInfo.ForeignKey>emptySet())));
112 Collections.<TableInfo.ForeignKey>emptySet())));
123 final TableInfo.ForeignKey foreignKey = info.foreignKeys.iterator().next();
141 Set<TableInfo.ForeignKey> expected = new HashSet<>();
142 expected.add(new TableInfo.ForeignKey("foo2", // table
148 expected.add(new TableInfo.ForeignKey("foo", // table
165 TableInfo.ForeignKey expecte
[all...]
/frameworks/support/room/common/src/main/java/androidx/room/
H A DEntity.java118 * List of {@link ForeignKey} constraints on this entity.
120 * @return The list of {@link ForeignKey} constraints on this entity.
122 ForeignKey[] foreignKeys() default {};
H A DForeignKey.java49 public @interface ForeignKey { interface
/frameworks/support/room/runtime/src/main/java/androidx/room/util/
H A DTableInfo.java63 public final Set<ForeignKey> foreignKeys;
73 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys,
85 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys) {
141 Set<ForeignKey> foreignKeys = readForeignKeys(database, tableName);
146 private static Set<ForeignKey> readForeignKeys(SupportSQLiteDatabase database,
148 Set<ForeignKey> foreignKeys = new HashSet<>();
175 foreignKeys.add(new ForeignKey(
442 public static class ForeignKey { class in class:TableInfo
454 public ForeignKey(@NonNull String referenceTable, @NonNull String onDelete, method in class:TableInfo.ForeignKey
469 ForeignKey tha
[all...]
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
H A DEntityTest.kt72 foreignKeys: List<ForeignKey> = emptyList()): Entity {
88 deferred: Boolean): ForeignKey {
89 return ForeignKey(
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
H A 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)})
H A DRelationWithReservedKeywordTest.java33 import androidx.room.ForeignKey;
140 foreignKeys = @ForeignKey(
144 onDelete = ForeignKey.CASCADE),
H A DClearAllTablesTest.java39 import androidx.room.ForeignKey;
83 @ForeignKey(entity = Parent.class, parentColumns = "id", childColumns = "parentId")})
/frameworks/support/room/compiler/src/test/data/databasewriter/output/
H A DComplexDatabase.java9 import androidx.room.util.TableInfo.ForeignKey;
70 final HashSet<TableInfo.ForeignKey> _foreignKeysUser = new HashSet<TableInfo.ForeignKey>(0);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
H A DMigrationDb.java26 import androidx.room.ForeignKey;
72 @ForeignKey(entity = Entity1.class,
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
H A DMigrationDbKotlin.kt24 import androidx.room.ForeignKey
63 @Entity(foreignKeys = arrayOf(ForeignKey(entity = Entity1::class,
/frameworks/support/room/testing/src/main/java/androidx/room/testing/
H A DMigrationTestHelper.java311 private static Set<TableInfo.ForeignKey> toForeignKeys(
316 Set<TableInfo.ForeignKey> result = new HashSet<>(bundles.size());
318 result.add(new TableInfo.ForeignKey(bundle.getTable(),
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
H A DEntityProcessor.kt32 import androidx.room.vo.ForeignKey
150 private fun checkIndicesForForeignKeys(entityForeignKeys: List<ForeignKey>,
179 pojo: Pojo): List<ForeignKey> {
229 ForeignKey(
579 * ForeignKey, before it is processed in the context of a database.

Completed in 211 milliseconds