Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Locking with Persistent Objects???

Former Member
0 Likes
496

Hi,

while updating database with Persistent Objects? does persistent layer takes care of locking the records??

i am not sure locking mechanism is there!!

Please suggest

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
363

From help.sap.com:

If several programs use the Persistence Service to instantiate objects of the same class before one of these programs has changed the state using COMMIT WORK, all the objects will have the same initial state. At present, we have not implemented a Persistence Service lock concept, which would ensure that there was only one transient mapping for each persistent object. So ultimately, ABAP programmers are not really working with persistent objects as such; rather, the Persistence Service makes it appear as if they are.

Regards

Marcin

1 REPLY 1
Read only

MarcinPciak
Active Contributor
0 Likes
364

From help.sap.com:

If several programs use the Persistence Service to instantiate objects of the same class before one of these programs has changed the state using COMMIT WORK, all the objects will have the same initial state. At present, we have not implemented a Persistence Service lock concept, which would ensure that there was only one transient mapping for each persistent object. So ultimately, ABAP programmers are not really working with persistent objects as such; rather, the Persistence Service makes it appear as if they are.

Regards

Marcin