Sun GlassFish Enterprise Server v3 Application Deployment Guide

consistency

Specifies container behavior in guaranteeing transactional consistency of the data in the bean.

Superelements

entity-mapping (sun-cmp-mappings.xml)

Subelements

The following table describes subelements for the consistency element.

Table C–40 consistency Subelements

Element  

Required  

Description  

none

exactly one subelement is required 

No consistency checking occurs. 

check-modified-at-commit

exactly one subelement is required 

Checks concurrent modification of fields in modified beans at commit time. 

lock-when-loaded

exactly one subelement is required 

Obtains an exclusive lock when the data is loaded. 

check-all-at-commit

 

This element is not implemented. Do not use. 

lock-when-modified

 

This element is not implemented. Do not use. 

check-version-of-accessed-instances

exactly one subelement is required 

Checks the version column of the modified beans.