Method for optimistic locking using SQL select, update, delete, and insert statements
Abstract
A method for optimistic locking. 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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for providing optimistic locking in a database containing a plurality of data records, comprising: providing a variable optimistic locking value for each data record; providing an optimistic locking programming class; during a database transaction, creating an optimistic locking instance of the optimistic locking programming class for a selected data record, the optimistic locking instance including: (i) a value property corresponding to a current value of the optimistic locking value for the selected data record; (ii) a property indicating whether the value of th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (26)
Non-Patent Literature (1)
- Sunderraman, "Oracle Programming: A Primer", Addison-Wesley, Reading, Massachusetts, Oct. 1998, 8 pp.