com.jenkov.mrpersister.itf
Interface IGenericDaoTransaction
public interface IGenericDaoTransaction
* NOTE: Experimental!!
This interface represents a transaction that is executed inside one Mr. Persisters
dao instances (fx. by calling IGenericDao.executeTransaction()
). A dao command may contain
multiple actions, for instance reading and updating various objects in the database.
The advantage of dao commands is typically that some of the standard JDBC work can
be taken over by the dao instance. For instance committing or rolling back
the transaction and closing the connection after the transaction is executed.
- Author:
- Jakob Jenkov - Copyright 2005 Jenkov Development
execute
java.lang.Object execute(IGenericDao dao)
throws PersistenceException
- Executes this dao transaction.
- Returns:
- @return The result to be returned, if any, of this transaction.
- Throws:
PersistenceException