Create and restore a save point in the ADF Application

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.