package androidx.room {
public class DatabaseConfiguration {
method public boolean isMigrationRequiredFrom(int);
field public final boolean allowMainThreadQueries;
field public final java.util.List<androidx.room.RoomDatabase.Callback> callbacks;
field public final android.content.Context context;
field public final androidx.room.RoomDatabase.JournalMode journalMode;
field public final androidx.room.RoomDatabase.MigrationContainer migrationContainer;
field public final java.lang.String name;
field public final boolean requireMigration;
field public final androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory;
}
public class InvalidationTracker {
method public void addObserver(androidx.room.InvalidationTracker.Observer);
method public void refreshVersionsAsync();
method public void removeObserver(androidx.room.InvalidationTracker.Observer);
}
public static abstract class InvalidationTracker.Observer {
ctor protected InvalidationTracker.Observer(java.lang.String, java.lang.String...);
ctor public InvalidationTracker.Observer(java.lang.String[]);
method public abstract void onInvalidated(java.util.Set<java.lang.String>);
}
public class Room {
ctor public deprecated Room();
method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context, java.lang.Class<T>, java.lang.String);
method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context, java.lang.Class<T>);
field public static final java.lang.String MASTER_TABLE_NAME = "room_master_table";
}
public abstract class RoomDatabase {
ctor public RoomDatabase();
method public void beginTransaction();
method public abstract void clearAllTables();
method public void close();
method public androidx.sqlite.db.SupportSQLiteStatement compileStatement(java.lang.String);
method protected abstract androidx.room.InvalidationTracker createInvalidationTracker();
method protected abstract androidx.sqlite.db.SupportSQLiteOpenHelper createOpenHelper(androidx.room.DatabaseConfiguration);
method public void endTransaction();
method public androidx.room.InvalidationTracker getInvalidationTracker();
method public androidx.sqlite.db.SupportSQLiteOpenHelper getOpenHelper();
method public boolean inTransaction();
method public void init(androidx.room.DatabaseConfiguration);
method protected void internalInitInvalidationTracker(androidx.sqlite.db.SupportSQLiteDatabase);
method public boolean isOpen();
method public android.database.Cursor query(java.lang.String, java.lang.Object[]);
method public android.database.Cursor query(androidx.sqlite.db.SupportSQLiteQuery);
method public void runInTransaction(java.lang.Runnable);
method public <V> V runInTransaction(java.util.concurrent.Callable<V>);
method public void setTransactionSuccessful();
field protected java.util.List<androidx.room.RoomDatabase.Callback> mCallbacks;
field protected volatile androidx.sqlite.db.SupportSQLiteDatabase mDatabase;
}
public static class RoomDatabase.Builder<T extends androidx.room.RoomDatabase> {
method public androidx.room.RoomDatabase.Builder<T> addCallback(androidx.room.RoomDatabase.Callback);
method public androidx.room.RoomDatabase.Builder<T> addMigrations(androidx.room.migration.Migration...);
method public androidx.room.RoomDatabase.Builder<T> allowMainThreadQueries();
method public T build();
method public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration();
method public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(int...);
method public androidx.room.RoomDatabase.Builder<T> openHelperFactory(androidx.sqlite.db.SupportSQLiteOpenHelper.Factory);
method public androidx.room.RoomDatabase.Builder<T> setJournalMode(androidx.room.RoomDatabase.JournalMode);
}
public static abstract class RoomDatabase.Callback {
ctor public RoomDatabase.Callback();
method public void onCreate(androidx.sqlite.db.SupportSQLiteDatabase);
method public void onOpen(androidx.sqlite.db.SupportSQLiteDatabase);
}
public static final class RoomDatabase.JournalMode extends java.lang.Enum {
method public static androidx.room.RoomDatabase.JournalMode valueOf(java.lang.String);
method public static final androidx.room.RoomDatabase.JournalMode[] values();
enum_constant public static final androidx.room.RoomDatabase.JournalMode AUTOMATIC;
enum_constant public static final androidx.room.RoomDatabase.JournalMode TRUNCATE;
enum_constant public static final androidx.room.RoomDatabase.JournalMode WRITE_AHEAD_LOGGING;
}
public static class RoomDatabase.MigrationContainer {
ctor public RoomDatabase.MigrationContainer();
method public void addMigrations(androidx.room.migration.Migration...);
method public java.util.List<androidx.room.migration.Migration> findMigrationPath(int, int);
}
}
package androidx.room.migration {
public abstract class Migration {
ctor public Migration(int, int);
method public abstract void migrate(androidx.sqlite.db.SupportSQLiteDatabase);
field public final int endVersion;
field public final int startVersion;
}
}