| // Signature format: 4.0 |
| package androidx.room { |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class CoroutinesRoom { |
| method @Deprecated public static <R> kotlinx.coroutines.flow.Flow<R> createFlow(androidx.room.RoomDatabase db, boolean inTransaction, String[] tableNames, java.util.concurrent.Callable<R> callable); |
| method @Deprecated public static suspend <R> Object? execute(androidx.room.RoomDatabase db, boolean inTransaction, android.os.CancellationSignal? cancellationSignal, java.util.concurrent.Callable<R> callable, kotlin.coroutines.Continuation<? super R>); |
| method @Deprecated public static suspend <R> Object? execute(androidx.room.RoomDatabase db, boolean inTransaction, java.util.concurrent.Callable<R> callable, kotlin.coroutines.Continuation<? super R>); |
| field public static final androidx.room.CoroutinesRoom.Companion Companion; |
| } |
| |
| public static final class CoroutinesRoom.Companion { |
| method @Deprecated public <R> kotlinx.coroutines.flow.Flow<R> createFlow(androidx.room.RoomDatabase db, boolean inTransaction, String[] tableNames, java.util.concurrent.Callable<R> callable); |
| method @Deprecated public suspend <R> Object? execute(androidx.room.RoomDatabase db, boolean inTransaction, android.os.CancellationSignal? cancellationSignal, java.util.concurrent.Callable<R> callable, kotlin.coroutines.Continuation<? super R>); |
| method @Deprecated public suspend <R> Object? execute(androidx.room.RoomDatabase db, boolean inTransaction, java.util.concurrent.Callable<R> callable, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public class DatabaseConfiguration { |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, boolean requireMigration, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, android.content.Intent? multiInstanceInvalidationServiceIntent, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback, java.util.List<?> typeConverters, java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, android.content.Intent? multiInstanceInvalidationServiceIntent, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback, java.util.List<?> typeConverters, java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs, boolean allowDestructiveMigrationForAllTables); |
| ctor @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, android.content.Intent? multiInstanceInvalidationServiceIntent, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback, java.util.List<?> typeConverters, java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs, boolean allowDestructiveMigrationForAllTables, androidx.sqlite.SQLiteDriver? sqliteDriver, kotlin.coroutines.CoroutineContext? queryCoroutineContext); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback, java.util.List<?> typeConverters); |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public DatabaseConfiguration(android.content.Context context, String? name, androidx.sqlite.db.SupportSQLiteOpenHelper.Factory sqliteOpenHelperFactory, androidx.room.RoomDatabase.MigrationContainer migrationContainer, java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks, boolean allowMainThreadQueries, androidx.room.RoomDatabase.JournalMode journalMode, java.util.concurrent.Executor queryExecutor, java.util.concurrent.Executor transactionExecutor, boolean multiInstanceInvalidation, boolean requireMigration, boolean allowDestructiveMigrationOnDowngrade, java.util.Set<java.lang.Integer>? migrationNotRequiredFrom, String? copyFromAssetPath, java.io.File? copyFromFile, java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream, androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback, java.util.List<?> typeConverters, java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs); |
| method public boolean isMigrationRequired(int fromVersion, int toVersion); |
| method @Deprecated public boolean isMigrationRequiredFrom(int version); |
| property public final boolean allowDestructiveMigrationForAllTables; |
| property public final boolean allowDestructiveMigrationOnDowngrade; |
| property public final boolean allowMainThreadQueries; |
| property public final java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs; |
| property public final java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks; |
| property public final android.content.Context context; |
| property public final String? copyFromAssetPath; |
| property public final java.io.File? copyFromFile; |
| property public final java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream; |
| property public final androidx.room.RoomDatabase.JournalMode journalMode; |
| property public final androidx.room.RoomDatabase.MigrationContainer migrationContainer; |
| property public final boolean multiInstanceInvalidation; |
| property public final android.content.Intent? multiInstanceInvalidationServiceIntent; |
| property public final String? name; |
| property public final androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback; |
| property public final kotlin.coroutines.CoroutineContext? queryCoroutineContext; |
| property public final java.util.concurrent.Executor queryExecutor; |
| property public final boolean requireMigration; |
| property public final androidx.sqlite.SQLiteDriver? sqliteDriver; |
| property public final androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? sqliteOpenHelperFactory; |
| property public final java.util.concurrent.Executor transactionExecutor; |
| property public final java.util.List<?> typeConverters; |
| field public final boolean allowDestructiveMigrationForAllTables; |
| field public final boolean allowDestructiveMigrationOnDowngrade; |
| field public final boolean allowMainThreadQueries; |
| field public final java.util.List<androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs; |
| field public final java.util.List<androidx.room.RoomDatabase.Callback>? callbacks; |
| field public final android.content.Context context; |
| field public final String? copyFromAssetPath; |
| field public final java.io.File? copyFromFile; |
| field public final java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream; |
| field public final androidx.room.RoomDatabase.JournalMode journalMode; |
| field public final androidx.room.RoomDatabase.MigrationContainer migrationContainer; |
| field public final boolean multiInstanceInvalidation; |
| field @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final android.content.Intent? multiInstanceInvalidationServiceIntent; |
| field public final String? name; |
| field public final androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback; |
| field public final kotlin.coroutines.CoroutineContext? queryCoroutineContext; |
| field public final java.util.concurrent.Executor queryExecutor; |
| field public final boolean requireMigration; |
| field public final androidx.sqlite.SQLiteDriver? sqliteDriver; |
| field public final androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? sqliteOpenHelperFactory; |
| field public final java.util.concurrent.Executor transactionExecutor; |
| field public final java.util.List<java.lang.Object> typeConverters; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class EntityDeleteOrUpdateAdapter<T> { |
| ctor public EntityDeleteOrUpdateAdapter(); |
| method protected abstract void bind(androidx.sqlite.SQLiteStatement statement, T entity); |
| method protected abstract String createQuery(); |
| method public final int handle(androidx.sqlite.SQLiteConnection connection, T? entity); |
| method public final int handleMultiple(androidx.sqlite.SQLiteConnection connection, Iterable<? extends T?>? entities); |
| method public final int handleMultiple(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class EntityDeletionOrUpdateAdapter<T> extends androidx.room.SharedSQLiteStatement { |
| ctor @Deprecated public EntityDeletionOrUpdateAdapter(androidx.room.RoomDatabase database); |
| method @Deprecated protected abstract void bind(androidx.sqlite.db.SupportSQLiteStatement statement, T entity); |
| method @Deprecated public final int handle(T entity); |
| method @Deprecated public final int handleMultiple(Iterable<? extends T> entities); |
| method @Deprecated public final int handleMultiple(T[] entities); |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class EntityInsertAdapter<T> { |
| ctor public EntityInsertAdapter(); |
| method protected abstract void bind(androidx.sqlite.SQLiteStatement statement, T entity); |
| method protected abstract String createQuery(); |
| method public final void insert(androidx.sqlite.SQLiteConnection connection, Iterable<? extends T?>? entities); |
| method public final void insert(androidx.sqlite.SQLiteConnection connection, T? entity); |
| method public final void insert(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public final long insertAndReturnId(androidx.sqlite.SQLiteConnection connection, T? entity); |
| method public final long[] insertAndReturnIdsArray(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public final long[] insertAndReturnIdsArray(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public final Long[] insertAndReturnIdsArrayBox(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public final Long[] insertAndReturnIdsArrayBox(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public final java.util.List<java.lang.Long> insertAndReturnIdsList(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public final java.util.List<java.lang.Long> insertAndReturnIdsList(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class EntityInsertionAdapter<T> extends androidx.room.SharedSQLiteStatement { |
| ctor @Deprecated public EntityInsertionAdapter(androidx.room.RoomDatabase database); |
| method @Deprecated protected abstract void bind(androidx.sqlite.db.SupportSQLiteStatement statement, T entity); |
| method @Deprecated public final void insert(Iterable<? extends T> entities); |
| method @Deprecated public final void insert(T entity); |
| method @Deprecated public final void insert(T[] entities); |
| method @Deprecated public final long insertAndReturnId(T entity); |
| method @Deprecated public final long[] insertAndReturnIdsArray(java.util.Collection<? extends T> entities); |
| method @Deprecated public final long[] insertAndReturnIdsArray(T[] entities); |
| method @Deprecated public final Long[] insertAndReturnIdsArrayBox(java.util.Collection<? extends T> entities); |
| method @Deprecated public final Long[] insertAndReturnIdsArrayBox(T[] entities); |
| method @Deprecated public final java.util.List<java.lang.Long> insertAndReturnIdsList(java.util.Collection<? extends T> entities); |
| method @Deprecated public final java.util.List<java.lang.Long> insertAndReturnIdsList(T[] entities); |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class EntityUpsertAdapter<T> { |
| ctor public EntityUpsertAdapter(androidx.room.EntityInsertAdapter<T> entityInsertAdapter, androidx.room.EntityDeleteOrUpdateAdapter<T> updateAdapter); |
| method public void upsert(androidx.sqlite.SQLiteConnection connection, Iterable<? extends T?>? entities); |
| method public void upsert(androidx.sqlite.SQLiteConnection connection, T? entity); |
| method public void upsert(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public long upsertAndReturnId(androidx.sqlite.SQLiteConnection connection, T? entity); |
| method public long[] upsertAndReturnIdsArray(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public long[] upsertAndReturnIdsArray(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public Long[] upsertAndReturnIdsArrayBox(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public Long[] upsertAndReturnIdsArrayBox(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| method public java.util.List<java.lang.Long> upsertAndReturnIdsList(androidx.sqlite.SQLiteConnection connection, java.util.Collection<? extends T?>? entities); |
| method public java.util.List<java.lang.Long> upsertAndReturnIdsList(androidx.sqlite.SQLiteConnection connection, T?[]? entities); |
| field public static final androidx.room.EntityUpsertAdapter.Companion Companion; |
| } |
| |
| public static final class EntityUpsertAdapter.Companion { |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class EntityUpsertionAdapter<T> { |
| ctor @Deprecated public EntityUpsertionAdapter(androidx.room.EntityInsertionAdapter<T> insertionAdapter, androidx.room.EntityDeletionOrUpdateAdapter<T> updateAdapter); |
| method @Deprecated public void upsert(Iterable<? extends T> entities); |
| method @Deprecated public void upsert(T entity); |
| method @Deprecated public void upsert(T[] entities); |
| method @Deprecated public long upsertAndReturnId(T entity); |
| method @Deprecated public long[] upsertAndReturnIdsArray(java.util.Collection<? extends T> entities); |
| method @Deprecated public long[] upsertAndReturnIdsArray(T[] entities); |
| method @Deprecated public Long[] upsertAndReturnIdsArrayBox(java.util.Collection<? extends T> entities); |
| method @Deprecated public Long[] upsertAndReturnIdsArrayBox(T[] entities); |
| method @Deprecated public java.util.List<java.lang.Long> upsertAndReturnIdsList(java.util.Collection<? extends T> entities); |
| method @Deprecated public java.util.List<java.lang.Long> upsertAndReturnIdsList(T[] entities); |
| } |
| |
| @SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface ExperimentalRoomApi { |
| } |
| |
| public class InvalidationTracker { |
| ctor @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public InvalidationTracker(androidx.room.RoomDatabase database, java.lang.String... tableNames); |
| ctor @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public InvalidationTracker(androidx.room.RoomDatabase database, java.util.Map<java.lang.String,java.lang.String> shadowTablesMap, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> viewTables, java.lang.String... tableNames); |
| method @WorkerThread public void addObserver(androidx.room.InvalidationTracker.Observer observer); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @WorkerThread public void addWeakObserver(androidx.room.InvalidationTracker.Observer observer); |
| method public final kotlinx.coroutines.flow.Flow<java.util.Set<java.lang.String>> createFlow(String[] tables, optional boolean emitInitialState); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public <T> androidx.lifecycle.LiveData<T> createLiveData(String[] tableNames, boolean inTransaction, java.util.concurrent.Callable<T?> computeFunction); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final <T> androidx.lifecycle.LiveData<T> createLiveData(String[] tableNames, boolean inTransaction, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteConnection,? extends T?> computeFunction); |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public <T> androidx.lifecycle.LiveData<T> createLiveData(String[] tableNames, java.util.concurrent.Callable<T?> computeFunction); |
| method public final void refreshAsync(); |
| method public void refreshVersionsAsync(); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @WorkerThread public void refreshVersionsSync(); |
| method @WorkerThread public void removeObserver(androidx.room.InvalidationTracker.Observer observer); |
| field public static final androidx.room.InvalidationTracker.Companion Companion; |
| } |
| |
| public static final class InvalidationTracker.Companion { |
| } |
| |
| public abstract static class InvalidationTracker.Observer { |
| ctor protected InvalidationTracker.Observer(String firstTable, java.lang.String... rest); |
| ctor public InvalidationTracker.Observer(String[] tables); |
| method public abstract void onInvalidated(java.util.Set<java.lang.String> tables); |
| } |
| |
| @SuppressCompatibility @androidx.room.ExperimentalRoomApi public final class MultiInstanceInvalidationService extends android.app.Service { |
| ctor public MultiInstanceInvalidationService(); |
| method public android.os.IBinder onBind(android.content.Intent intent); |
| } |
| |
| public interface PooledConnection { |
| method public suspend <R> Object? usePrepared(String sql, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteStatement,? extends R> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public final class Room { |
| method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context context, Class<T> klass, String? name); |
| method public inline <reified T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context context, String name, optional kotlin.jvm.functions.Function0<? extends T> factory); |
| method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context context, Class<T> klass); |
| method public inline <reified T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context context, optional kotlin.jvm.functions.Function0<? extends T> factory); |
| property public static final String MASTER_TABLE_NAME; |
| field public static final androidx.room.Room INSTANCE; |
| field public static final String MASTER_TABLE_NAME = "room_master_table"; |
| } |
| |
| public abstract class RoomDatabase { |
| ctor public RoomDatabase(); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public void assertNotMainThread(); |
| method @Deprecated public void beginTransaction(); |
| method @WorkerThread public abstract void clearAllTables(); |
| method public void close(); |
| method public androidx.sqlite.db.SupportSQLiteStatement compileStatement(String sql); |
| method protected abstract androidx.room.InvalidationTracker createInvalidationTracker(); |
| method @Deprecated protected androidx.sqlite.db.SupportSQLiteOpenHelper createOpenHelper(androidx.room.DatabaseConfiguration config); |
| method @Deprecated public void endTransaction(); |
| method public androidx.room.InvalidationTracker getInvalidationTracker(); |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) protected java.util.List<androidx.room.RoomDatabase.Callback>? getMCallbacks(); |
| method @Deprecated @kotlin.jvm.Volatile protected androidx.sqlite.db.SupportSQLiteDatabase? getMDatabase(); |
| method public androidx.sqlite.db.SupportSQLiteOpenHelper getOpenHelper(); |
| method public java.util.concurrent.Executor getQueryExecutor(); |
| method public java.util.concurrent.Executor getTransactionExecutor(); |
| method @Deprecated public <T> T? getTypeConverter(Class<T> klass); |
| method public boolean inTransaction(); |
| method @CallSuper public void init(androidx.room.DatabaseConfiguration configuration); |
| method @Deprecated protected void internalInitInvalidationTracker(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) protected final void internalInitInvalidationTracker(androidx.sqlite.SQLiteConnection connection); |
| method public boolean isOpen(); |
| method public android.database.Cursor query(androidx.sqlite.db.SupportSQLiteQuery query); |
| method public android.database.Cursor query(androidx.sqlite.db.SupportSQLiteQuery query, optional android.os.CancellationSignal? signal); |
| method public android.database.Cursor query(String query, Object?[]? args); |
| method public void runInTransaction(Runnable body); |
| method public <V> V runInTransaction(java.util.concurrent.Callable<V> body); |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) protected void setMCallbacks(java.util.List<androidx.room.RoomDatabase.Callback>?); |
| method @Deprecated @kotlin.jvm.Volatile protected void setMDatabase(androidx.sqlite.db.SupportSQLiteDatabase?); |
| method @Deprecated public void setTransactionSuccessful(); |
| property public androidx.room.InvalidationTracker invalidationTracker; |
| property public boolean isOpen; |
| property @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) protected java.util.List<androidx.room.RoomDatabase.Callback>? mCallbacks; |
| property @Deprecated @kotlin.jvm.Volatile protected androidx.sqlite.db.SupportSQLiteDatabase? mDatabase; |
| property public androidx.sqlite.db.SupportSQLiteOpenHelper openHelper; |
| property public java.util.concurrent.Executor queryExecutor; |
| property public java.util.concurrent.Executor transactionExecutor; |
| field public static final androidx.room.RoomDatabase.Companion Companion; |
| field @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static final int MAX_BIND_PARAMETER_CNT = 999; // 0x3e7 |
| field @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) protected java.util.List<? extends androidx.room.RoomDatabase.Callback>? mCallbacks; |
| field @Deprecated @kotlin.jvm.Volatile protected volatile androidx.sqlite.db.SupportSQLiteDatabase? mDatabase; |
| } |
| |
| public static class RoomDatabase.Builder<T extends androidx.room.RoomDatabase> { |
| ctor @kotlin.PublishedApi internal RoomDatabase.Builder(kotlin.reflect.KClass<T> klass, String? name, kotlin.jvm.functions.Function0<? extends T>? factory, android.content.Context context); |
| method public androidx.room.RoomDatabase.Builder<T> addAutoMigrationSpec(androidx.room.migration.AutoMigrationSpec autoMigrationSpec); |
| method public androidx.room.RoomDatabase.Builder<T> addCallback(androidx.room.RoomDatabase.Callback callback); |
| method public androidx.room.RoomDatabase.Builder<T> addMigrations(androidx.room.migration.Migration... migrations); |
| method public androidx.room.RoomDatabase.Builder<T> addTypeConverter(Object typeConverter); |
| method public androidx.room.RoomDatabase.Builder<T> allowMainThreadQueries(); |
| method public T build(); |
| method public androidx.room.RoomDatabase.Builder<T> createFromAsset(String databaseFilePath); |
| method public androidx.room.RoomDatabase.Builder<T> createFromAsset(String databaseFilePath, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> createFromFile(java.io.File databaseFile); |
| method public androidx.room.RoomDatabase.Builder<T> createFromFile(java.io.File databaseFile, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> createFromInputStream(java.util.concurrent.Callable<java.io.InputStream> inputStreamCallable); |
| method public androidx.room.RoomDatabase.Builder<T> createFromInputStream(java.util.concurrent.Callable<java.io.InputStream> inputStreamCallable, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> enableMultiInstanceInvalidation(); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration(); |
| method public final androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration(boolean dropAllTables); |
| method public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(boolean dropAllTables, int... startVersions); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(int... startVersions); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationOnDowngrade(); |
| method public final androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationOnDowngrade(boolean dropAllTables); |
| method public androidx.room.RoomDatabase.Builder<T> openHelperFactory(androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? factory); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public androidx.room.RoomDatabase.Builder<T> setAutoCloseTimeout(@IntRange(from=0L) long autoCloseTimeout, java.util.concurrent.TimeUnit autoCloseTimeUnit); |
| method public final androidx.room.RoomDatabase.Builder<T> setDriver(androidx.sqlite.SQLiteDriver driver); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public final androidx.room.RoomDatabase.Builder<T> setInMemoryTrackingMode(boolean inMemory); |
| method public androidx.room.RoomDatabase.Builder<T> setJournalMode(androidx.room.RoomDatabase.JournalMode journalMode); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public androidx.room.RoomDatabase.Builder<T> setMultiInstanceInvalidationServiceIntent(android.content.Intent invalidationServiceIntent); |
| method public androidx.room.RoomDatabase.Builder<T> setQueryCallback(androidx.room.RoomDatabase.QueryCallback queryCallback, java.util.concurrent.Executor executor); |
| method public final androidx.room.RoomDatabase.Builder<T> setQueryCallback(kotlin.coroutines.CoroutineContext context, androidx.room.RoomDatabase.QueryCallback queryCallback); |
| method public final androidx.room.RoomDatabase.Builder<T> setQueryCoroutineContext(kotlin.coroutines.CoroutineContext context); |
| method public androidx.room.RoomDatabase.Builder<T> setQueryExecutor(java.util.concurrent.Executor executor); |
| method public androidx.room.RoomDatabase.Builder<T> setTransactionExecutor(java.util.concurrent.Executor executor); |
| } |
| |
| public abstract static class RoomDatabase.Callback { |
| ctor public RoomDatabase.Callback(); |
| method public void onCreate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onCreate(androidx.sqlite.SQLiteConnection connection); |
| method public void onDestructiveMigration(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onDestructiveMigration(androidx.sqlite.SQLiteConnection connection); |
| method public void onOpen(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onOpen(androidx.sqlite.SQLiteConnection connection); |
| } |
| |
| public static final class RoomDatabase.Companion { |
| property @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static final int MAX_BIND_PARAMETER_CNT; |
| } |
| |
| public enum RoomDatabase.JournalMode { |
| 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... migrations); |
| method public void addMigrations(java.util.List<? extends androidx.room.migration.Migration> migrations); |
| method public final boolean contains(int startVersion, int endVersion); |
| method public java.util.List<androidx.room.migration.Migration>? findMigrationPath(int start, int end); |
| method public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,androidx.room.migration.Migration>> getMigrations(); |
| } |
| |
| public abstract static class RoomDatabase.PrepackagedDatabaseCallback { |
| ctor public RoomDatabase.PrepackagedDatabaseCallback(); |
| method public void onOpenPrepackagedDatabase(androidx.sqlite.db.SupportSQLiteDatabase db); |
| } |
| |
| public static fun interface RoomDatabase.QueryCallback { |
| method public void onQuery(String sqlQuery, java.util.List<? extends java.lang.Object?> bindArgs); |
| } |
| |
| public interface RoomDatabaseConstructor<T extends androidx.room.RoomDatabase> { |
| method public T initialize(); |
| } |
| |
| public final class RoomDatabaseKt { |
| method @Deprecated public static kotlinx.coroutines.flow.Flow<java.util.Set<java.lang.String>> invalidationTrackerFlow(androidx.room.RoomDatabase, String[] tables, optional boolean emitInitialState); |
| method public static suspend <R> Object? useReaderConnection(androidx.room.RoomDatabase, kotlin.jvm.functions.Function2<? super androidx.room.Transactor,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? useWriterConnection(androidx.room.RoomDatabase, kotlin.jvm.functions.Function2<? super androidx.room.Transactor,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? withTransaction(androidx.room.RoomDatabase, kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public interface RoomOpenDelegateMarker { |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class RoomOpenHelper extends androidx.sqlite.db.SupportSQLiteOpenHelper.Callback { |
| ctor @Deprecated public RoomOpenHelper(androidx.room.DatabaseConfiguration configuration, androidx.room.RoomOpenHelper.Delegate delegate, String legacyHash); |
| ctor @Deprecated public RoomOpenHelper(androidx.room.DatabaseConfiguration configuration, androidx.room.RoomOpenHelper.Delegate delegate, String identityHash, String legacyHash); |
| method @Deprecated public void onCreate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public void onUpgrade(androidx.sqlite.db.SupportSQLiteDatabase db, int oldVersion, int newVersion); |
| field @Deprecated public static final androidx.room.RoomOpenHelper.Companion Companion; |
| } |
| |
| @Deprecated public static final class RoomOpenHelper.Companion { |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract static class RoomOpenHelper.Delegate { |
| ctor @Deprecated public RoomOpenHelper.Delegate(int version); |
| method @Deprecated public abstract void createAllTables(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public abstract void dropAllTables(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public abstract void onCreate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public abstract void onOpen(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public void onPostMigrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public void onPreMigrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated public androidx.room.RoomOpenHelper.ValidationResult onValidateSchema(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @Deprecated protected void validateMigration(androidx.sqlite.db.SupportSQLiteDatabase db); |
| property @Deprecated public final int version; |
| field @Deprecated public final int version; |
| } |
| |
| @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static class RoomOpenHelper.ValidationResult { |
| ctor @Deprecated public RoomOpenHelper.ValidationResult(boolean isValid, String? expectedFoundMsg); |
| property @Deprecated public final String? expectedFoundMsg; |
| property @Deprecated public final boolean isValid; |
| field @Deprecated public final String? expectedFoundMsg; |
| field @Deprecated public final boolean isValid; |
| } |
| |
| public final class RoomRawQuery { |
| ctor public RoomRawQuery(String sql); |
| ctor public RoomRawQuery(String sql, optional kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteStatement,kotlin.Unit> onBindStatement); |
| method public kotlin.jvm.functions.Function1<androidx.sqlite.SQLiteStatement,kotlin.Unit> getBindingFunction(); |
| method public String getSql(); |
| property public final String sql; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class RoomSQLiteQuery implements androidx.sqlite.db.SupportSQLiteProgram androidx.sqlite.db.SupportSQLiteQuery { |
| method public static androidx.room.RoomSQLiteQuery acquire(String query, int argumentCount); |
| method public void bindBlob(int index, byte[] value); |
| method public void bindDouble(int index, double value); |
| method public void bindLong(int index, long value); |
| method public void bindNull(int index); |
| method public void bindString(int index, String value); |
| method public void bindText(int index, String value); |
| method public void bindTo(androidx.sqlite.db.SupportSQLiteProgram statement); |
| method public void bindTo(androidx.sqlite.SQLiteStatement statement); |
| method public void clearBindings(); |
| method public void close(); |
| method public void copyArgumentsFrom(androidx.room.RoomSQLiteQuery other); |
| method public static androidx.room.RoomSQLiteQuery copyFrom(androidx.sqlite.db.SupportSQLiteQuery supportSQLiteQuery); |
| method public int getArgCount(); |
| method public int getCapacity(); |
| method public String getSql(); |
| method public void init(String query, int initArgCount); |
| method public void release(); |
| method public androidx.room.RoomRawQuery toRoomRawQuery(); |
| property public int argCount; |
| property @VisibleForTesting public final byte[]?[] blobBindings; |
| property public final int capacity; |
| property @VisibleForTesting public final double[] doubleBindings; |
| property @VisibleForTesting public final long[] longBindings; |
| property public String sql; |
| property @VisibleForTesting public final String?[] stringBindings; |
| field public static final androidx.room.RoomSQLiteQuery.Companion Companion; |
| field @VisibleForTesting public static final int DESIRED_POOL_SIZE = 10; // 0xa |
| field @VisibleForTesting public static final int POOL_LIMIT = 15; // 0xf |
| field @VisibleForTesting public final byte[]?[] blobBindings; |
| field @VisibleForTesting public final double[] doubleBindings; |
| field @VisibleForTesting public final long[] longBindings; |
| field @VisibleForTesting public static final java.util.TreeMap<java.lang.Integer,androidx.room.RoomSQLiteQuery> queryPool; |
| field @VisibleForTesting public final String?[] stringBindings; |
| } |
| |
| public static final class RoomSQLiteQuery.Companion { |
| method public androidx.room.RoomSQLiteQuery acquire(String query, int argumentCount); |
| method public androidx.room.RoomSQLiteQuery copyFrom(androidx.sqlite.db.SupportSQLiteQuery supportSQLiteQuery); |
| property @VisibleForTesting public static final int DESIRED_POOL_SIZE; |
| property @VisibleForTesting public static final int POOL_LIMIT; |
| property @VisibleForTesting public final java.util.TreeMap<java.lang.Integer,androidx.room.RoomSQLiteQuery> queryPool; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class SharedSQLiteStatement { |
| ctor public SharedSQLiteStatement(androidx.room.RoomDatabase database); |
| method public androidx.sqlite.db.SupportSQLiteStatement acquire(); |
| method protected void assertNotMainThread(); |
| method protected abstract String createQuery(); |
| method public void release(androidx.sqlite.db.SupportSQLiteStatement statement); |
| } |
| |
| public interface TransactionScope<T> extends androidx.room.PooledConnection { |
| method public suspend Object? rollback(T result, kotlin.coroutines.Continuation<? extends java.lang.Object?>); |
| method public suspend <R> Object? withNestedTransaction(kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public interface Transactor extends androidx.room.PooledConnection { |
| method public suspend Object? inTransaction(kotlin.coroutines.Continuation<? super java.lang.Boolean>); |
| method public suspend <R> Object? withTransaction(androidx.room.Transactor.SQLiteTransactionType type, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public enum Transactor.SQLiteTransactionType { |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType DEFERRED; |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType EXCLUSIVE; |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType IMMEDIATE; |
| } |
| |
| public final class TransactorKt { |
| method public static suspend <R> Object? deferredTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? exclusiveTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend Object? execSQL(androidx.room.PooledConnection, String sql, kotlin.coroutines.Continuation<? super kotlin.Unit>); |
| method public static suspend <R> Object? immediateTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| } |
| |
| package androidx.room.coroutines { |
| |
| public final class FlowUtil { |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <R> kotlinx.coroutines.flow.Flow<R> createFlow(androidx.room.RoomDatabase db, boolean inTransaction, String[] tableNames, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteConnection,? extends R> block); |
| } |
| |
| } |
| |
| package androidx.room.migration { |
| |
| public interface AutoMigrationSpec { |
| method public default void onPostMigrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public default void onPostMigrate(androidx.sqlite.SQLiteConnection connection); |
| } |
| |
| public abstract class Migration { |
| ctor public Migration(int startVersion, int endVersion); |
| method public void migrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void migrate(androidx.sqlite.SQLiteConnection connection); |
| property public final int endVersion; |
| property public final int startVersion; |
| field public final int endVersion; |
| field public final int startVersion; |
| } |
| |
| public final class MigrationKt { |
| method public static androidx.room.migration.Migration Migration(int startVersion, int endVersion, kotlin.jvm.functions.Function1<? super androidx.sqlite.db.SupportSQLiteDatabase,kotlin.Unit> migrate); |
| } |
| |
| } |
| |
| package androidx.room.paging { |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public abstract class LimitOffsetDataSource<T> extends androidx.paging.PositionalDataSource<T!> { |
| ctor protected LimitOffsetDataSource(androidx.room.RoomDatabase, androidx.room.RoomSQLiteQuery, boolean, boolean, java.lang.String!...); |
| ctor protected LimitOffsetDataSource(androidx.room.RoomDatabase, androidx.room.RoomSQLiteQuery, boolean, java.lang.String!...); |
| ctor protected LimitOffsetDataSource(androidx.room.RoomDatabase, androidx.sqlite.db.SupportSQLiteQuery, boolean, boolean, java.lang.String!...); |
| ctor protected LimitOffsetDataSource(androidx.room.RoomDatabase, androidx.sqlite.db.SupportSQLiteQuery, boolean, java.lang.String!...); |
| method protected java.util.List<T!> convertRows(android.database.Cursor); |
| method protected java.util.List<T!> convertRows(androidx.sqlite.SQLiteStatement); |
| method public void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams, androidx.paging.PositionalDataSource.LoadInitialCallback<T!>); |
| method public void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams, androidx.paging.PositionalDataSource.LoadRangeCallback<T!>); |
| } |
| |
| } |
| |
| package androidx.room.util { |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class ByteArrayWrapper { |
| ctor public ByteArrayWrapper(byte[] array); |
| property public final byte[] array; |
| field public final byte[] array; |
| } |
| |
| @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class CursorUtil { |
| method public static android.database.Cursor copyAndClose(android.database.Cursor c); |
| method @VisibleForTesting public static int findColumnIndexBySuffix(String[] columnNames, String name); |
| method public static int getColumnIndex(android.database.Cursor c, String name); |
| method public static int getColumnIndexOrThrow(android.database.Cursor c, String name); |
| method public static inline <R> R useCursor(android.database.Cursor, kotlin.jvm.functions.Function1<? super android.database.Cursor,? extends R> block); |
| method public static android.database.Cursor wrapMappedColumns(android.database.Cursor cursor, String[] columnNames, int[] mapping); |
| } |
| |
| public final class DBUtil { |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static android.os.CancellationSignal createCancellationSignal(); |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static void dropFtsSyncTriggers(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static void dropFtsSyncTriggers(androidx.sqlite.SQLiteConnection connection); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static void foreignKeyCheck(androidx.sqlite.db.SupportSQLiteDatabase db, String tableName); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static void foreignKeyCheck(androidx.sqlite.SQLiteConnection db, String tableName); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <R> R performBlocking(androidx.room.RoomDatabase db, boolean isReadOnly, boolean inTransaction, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteConnection,? extends R> block); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static suspend <R> Object? performInTransactionSuspending(androidx.room.RoomDatabase db, kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static suspend <R> Object? performSuspending(androidx.room.RoomDatabase db, boolean isReadOnly, boolean inTransaction, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteConnection,? extends R> block, kotlin.coroutines.Continuation<? super R>); |
| method @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static android.database.Cursor query(androidx.room.RoomDatabase db, androidx.sqlite.db.SupportSQLiteQuery sqLiteQuery, boolean maybeCopy); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static android.database.Cursor query(androidx.room.RoomDatabase db, androidx.sqlite.db.SupportSQLiteQuery sqLiteQuery, boolean maybeCopy, android.os.CancellationSignal? signal); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @kotlin.jvm.Throws(exceptionClasses=IOException::class) public static int readVersion(java.io.File databaseFile) throws java.io.IOException; |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static androidx.sqlite.SQLiteConnection toSQLiteConnection(androidx.sqlite.db.SupportSQLiteDatabase db); |
| } |
| |
| @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class FileUtil { |
| method @kotlin.jvm.Throws(exceptionClasses=IOException::class) public static void copy(java.nio.channels.ReadableByteChannel input, java.nio.channels.FileChannel output) throws java.io.IOException; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class FtsTableInfo { |
| ctor public FtsTableInfo(String name, java.util.Set<java.lang.String> columns, String createSql); |
| ctor public FtsTableInfo(String name, java.util.Set<java.lang.String> columns, java.util.Set<java.lang.String> options); |
| method public static androidx.room.util.FtsTableInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String tableName); |
| method public static androidx.room.util.FtsTableInfo read(androidx.sqlite.SQLiteConnection connection, String tableName); |
| property public final java.util.Set<? extends java.lang.String> columns; |
| property public final String name; |
| property public final java.util.Set<? extends java.lang.String> options; |
| field public static final androidx.room.util.FtsTableInfo.Companion Companion; |
| field public final java.util.Set<java.lang.String> columns; |
| field public final String name; |
| field public final java.util.Set<java.lang.String> options; |
| } |
| |
| public static final class FtsTableInfo.Companion { |
| method public androidx.room.util.FtsTableInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String tableName); |
| method public androidx.room.util.FtsTableInfo read(androidx.sqlite.SQLiteConnection connection, String tableName); |
| } |
| |
| @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class KClassUtil { |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <T, C> T findAndInstantiateDatabaseImpl(Class<C> klass, optional String suffix); |
| } |
| |
| public final class RelationUtil { |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <K, V> void recursiveFetchArrayMap(androidx.collection.ArrayMap<K,V> map, boolean isRelationCollection, kotlin.jvm.functions.Function1<? super androidx.collection.ArrayMap<K,V>,kotlin.Unit> fetchBlock); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <K, V> void recursiveFetchHashMap(java.util.HashMap<K,V> map, boolean isRelationCollection, kotlin.jvm.functions.Function1<? super java.util.HashMap<K,V>,kotlin.Unit> fetchBlock); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <V> void recursiveFetchLongSparseArray(androidx.collection.LongSparseArray<V> map, boolean isRelationCollection, kotlin.jvm.functions.Function1<? super androidx.collection.LongSparseArray<V>,kotlin.Unit> fetchBlock); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static <K, V> void recursiveFetchMap(java.util.Map<K,V> map, boolean isRelationCollection, kotlin.jvm.functions.Function1<? super java.util.Map<K,V>,kotlin.Unit> fetchBlock); |
| } |
| |
| public final class SQLiteConnectionUtil { |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static long getLastInsertedRowId(androidx.sqlite.SQLiteConnection connection); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static int getTotalChangedRows(androidx.sqlite.SQLiteConnection connection); |
| } |
| |
| public final class SQLiteStatementUtil { |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static int getColumnIndex(androidx.sqlite.SQLiteStatement stmt, String name); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static int getColumnIndexOrThrow(androidx.sqlite.SQLiteStatement stmt, String name); |
| method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static androidx.sqlite.SQLiteStatement wrapMappedColumns(androidx.sqlite.SQLiteStatement statement, String[] columnNames, int[] mapping); |
| } |
| |
| @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class StringUtil { |
| method public static void appendPlaceholders(StringBuilder builder, int count); |
| method @Deprecated public String?[] getEMPTY_STRING_ARRAY(); |
| method public static String? joinIntoString(java.util.List<java.lang.Integer>? input); |
| method @Deprecated public static StringBuilder newStringBuilder(); |
| method public static java.util.List<java.lang.Integer>? splitToIntList(String? input); |
| property @Deprecated public String?[] EMPTY_STRING_ARRAY; |
| field @Deprecated public static final String?[] EMPTY_STRING_ARRAY; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class TableInfo { |
| ctor @Deprecated public TableInfo(String name, java.util.Map<java.lang.String,androidx.room.util.TableInfo.Column> columns, java.util.Set<androidx.room.util.TableInfo.ForeignKey> foreignKeys); |
| ctor public TableInfo(String name, java.util.Map<java.lang.String,androidx.room.util.TableInfo.Column> columns, java.util.Set<androidx.room.util.TableInfo.ForeignKey> foreignKeys, optional java.util.Set<androidx.room.util.TableInfo.Index>? indices); |
| method @Deprecated public static androidx.room.util.TableInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String tableName); |
| method public static androidx.room.util.TableInfo read(androidx.sqlite.SQLiteConnection connection, String tableName); |
| property public final java.util.Map<java.lang.String,? extends androidx.room.util.TableInfo.Column> columns; |
| property public final java.util.Set<? extends androidx.room.util.TableInfo.ForeignKey> foreignKeys; |
| property public final java.util.Set<? extends androidx.room.util.TableInfo.Index>? indices; |
| property public final String name; |
| field public static final int CREATED_FROM_DATABASE = 2; // 0x2 |
| field public static final int CREATED_FROM_ENTITY = 1; // 0x1 |
| field public static final int CREATED_FROM_UNKNOWN = 0; // 0x0 |
| field public static final androidx.room.util.TableInfo.Companion Companion; |
| field public final java.util.Map<java.lang.String,androidx.room.util.TableInfo.Column> columns; |
| field public final java.util.Set<androidx.room.util.TableInfo.ForeignKey> foreignKeys; |
| field public final java.util.Set<androidx.room.util.TableInfo.Index>? indices; |
| field public final String name; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static final class TableInfo.Column { |
| ctor @Deprecated public TableInfo.Column(String name, String type, boolean notNull, int primaryKeyPosition); |
| ctor public TableInfo.Column(String name, String type, boolean notNull, int primaryKeyPosition, String? defaultValue, int createdFrom); |
| method public static boolean defaultValueEquals(String current, String? other); |
| method public boolean isPrimaryKey(); |
| property @androidx.room.ColumnInfo.SQLiteTypeAffinity public final int affinity; |
| property public final int createdFrom; |
| property public final String? defaultValue; |
| property public final boolean isPrimaryKey; |
| property public final String name; |
| property public final boolean notNull; |
| property public final int primaryKeyPosition; |
| property public final String type; |
| field public static final androidx.room.util.TableInfo.Column.Companion Companion; |
| field @androidx.room.ColumnInfo.SQLiteTypeAffinity public final int affinity; |
| field public final int createdFrom; |
| field public final String? defaultValue; |
| field public final String name; |
| field public final boolean notNull; |
| field public final int primaryKeyPosition; |
| field public final String type; |
| } |
| |
| public static final class TableInfo.Column.Companion { |
| method public boolean defaultValueEquals(String current, String? other); |
| } |
| |
| public static final class TableInfo.Companion { |
| method @Deprecated public androidx.room.util.TableInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String tableName); |
| method public androidx.room.util.TableInfo read(androidx.sqlite.SQLiteConnection connection, String tableName); |
| property public static final int CREATED_FROM_DATABASE; |
| property public static final int CREATED_FROM_ENTITY; |
| property public static final int CREATED_FROM_UNKNOWN; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static final class TableInfo.ForeignKey { |
| ctor public TableInfo.ForeignKey(String referenceTable, String onDelete, String onUpdate, java.util.List<java.lang.String> columnNames, java.util.List<java.lang.String> referenceColumnNames); |
| property public final java.util.List<? extends java.lang.String> columnNames; |
| property public final String onDelete; |
| property public final String onUpdate; |
| property public final java.util.List<? extends java.lang.String> referenceColumnNames; |
| property public final String referenceTable; |
| field public final java.util.List<java.lang.String> columnNames; |
| field public final String onDelete; |
| field public final String onUpdate; |
| field public final java.util.List<java.lang.String> referenceColumnNames; |
| field public final String referenceTable; |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public static final class TableInfo.Index { |
| ctor @Deprecated public TableInfo.Index(String name, boolean unique, java.util.List<java.lang.String> columns); |
| ctor public TableInfo.Index(String name, boolean unique, java.util.List<java.lang.String> columns, java.util.List<java.lang.String> orders); |
| property public final java.util.List<? extends java.lang.String> columns; |
| property public final String name; |
| property public final java.util.List<? extends java.lang.String> orders; |
| property public final boolean unique; |
| field public static final androidx.room.util.TableInfo.Index.Companion Companion; |
| field public static final String DEFAULT_PREFIX = "index_"; |
| field public final java.util.List<java.lang.String> columns; |
| field public final String name; |
| field public java.util.List<java.lang.String> orders; |
| field public final boolean unique; |
| } |
| |
| public static final class TableInfo.Index.Companion { |
| property public static final String DEFAULT_PREFIX; |
| } |
| |
| @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class UUIDUtil { |
| method public static java.util.UUID convertByteToUUID(byte[] bytes); |
| method public static byte[] convertUUIDToByte(java.util.UUID uuid); |
| } |
| |
| @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class ViewInfo { |
| ctor public ViewInfo(String name, String? sql); |
| method @Deprecated public static androidx.room.util.ViewInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String viewName); |
| method public static androidx.room.util.ViewInfo read(androidx.sqlite.SQLiteConnection connection, String viewName); |
| property public final String name; |
| property public final String? sql; |
| field public static final androidx.room.util.ViewInfo.Companion Companion; |
| field public final String name; |
| field public final String? sql; |
| } |
| |
| public static final class ViewInfo.Companion { |
| method @Deprecated public androidx.room.util.ViewInfo read(androidx.sqlite.db.SupportSQLiteDatabase database, String viewName); |
| method public androidx.room.util.ViewInfo read(androidx.sqlite.SQLiteConnection connection, String viewName); |
| } |
| |
| } |
| |