# US 2004/0024741 A1 · Database processing method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0024741 A1
- Document ID: US20040024741A1
- Status: Published application
- Kind: A1
- Application number: 10/629,582
- Filed: 2003-07-30
- Published: 2004-02-05
- Earliest claimed: 1996-08-28
- Assignees: Hitachi, Ltd.
- Inventors: Norihiro Hara; Youichi Yamamoto; Susumu Kobayashi; Masashi Tsuchida
- Web page: https://patentgrep.com/patent/US20040024741A1

## CPC

- G06F 16/2291: {User-Defined Types; Storage management thereof}
- G06F 16/289: {Object oriented databases}
- Y10S 707/99933: Query processing, i.e. searching
- Y10S 707/99934: Query formulation, input preparation, or translation
- Y10S 707/99942: Manipulating data structure, e.g. compression, compaction, compilation
- Y10S 707/99943: Generating database or data structure, e.g. via user interface
- Y10S 707/99944: Object-oriented database structure
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

A user defined ADT function (to be implemented by an embedded module assigned to the function) is executed with module calling triggers other than the execution of the ADT function described in an SQL statement in a database management method which allows the user to define a data type. By creating a proper execution procedure command package, an embedded module implementing an ADT function can be executed even if the function is defined in a format to return execution results as a set. The database processing method includes an ADT function analysis for selecting a procedural model for creating a proper execution procedure command package in accordance with an evaluation style and a non-ADT function called embedded module analysis for adding information on embedded modules called on module calling triggers other than execution of ADT functions. Examples of module calling triggers other than execution of ADT functions include module calling triggers specified by embedded module defining information which includes the evaluation style of the embedded module in addition to the module calling triggers.

## Claims

### Claim 1

A database processing method used in a database management system wherein a user inquiry about contents of a database made by the user is analyzed, an execution procedure command package is created in accordance with results of analyzing said user inquiry and database processing is carried out in accordance with said execution procedure command package, said method comprising:
cataloging information on a format of execution results of an embedded module implementing an operation of a built-in data type in said database management system when the user defines said built-in data type; and
selecting either a procedure for executing said embedded module for each piece of desired data composing said database or a procedure for acquiring a plurality of execution results output by execution of said embedded module in accordance with information on said format of said execution results.

### Claim 2

A database processing method used in a database management system wherein a user inquiry about contents of a database made by the user is analyzed, an execution procedure command package is created in accordance with results of analyzing said user inquiry and database processing is carried out in accordance with said execution procedure command package, said method comprising:
cataloging information on module calling triggers of embedded modules each implementing an operation of a built-in data type in said database management system when the user defines said built-in data type;
adding information on embedded modules to be called on relevant module calling triggers obtained from said information on module calling triggers of said embedded modules to said execution procedure command package when said user inquiry made by the user is analyzed and said execution procedure command package is created; and
executing said embedded modules on said relevant module calling triggers specified in said information on embedded modules added to said execution procedure command package when database processing is carried out in accordance with said execution procedure command package.

### Claim 3

A database processing system comprising:
means for storing information on an evaluation style of an embedded module which implements an operation of a user-defined data type and information on module calling triggers for calling the embedded module;
means for selecting the evaluation style upon creation fo an execution procedure command package;
means for adding information on the embedded module at a time when a user inquiry is made; and
means for calling the embedded module on module calling triggers when database processing is carried out in accordance with the execution procedure command package.

### Claim 4 (depends on 3)

The system according to claim 3, wherein the evaluation style corresponds to one of line evaluation and set evaluation.

### Claim 5

A database management system comprising:
preprocess processing means for creating an execution procedure command package; and
execution processing means for obtaining data according to a predefined evaluation style, the execution control means obtaining data from a dedicated index data via an embedded module calling process.

### Claim 6 (depends on 5)

A database management system according to claim 5, wherein the preprocess processing means receives a user inquiry and embedded module defining information and performs user inquiry analysis, abstract data type (ADT) function analysis and non-ADT function analysis.

### Claim 7 (depends on 5)

A database management system according to claim 5, wherein the execution processing means operates module calling triggers contained in embedded module defining information which is received by the preprocess processing means.

### Claim 8 (depends on 6)

A database management system according to claim 6, wherein the execution processing means operates module calling triggers contained in the embedded module defining information.

### Claim 9 (depends on 5)

A database management system according to claim 5, wherein the embedding module calling process determines if data manipulation is necessary and acquires abstract data type (ADT) information if data manipulation is necessary and acquires a module calling trigger if data manipulation is not necessary.

### Claim 10 (depends on 8)

A database management system according to claim 8, wherein the embedding module calling process determines if data manipulation is necessary and acquires ADT information if data manipulation is necessary and acquires a module calling trigger if data manipulation is not necessary.

### Claim 11 (depends on 7)

A database management system according to claim 7, wherein the embedding module calling process determines if data manipulation is necessary and acquires ADT information if data manipulation is necessary and acquires a module calling trigger if data manipulation is not necessary.
