Suppose I have a method named A(),B() and mainFunction() in Class C. In mainFunction() I have to run both methods A() and B() but both have beginTransaction() and commitTransaction(). If any error occur in B() then transactions in A() will still be committed or not? If yes, how can I get rid of this problem? Thanks in advance
public class C
{
public void A()
{
//beginTransaction
//functions
//commitTransaction
}
public void B()
{
//beginTransaction
//functions
//commitTransaction
}
public void mainFunction()
{
A();
B();
}
}