Trasnction management in DAO
Hello
I am using DAO for persistent layer in my project. There are cases when i need to access more than one DAO to manage transaction .
To achive this i am passing Connection object in every method which is
needed in transaction .
But for this i have to duplicate every method of every DAO .
I like to remove this code duplication.
I need something like this :
interface Transaction{
begin();
commit();
rollback();
}
How we can design this so that i do not need to pass connection object
in every DAO.
Thanksd for your suggestions.

