Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

RoomDatabase.Callback

public static abstract class RoomDatabase.Callback
extends Object

java.lang.Object
   ↳ androidx.room.RoomDatabase.Callback


Callback for RoomDatabase.

Summary

Public constructors

Callback()

Public methods

void onCreate(SupportSQLiteDatabase db)

Called when the database is created for the first time.

void onDestructiveMigration(SupportSQLiteDatabase db)

Called after the database was destructively migrated

void onOpen(SupportSQLiteDatabase db)

Called when the database has been opened.

Inherited methods

Public constructors

Callback

public Callback ()

Public methods

onCreate

public void onCreate (SupportSQLiteDatabase db)

Called when the database is created for the first time. This is called after all the tables are created.

Parameters
db SupportSQLiteDatabase: The database.

onDestructiveMigration

public void onDestructiveMigration (SupportSQLiteDatabase db)

Called after the database was destructively migrated

Parameters
db SupportSQLiteDatabase: The database.

onOpen

public void onOpen (SupportSQLiteDatabase db)

Called when the database has been opened.

Parameters
db SupportSQLiteDatabase: The database.