-
- All Implemented Interfaces:
-
io.requery.android.database.DatabaseErrorHandler
public final class DefaultDatabaseErrorHandler implements DatabaseErrorHandler
Default class used to define the actions to take when the database corruption is reported by sqlite.
An application can specify an implementation of DatabaseErrorHandler on the following:
The specified DatabaseErrorHandler is used to handle database corruption errors, if they occur.If null is specified for DatabaeErrorHandler param in the above calls, then this class is used as the default DatabaseErrorHandler.
-
-
Method Summary
Modifier and Type Method Description voidonCorruption(SQLiteDatabase dbObj)The method invoked when database corruption is detected. -
-
Method Detail
-
onCorruption
void onCorruption(SQLiteDatabase dbObj)
The method invoked when database corruption is detected.
- Parameters:
dbObj- the SQLiteDatabase object representing the database on which corruptionis detected.
-
-
-
-