Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] PESSIMISTIC_READ

Hi,
 
I am working on pessimistic locking on MaxDB.
 
MaxDB has lock modes "EXCLUSIVE" and "OPTIMISTIC", which seem to match the JPA lock modes PESSIMISTIC_WRITE and PESSIMIMSTIC_READ respectively.
 
It appears to me that I need to overwrite DatabasePlatform.getSelectForUpdateString in order to leverage database-specific pessimistic locking. However, it is not clear to me how to achieve the distinction between the lock modes PESSIMISTIC_WRITE and PESSIMIMSTIC_READ.
 
Am I missing something?
 
-Adrian
 
SAP AG
Dietmar-Hopp-Allee 16, 69190 Walldorf, Germany
 
Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Léo Apotheker (stellvertretender Sprecher/Deputy CEO), Werner Brandt, Claus Heinrich, Gerhard Oswald, John Schwarz, Peter Zencke
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board: Hasso Plattner
Registergericht/Commercial Register Mannheim No HRB 350269
 
 

Back to the top