forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
SQLiteTransactions
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:
@Transactional
void doSomeDbWork(SQLiteDatabase db) {
db.execSQL("Some SQL");
}AndroidAnnotations was created by Pierre-Yves Ricau and was originally sponsored by eBusinessInformations.
10/07/2015 The 3.3.2 release is out !
- Get started!
- Download
- Cookbook, full of recipes
- Customize annotation processing
- List of all available annotations
- Release Notes
- Examples
- Read the FAQ
- Join the Mailing list
- Create an issue
- Tag on Stack Overflow
- Ask on Gitter