Room

public class Room
extends Object

java.lang.Object
   ↳ androidx.room.Room


Utility class for Room.

Summary

Constants

String MASTER_TABLE_NAME

The master table where room keeps its metadata information.

Public constructors

Room()

This constructor is deprecated. This type should not be instantiated as it contains only static methods.

Public methods

static <T extends RoomDatabase> Builder<T> databaseBuilder(Context context, Class<T> klass, String name)

Creates a RoomDatabase.Builder for a persistent database.

static <T, C> T getGeneratedImplementation(Class<C> klass, String suffix)
static <T extends RoomDatabase> Builder<T> inMemoryDatabaseBuilder(Context context, Class<T> klass)

Creates a RoomDatabase.Builder for an in memory database.

Inherited methods

Constants

MASTER_TABLE_NAME

public static final String MASTER_TABLE_NAME

The master table where room keeps its metadata information.

Constant Value: "room_master_table"

Public constructors

Room

public Room ()

This constructor is deprecated.
This type should not be instantiated as it contains only static methods.

Public methods

databaseBuilder

public static