1package android.arch.persistence.room { 2 3 public class DatabaseConfiguration { 4 method public boolean isMigrationRequiredFrom(int); 5 field public final boolean allowMainThreadQueries; 6 field public final java.util.List<android.arch.persistence.room.RoomDatabase.Callback> callbacks; 7 field public final android.content.Context context; 8 field public final android.arch.persistence.room.RoomDatabase.JournalMode journalMode; 9 field public final android.arch.persistence.room.RoomDatabase.MigrationContainer migrationContainer; 10 field public final java.lang.String name; 11 field public final boolean requireMigration; 12 field public final android.arch.persistence.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory; 13 } 14 15 public class InvalidationTracker { 16 method public void addObserver(android.arch.persistence.room.InvalidationTracker.Observer); 17 method public void refreshVersionsAsync(); 18 method public void removeObserver(android.arch.persistence.room.InvalidationTracker.Observer); 19 } 20 21 public static abstract class InvalidationTracker.Observer { 22 ctor protected InvalidationTracker.Observer(java.lang.String, java.lang.String...); 23 ctor public InvalidationTracker.Observer(java.lang.String[]); 24 method public abstract void onInvalidated(java.util.Set<java.lang.String>); 25 } 26 27 public class Room { 28 ctor public Room(); 29 method public static <T extends android.arch.persistence.room.RoomDatabase> android.arch.persistence.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context, java.lang.Class<T>, java.lang.String); 30 method public static <T extends android.arch.persistence.room.RoomDatabase> android.arch.persistence.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context, java.lang.Class<T>); 31 field public static final java.lang.String MASTER_TABLE_NAME = "room_master_table"; 32 } 33 34 public abstract class RoomDatabase { 35 ctor public RoomDatabase(); 36 method public void beginTransaction(); 37 method public abstract void clearAllTables(); 38 method public void close(); 39 method public android.arch.persistence.db.SupportSQLiteStatement compileStatement(java.lang.String); 40 method protected abstract android.arch.persistence.room.InvalidationTracker createInvalidationTracker(); 41 method protected abstract android.arch.persistence.db.SupportSQLiteOpenHelper createOpenHelper(android.arch.persistence.room.DatabaseConfiguration); 42 method public void endTransaction(); 43 method public android.arch.persistence.room.InvalidationTracker getInvalidationTracker(); 44 method public android.arch.persistence.db.SupportSQLiteOpenHelper getOpenHelper(); 45 method public boolean inTransaction(); 46 method public void init(android.arch.persistence.room.DatabaseConfiguration); 47 method protected void internalInitInvalidationTracker(android.arch.persistence.db.SupportSQLiteDatabase); 48 method public boolean isOpen(); 49 method public android.database.Cursor query(java.lang.String, java.lang.Object[]); 50 method public android.database.Cursor query(android.arch.persistence.db.SupportSQLiteQuery); 51 method public void runInTransaction(java.lang.Runnable); 52 method public <V> V runInTransaction(java.util.concurrent.Callable<V>); 53 method public void setTransactionSuccessful(); 54 field protected java.util.List<android.arch.persistence.room.RoomDatabase.Callback> mCallbacks; 55 field protected volatile android.arch.persistence.db.SupportSQLiteDatabase mDatabase; 56 } 57 58 public static class RoomDatabase.Builder<T extends android.arch.persistence.room.RoomDatabase> { 59 method public android.arch.persistence.room.RoomDatabase.Builder<T> addCallback(android.arch.persistence.room.RoomDatabase.Callback); 60 method public android.arch.persistence.room.RoomDatabase.Builder<T> addMigrations(android.arch.persistence.room.migration.Migration...); 61 method public android.arch.persistence.room.RoomDatabase.Builder<T> allowMainThreadQueries(); 62 method public T build(); 63 method public android.arch.persistence.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration(); 64 method public android.arch.persistence.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(int...); 65 method public android.arch.persistence.room.RoomDatabase.Builder<T> openHelperFactory(android.arch.persistence.db.SupportSQLiteOpenHelper.Factory); 66 method public android.arch.persistence.room.RoomDatabase.Builder<T> setJournalMode(android.arch.persistence.room.RoomDatabase.JournalMode); 67 } 68 69 public static abstract class RoomDatabase.Callback { 70 ctor public RoomDatabase.Callback(); 71 method public void onCreate(android.arch.persistence.db.SupportSQLiteDatabase); 72 method public void onOpen(android.arch.persistence.db.SupportSQLiteDatabase); 73 } 74 75 public static final class RoomDatabase.JournalMode extends java.lang.Enum { 76 method public static android.arch.persistence.room.RoomDatabase.JournalMode valueOf(java.lang.String); 77 method public static final android.arch.persistence.room.RoomDatabase.JournalMode[] values(); 78 enum_constant public static final android.arch.persistence.room.RoomDatabase.JournalMode AUTOMATIC; 79 enum_constant public static final android.arch.persistence.room.RoomDatabase.JournalMode TRUNCATE; 80 enum_constant public static final android.arch.persistence.room.RoomDatabase.JournalMode WRITE_AHEAD_LOGGING; 81 } 82 83 public static class RoomDatabase.MigrationContainer { 84 ctor public RoomDatabase.MigrationContainer(); 85 method public void addMigrations(android.arch.persistence.room.migration.Migration...); 86 method public java.util.List<android.arch.persistence.room.migration.Migration> findMigrationPath(int, int); 87 } 88 89} 90 91package android.arch.persistence.room.migration { 92 93 public abstract class Migration { 94 ctor public Migration(int, int); 95 method public abstract void migrate(android.arch.persistence.db.SupportSQLiteDatabase); 96 field public final int endVersion; 97 field public final int startVersion; 98 } 99 100} 101 102