In Oracle fusion web application development, if task flow is used for application flow control, by default, creating a task flow is a new thing,
If you want to roll back a transaction in a stream, you only need to add a restoresavepoint activity to implement rollback.ProgramTo create and roll back the storage point, use the followingCode:
1. Create a save point
Dcbindingcontainer binding = adfutils. getdcbindingcontainer (); <br/> dcdatacontrol = binding. getdatacontrol (); <br/> string fe-= (string) dcdatacontrol. createsavepoint (); <br/> jsfutils. setexpressionvalue ("# {pageflowscope. adfmsavepoint} ", FLAC );
When creating a save point, the ADF serializes the object instance in AM and saves it to the ps_txn table. Therefore, if am contains too many objects, there will be too much information saved to the background table when creating the save point,
This means that the division of AM granularity directly affects the creation of storage points.
2. Restore the save point
String fe-= (string) jsfutils. resolveexpression ("# {pageflowscope. adfmsavepoint} "); <br/> dcbindingcontainer binding = adfutils. getdcbindingcontainer (); <br/> dcdatacontrol = binding. getdatacontrol (); <br/> dcdatacontrol. restoresavepoint (Flac );
This article is transferred from Oracle Seeker: http://oracleseeker.com/2009/07/18/create_and_restore_savepoint_in_oracle_adf_application/