I have a extension controller for my Visualforce Page. It has 2 Action methods, method1() and method2(). Each method executes DML statements.
if there is failure in method2(), I need to rollback the DMLs made by method1 ( as well as method2).
I am trying to use SavePoint as a class member because savepoint will be set in method1 and will be accessed in method2 for rollback.
creating a savepoint as class member requires it to be declared as "transient". If it is transient, the class level savepoint varialble is null, so the Database.rollback(sp) fails.
So does it mean it is not possible to have a savepoint as class member in extension controller ?