Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: localpart
- Next: lock-when-modified

## lock-when-loaded

Places a database update lock on the rows corresponding to the bean whenever the bean is loaded. How the lock is placed is database-dependent. The lock is released when the transaction finishes (commit or rollback). While the lock is in place, other database users have read access to the bean.

### Superelements

consistency (`sun-cmp-mappings.xml`)

### Subelements

none - element is present or absent

- Previous: localpart
- Next: lock-when-modified

- © 2010, Oracle Corporation and/or its affiliates