IP Library Granted Patent US 7,840,531
Granted Patent B2
US 7,840,531 · App. 12/020,462 · Granted Nov 23, 2010

System and computer program for inserting records into a database

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,840,531
App. No.
12/020,462
Granted
Nov 23, 2010
Kind
B2
Abstract

For a data processing system having memory for storing a database, a method, a system and a computer program product for directing the data processing system to process a record to be inserted into the database is disclosed. The database includes a plurality of base tables. The method includes the steps of making a record copy matching the record, for each base table to be selected from the plurality of base tables: providing a base table candidate indication for a selected base table, the base table candidate indication indicating whether the selected base table is a candidate base table that may receive the record, the base table candidate indication being determined on an outcome of executing before triggers and an outcome of testing constraints in association with the record copy, the before triggers and the constraints being associated with the selected base table; and restoring the record copy so that the record copy matches the record before providing a next subsequent base table candidate indication for another base table to be selected.

Claims (16)

1. A computer program product for directing a data processing system to process a record to be inserted into a database, the database comprising a plurality of base tables, the computer program product comprising:

a computer readable medium tangibly embodying computer executable code for directing the data processing system, the computer executable code comprising:

code for making a record copy matching the record;

code to be executed for each base table to be selected from the plurality of base tables, the code to be executed comprising:

code for providing a base table candidate indication for a selected base table, the base table candidate indication indicating whether the selected base table is a candidate base table that may receive the record, the base table candidate indication being determined on an outcome of executing before triggers and an outcome of testing constraints on the record copy, the before triggers and the constraints being associated with the selected base table, and the base table candidate indication being recorded in a computer-readable storage medium; and

code for restoring the record copy so that the record copy matches the record before providing a next subsequent base table candidate indication for another base table to be selected.

2. The computer program product of claim 1 wherein:

the record comprises rows;

the code for providing comprises:

code for executing before triggers associated with the selected base table for each row of the record copy, the executed before triggers altering the record copy; and

code for testing constraints associated with the selected base table against the altered record copy.

3. The computer program product of claim 1 further comprising:

code for associating the plurality of base tables with all union view of the plurality of base tables.

4. The computer program product of claim 1 further comprising:

code for inserting the received record into a base table if the base table is the only base table indicated as the candidate base table; and

code for issuing an error message if there are more than one base table indicated as the candidate base table.

Assignments (3)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0334 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 12, 2012
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: SAP AG
Reel/Frame 028540/0522 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 25, 2008
From: CHEN, ZHIMIN; LIU, LINQI; QIAN, XIAOYAN; RIELAU, SERGE PHILIPPE
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 020419/0446 →