发明名称 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 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.
申请公布号 US2007185834(A1) 申请公布日期 2007.08.09
申请号 US20060340995 申请日期 2006.01.27
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 DUNN ROBERT M.H.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址