Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple Row updates using PL/SQL

2993455Sep 13 2016 — edited Sep 15 2016

Hi ,

Jdeveloper version :Studio Edition Version 12.2.1.0.0

I have read ADF pl/sql integration at couple of places. For instance :Oracle ADF Architecture TV - Design - Architecting for PLSQL Integrat…

Simplified usecase :

Page has a Query panel and table. There is a field to enter new salary at bottom of page and a button to click update. Update button issues a PL/SQL call to update all employees passing : newsalary, whereClause .

Now two users try to issue PL/SQL update through update through button. Please note that it is not doDML of entity... it is one AM Method call that invokes PL/SQl procedure.

Questions and concerns for discussion :

Incase of multiUser update through entity, Framework handles it. It is optimistic locking so I get Another User has updated the row with Primary key... Which is correct and expected.

How does multiUser update is handled in case when AM method pl/sql procedure issues update on multiple rows ?

            Example :-  User A filtered all employees with salary 2000-5000 and UserB filtered all employees with salary 3500-5500. User A tries to set salary for filtered employees to 4000 and UserB tries to set to 4500. So both invoking PL/SQL API in am method to update. What's happening is which ever update is going later is the final value of salary and version number is not updated ...neither I recieve any error like Another user has updated the row with primary key.

I dont think  Refresh on Update property will have any impact in refreshing EO/VO.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2016
Added on Sep 13 2016
13 comments
1,331 views