Home
last modified time | relevance | path

Searched refs:TableInfo (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/room/runtime/src/androidTest/java/androidx/room/migration/
DTableInfoTest.java32 import androidx.room.util.TableInfo;
61 TableInfo info = TableInfo.read(mDb, "foo"); in readSimple()
62 assertThat(info, is(new TableInfo("foo", in readSimple()
63 toMap(new TableInfo.Column("id", "INTEGER", false, 1), in readSimple()
64 new TableInfo.Column("name", "TEXT", false, 0)), in readSimple()
65 Collections.<TableInfo.ForeignKey>emptySet()))); in readSimple()
73 TableInfo info = TableInfo.read(mDb, "foo"); in multiplePrimaryKeys()
74 assertThat(info, is(new TableInfo("foo", in multiplePrimaryKeys()
75 toMap(new TableInfo.Column("id", "INTEGER", false, 2), in multiplePrimaryKeys()
76 new TableInfo.Column("name", "TEXT", false, 1)), in multiplePrimaryKeys()
[all …]
/frameworks/support/room/compiler/src/test/data/databasewriter/output/
DComplexDatabase.java7 import androidx.room.util.TableInfo;
8 import androidx.room.util.TableInfo.Column;
9 import androidx.room.util.TableInfo.ForeignKey;
10 import androidx.room.util.TableInfo.Index;
65 … final HashMap<String, TableInfo.Column> _columnsUser = new HashMap<String, TableInfo.Column>(4); in createOpenHelper()
66 _columnsUser.put("uid", new TableInfo.Column("uid", "INTEGER", true, 1)); in createOpenHelper()
67 _columnsUser.put("name", new TableInfo.Column("name", "TEXT", false, 0)); in createOpenHelper()
68 _columnsUser.put("lastName", new TableInfo.Column("lastName", "TEXT", false, 0)); in createOpenHelper()
69 … _columnsUser.put("ageColumn", new TableInfo.Column("ageColumn", "INTEGER", true, 0)); in createOpenHelper()
70 … final HashSet<TableInfo.ForeignKey> _foreignKeysUser = new HashSet<TableInfo.ForeignKey>(0); in createOpenHelper()
[all …]
/frameworks/support/room/testing/src/main/java/androidx/room/testing/
DMigrationTestHelper.java35 import androidx.room.util.TableInfo;
294 private static TableInfo toTableInfo(EntityBundle entityBundle) { in toTableInfo()
295 return new TableInfo(entityBundle.getTableName(), toColumnMap(entityBundle), in toTableInfo()
299 private static Set<TableInfo.Index> toIndices(List<IndexBundle> indices) { in toIndices()
303 Set<TableInfo.Index> result = new HashSet<>(); in toIndices()
305 result.add(new TableInfo.Index(bundle.getName(), bundle.isUnique(), in toIndices()
311 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()
325 private static Map<String, TableInfo.Column> toColumnMap(EntityBundle entity) { in toColumnMap()
[all …]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
DMigrationTest.java37 import androidx.room.util.TableInfo;
173 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME); in removeColumn()
182 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME); in dropTable()
196 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME); in failedToDropTableDontVerify()
227 final TableInfo info = TableInfo.read(db, MigrationDb.Entity4.TABLE_NAME); in newTableWithForeignKey()
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
DMigrationKotlinTest.kt23 import androidx.room.util.TableInfo
166 val info = TableInfo.read(db, MigrationDbKotlin.Entity3.TABLE_NAME) in removeColumn()
176 val info = TableInfo.read(db, MigrationDbKotlin.Entity3.TABLE_NAME) in dropTable()
192 val info = TableInfo.read(db, MigrationDbKotlin.Entity3.TABLE_NAME) in failedToDropTableDontVerify()
225 val info = TableInfo.read(db, MigrationDbKotlin.Entity4.TABLE_NAME) in newTableWithForeignKey()
/frameworks/support/room/runtime/src/main/java/androidx/room/util/
DTableInfo.java53 public class TableInfo { class
73 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys, in TableInfo() method in TableInfo
85 public TableInfo(String name, Map<String, Column> columns, Set<ForeignKey> foreignKeys) { in TableInfo() method in TableInfo
94 TableInfo tableInfo = (TableInfo) o; in equals()
139 public static TableInfo read(SupportSQLiteDatabase database, String tableName) { in read()
143 return new TableInfo(tableName, columns, foreignKeys, indices); in read()
/frameworks/support/jetifier/jetifier/core/src/main/resources/
Ddefault.generated.config2441 "android/arch/persistence/room/util/TableInfo": "androidx/room/util/TableInfo",