|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionRequired
This annotation suggests that implementations of these methods (or all methods of that type)
should always be called only in a proper transactional context.
Since the wrapping of methods would always throw DatabaseException (if not a RuntimeException),
it is generally recommended to allow interface methods to throw the same.
If an inheriting interface is queried by an AbstractDatabase,
it is wrapped so that each method call is automatically run in a transactional context.
Database.queryStoreForInterface(Class, Class),
AbstractDatabase.queryStoreForInterface(Class, Class),
DBTransaction,
DBUtils.runInTransaction(com.antelmann.util.Task, DBTransaction, boolean),
DBUtils.runInTransaction(java.util.concurrent.Callable, DBTransaction, boolean)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||