pyricau edited this page Jan 14, 2012 · 3 revisions

Since AndroidAnnotations 1.0


The @Transactional annotation indicates that an activity method is transactional, and therefore that a transaction will be started before the method is executed, and committed afterwards.

If the method throws a RuntimeException, the transaction will be rollbacked.

The method must have at least one parameter, which must be a SQLiteDatabase.

The method must not be private and must not declare throwing any exception.

Usage example:

void doSomeDbWork(SQLiteDatabase db) {
    db.execSQL("Some SQL");

14/10/2018 The 4.5.1 release is out !

Using AndroidAnnotations


Enjoying AndroidAnnotations

Improving AndroidAnnotations

Extending AndroidAnnotations

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.