发明名称 Method and Apparatus for Optimistic Locking Using SQL Select, Update, Delete, and Insert Statements
摘要 A method, computer program product and data processing system 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.
申请公布号 US2010185597(A1) 申请公布日期 2010.07.22
申请号 US20100751564 申请日期 2010.03.31
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 DUNN ROBERT MICHAEL HUNTER
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址