public abstract class KitDatabase extends RoomDatabase
RoomDatabase.Builder<T extends RoomDatabase>, RoomDatabase.Callback, RoomDatabase.JournalMode, RoomDatabase.MigrationContainer
MAX_BIND_PARAMETER_CNT, mCallbacks, mDatabase
Constructor and Description |
---|
KitDatabase() |
Modifier and Type | Method and Description |
---|---|
abstract AutoReplyDao |
getAutoReplyDao()
getting the AutoReplyDao
|
abstract IgnoreStatusDao |
getIgnoreStatusDao()
getting the IgnoreStatusDao
|
static KitDatabase |
getInstance()
Constructor that gets us the instance of the Database.
|
abstract UserDao |
getUserDao()
getting the UserDao
|
abstract UserTypeDao |
getUserTypeDao()
getting the UserTypeDao
|
static void |
setContext(Application context)
Constructor for the database.
|
assertNotMainThread, assertNotSuspendingTransaction, beginTransaction, clearAllTables, close, compileStatement, createInvalidationTracker, createOpenHelper, endTransaction, getInvalidationTracker, getOpenHelper, getQueryExecutor, getTransactionExecutor, init, internalInitInvalidationTracker, inTransaction, isOpen, query, query, query, runInTransaction, runInTransaction, setTransactionSuccessful
public static void setContext(Application context)
context
- , an application object which provides the contextpublic static KitDatabase getInstance()
public abstract AutoReplyDao getAutoReplyDao()
public abstract UserDao getUserDao()
public abstract UserTypeDao getUserTypeDao()
public abstract IgnoreStatusDao getIgnoreStatusDao()