Closed gwokwong closed 7 years ago
I mean you can copy paste the body of the method from DatabaseDefinition
:
public void executeTransaction(@NonNull ITransaction transaction) {
DatabaseWrapper database = getWritableDatabase();
try {
database.beginTransaction();
transaction.execute(database);
database.setTransactionSuccessful();
} finally {
database.endTransaction();
}
}
and have it return true where needed.
i want executeTransaction return boolean value ,how i do ?