IndoTech
25th July 2016, 10:29
Hi,
I have one query regarding db.retry.point(), dal.save.object and commit.transaction() in case of multiple table updates.
If we have to update multiple tables using dal.change.object()
so to commit the whole transaction or abort whole transaction and start the transaction from all new from db.retry.point(), we need to follow the sequence as below ... Please correct if wrong..
1) db.retry.point()
2) dal.get.object(tbl1)
3) dal.change.object(tbl1)
4) dal.set.field( fld, val)
5) dal.save.object(tbl1)
then for next table - tbl2 with out db.retry.point()
6) dal.get.object(tbl2)
7) dal.change.object(tbl2)
8) dal.set.field( fld, val)
9) dal.save.object(tbl2)
10) commit.transaction() the whole transaction for tbl1 and tbl2 at last right?
Regards
Kedar
I have one query regarding db.retry.point(), dal.save.object and commit.transaction() in case of multiple table updates.
If we have to update multiple tables using dal.change.object()
so to commit the whole transaction or abort whole transaction and start the transaction from all new from db.retry.point(), we need to follow the sequence as below ... Please correct if wrong..
1) db.retry.point()
2) dal.get.object(tbl1)
3) dal.change.object(tbl1)
4) dal.set.field( fld, val)
5) dal.save.object(tbl1)
then for next table - tbl2 with out db.retry.point()
6) dal.get.object(tbl2)
7) dal.change.object(tbl2)
8) dal.set.field( fld, val)
9) dal.save.object(tbl2)
10) commit.transaction() the whole transaction for tbl1 and tbl2 at last right?
Regards
Kedar