Method and apparatus for optimistic locking using SQL select, update, delete, and insert statements
AssigneeInternational Business Machines Corporation
InventorRobert Dunn
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorRobert Dunn
Estimating the term…
A method, computer program product and data processing system for optimistic locking is provided. An integer column is added to a database table. A Structured Query Language statement is constructed and prepared to form a prepared Structured Query Language statement, wherein a result set of the prepared Structured Query Language statement includes the integer column. Any required parameter information is set in the prepared Structured Query Language statement. The prepared Structured Query Language statement is executed in a database transaction. A unique key associated with an element of the result set of the prepared Structured Query Language statement is determined. The row of the database table that the unique key is associated with is determined. A value in the integer column of the determined row is determined. The value in the integer column of the determined row is stored to form a stored value associated with the unique key, wherein the stored value ceases to exist when the database transaction ends.
A computer implemented method for optimistic locking, the method comprising:
A computer program product comprising a computer usable medium including computer usable program code for optimistic locking, said computer program product comprising:
A data processing system for optimistic locking, said data processing system comprising:
Dependencies are inferred from the claim text.