JP2942414B2 - Virtual database method - Google Patents

Virtual database method

Info

Publication number
JP2942414B2
JP2942414B2 JP4059072A JP5907292A JP2942414B2 JP 2942414 B2 JP2942414 B2 JP 2942414B2 JP 4059072 A JP4059072 A JP 4059072A JP 5907292 A JP5907292 A JP 5907292A JP 2942414 B2 JP2942414 B2 JP 2942414B2
Authority
JP
Japan
Prior art keywords
command
virtual database
database
statement
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4059072A
Other languages
Japanese (ja)
Other versions
JPH05225013A (en
Inventor
康勝 石田
実 山田
完二 秋山
洋 平川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ADOBANSUDO SHISUTEMU KENKYUSHO KK
Original Assignee
ADOBANSUDO SHISUTEMU KENKYUSHO KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ADOBANSUDO SHISUTEMU KENKYUSHO KK filed Critical ADOBANSUDO SHISUTEMU KENKYUSHO KK
Priority to JP4059072A priority Critical patent/JP2942414B2/en
Publication of JPH05225013A publication Critical patent/JPH05225013A/en
Application granted granted Critical
Publication of JP2942414B2 publication Critical patent/JP2942414B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、情報処理システムにお
いて、データの検索、登録、更新、削除等のデータ操作
機能を受け持つデータベースに関し、特に仮想データベ
ース操作文を用いたアプリケーションプログラムをデー
タベースで動作させる仮想デ−タベース方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database having a data operation function such as data search, registration, update, and deletion in an information processing system, and more particularly to an application program using a virtual database operation statement to operate on the database. The present invention relates to a virtual database system.

【0002】[0002]

【従来の技術】従来のデータベースをアクセスする場
合、種類の異なるデータベースでは、異なるアクセス方
法を用いている。したがってある種類のデータベースで
動作しているアプリケーションプログラムはそのままで
は、他の種類のデータベースで動作しない。そこでこの
問題を解決するため、操作者が操作するアプリケーショ
ンプログラムとデータベースとの間に操作者が操作する
アプリケーションプログラムにて動作するデータベース
(仮想データベース)を想定し、データベース操作方法
の変換過程を介在させることによって、操作方法の異な
るデータベースに対して同一の操作方法によるアクセス
を可能とする仮想データベース方式が利用されている。
2. Description of the Related Art When accessing a conventional database, different types of databases use different access methods. Therefore, an application program operating on one type of database does not operate on another type of database as it is. In order to solve this problem, a database (virtual database) operated by the application program operated by the operator is assumed between the application program operated by the operator and the database, and a conversion process of the database operation method is interposed. As a result, a virtual database system that allows access to databases having different operation methods by the same operation method is used.

【0003】ところで、上述した従来の仮想データベー
ス方式は、図9に示すように仮想データベース操作文
(すなわち、操作者が扱うデータベース操作文)を用い
たアプリケーションプログラムの実行モジュール101
とデータベース103の間に、仮想データベースアダプ
タ102を装備し、仮想データベース操作方法からデー
タベースアクセス方法への変換をデータベースへのアク
セス実行時に行っていた。
In the above-described conventional virtual database system, as shown in FIG. 9, an execution module 101 of an application program using a virtual database operation statement (that is, a database operation statement handled by an operator) is used.
A virtual database adapter 102 is provided between the virtual database adapter 103 and the database 103, and the conversion from the virtual database operation method to the database access method is performed when the database is accessed.

【0004】[0004]

【発明が解決しようとする課題】しかし、上述した従来
の技術において、仮想デ−タベ−スアダプタの作成は、
データベースが提供するアクセス方法が汎用性の高い物
でない場合は、困難であるという欠点があった。そこで
データベースに依存することなく、仮想データベースア
ダプタを実現するための汎用的なアクセス方法が用意さ
れていないデータベースにおいても、実現可能な仮想デ
−タベ−ス方法を構築することが課題となっていた。
However, in the above-mentioned prior art, the creation of a virtual database adapter is
If the access method provided by the database is not highly versatile, there is a drawback that it is difficult. Therefore, it has been a problem to construct a virtual database method that can be realized even in a database that does not have a general-purpose access method for realizing a virtual database adapter without depending on the database. .

【0005】本発明は、仮想データベースアダプタの構
築をソースプログラムレベルで実現することにより上記
の目的を達成し、汎用性のあるデータベースのアクセス
方法を用意して実行時にデータベース操作文を文字列で
直接指定するといったダイナミックなデータベース操作
文処理機能を必要としない仮想データベース方式を提供
することを目的とする。
According to the present invention, the above object is achieved by realizing the construction of a virtual database adapter at a source program level, a general-purpose database access method is prepared, and a database operation statement is directly represented by a character string at the time of execution. It is an object of the present invention to provide a virtual database system that does not require a dynamic database operation statement processing function such as specification.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成すべく
本発明の仮想データベース方式は、操作者が扱う仮想デ
ータベース操作文を用いたアプリケーションプログラム
のソースを、操作するデ−タベ−スに適合したデータベ
ース操作文を用いたアプリケーションプログラムのソー
スに生成する仮想データベース操作文変換手段を備え、
この仮想データベース操作文変換手段は、入力した仮想
データベース操作文を用いたアプリケーションプログラ
ムのソースに対して字句解析、構文解析、中間テーブル
作成、及びコード生成を行うことによって、データベー
ス操作文を用いたアプリケーションプログラムのソース
を生成すると共に、上記中間テ−ブル作成処理では、コ
マンドテ−ブルの領域を確保した後処理中のコマンドの
種別を判定し、上記コマンドが仮想デ−タベ−ス操作文
であるときはコマンドの種別に応じたテ−ブルの領域を
確保するとともに該確保したテ−ブルにコ−ド生成に必
要な情報を登録し、上記コマンドが仮想デ−タベ−ス操
作文でないときは上記処理中のコマンドをそのまま上記
コマンドテ−ブルに登録するものであり、この仮想デ−
タベ−ス操作文変換手段により変換して得られたソース
をコンパイルすることによって実行モジュールを得、該
実行モジュ−ルによってデータベースにアクセスして動
作する。
In order to achieve the above object, the virtual database system of the present invention is adapted to a database for operating a source of an application program using a virtual database operation statement handled by an operator. Virtual database operation statement conversion means for generating in the source of the application program using the database operation statement,
This virtual database operation statement conversion means converts the input virtual
Application program using database operation statement
Lexical analysis, parsing, and intermediate tables for system sources
By creating and generating code,
Of application program using application operation statement
Is generated, and in the intermediate table creation processing,
After securing the command table area, the
The type is determined, and the command is a virtual database operation statement.
If, the table area corresponding to the type of command is
Necessary for code generation on the secured table.
Register the necessary information, and execute the virtual database operation
If it is not an essay, the above command being processed is
This virtual data is registered in the command table.
An execution module is obtained by compiling the source obtained by the conversion by the database manipulation statement conversion means, and the execution module accesses and operates the database.

【0007】[0007]

【0008】[0008]

【0009】また仮想デ−タベ−ス操作文変換手段のコ
−ド生成処理では、コマンドテ−ブルを参照してコマン
ドの種別を判定し、上記コマンドが仮想デ−タベ−ス操
作文であるときはコマンドの種別に応じてデ−タベ−ス
操作文を生成して出力し、上記コマンドが仮想デ−タベ
−ス操作文でないときは上記コマンドテ−ブルに登録さ
れている内容をそのまま出力する。
In the code generation process of the virtual database operation statement conversion means, the type of the command is determined with reference to the command table, and when the command is a virtual database operation statement. Generates and outputs a database operation statement according to the type of command. If the command is not a virtual database operation statement, it outputs the contents registered in the command table as it is.

【0010】[0010]

【実施例】以下、本発明の実施例について、図面を参照
して説明する。図1は、本発明の一実施例にかかる仮想
データベース方式の構成を示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a virtual database system according to one embodiment of the present invention.

【0011】同図に示すように、仮想データベース操作
文を用いたアプリケーションプログラムのソース10
(以下、適宜「ソース10」と略す)は、仮想データベ
ース操作文変換手段11により、一旦、中間テーブル1
2に変換され、さらにデータベース操作文を用いたアプ
リケーションプログラムのソース13(以下、適宜「ソ
ース13」と略す)に変換される。このソース13よ
り、コンパイラ14によって、データベース操作文を用
いたアプリケーションプログラムの実行モジュール15
が生成され、データベース16をアクセスする実行モジ
ュールとなる。
As shown in FIG. 1, a source 10 of an application program using a virtual database operation statement
(Hereinafter abbreviated as “source 10” as appropriate) is temporarily stored in the intermediate table 1 by the virtual database operation statement conversion unit 11.
2 and further converted to a source 13 of an application program using a database operation statement (hereinafter abbreviated as “source 13” as appropriate). From this source 13, the compiler 14 executes the application program execution module 15 using the database operation statement.
Is generated and becomes an execution module that accesses the database 16.

【0012】図2は、仮想データベース操作文変換手段
11の処理を示すフローチャートである。ステップS2
1において、仮想データベース操作文を用いたアプリケ
ーションプログラムのソース10を読み込み、字句解析
処理を行い、構文上の基本要素に分解する。
FIG. 2 is a flowchart showing the processing of the virtual database manipulation statement conversion means 11. Step S2
In step 1, a source 10 of an application program using a virtual database operation statement is read, lexical analysis processing is performed, and it is decomposed into basic elements in syntax.

【0013】ステップS22において、字句解析によっ
て得られた構文上の基本要素の列の構文を解析し、構文
エラーの処理、文の種類及び構造の認識をする。ステッ
プS23において、構文解析により認識した構文に対応
して、中間テーブル12の領域を確保し、コード生成に
必要な情報を中間テーブル12に記録する。
In step S22, the syntax of the sequence of basic elements on the syntax obtained by the lexical analysis is analyzed, and a syntax error is processed, and the type and structure of the sentence are recognized. In step S23, an area of the intermediate table 12 is secured according to the syntax recognized by the syntax analysis, and information necessary for code generation is recorded in the intermediate table 12.

【0014】ステップS24において、入力ファイルの
仮想データベース操作文を用いたアプリケーションプロ
グラムのソース10が終了したかどうかの判定をし、終
了した場合は、ステップS25に進み、ソース10がま
だある場合は、ステップS21に戻り、ステップS21
からの処理を繰り返す。
In step S24, it is determined whether or not the source 10 of the application program using the virtual database operation statement of the input file has been terminated. If the source 10 has been terminated, the process proceeds to step S25. Returning to step S21, step S21
Is repeated.

【0015】ステップS25では、中間テーブル12に
記録されている情報を参照し、データベース操作文を用
いたアプリケーションプログラムのソース13を生成す
る。
In step S25, referring to the information recorded in the intermediate table 12, a source 13 of an application program using a database operation statement is generated.

【0016】図3は仮想データベース操作文変換手段1
1の処理を示すフローチャート図2の中の中間テーブル
作成ステップS23の処理を示すフローチャートであ
る。
FIG. 3 shows a virtual database operation statement conversion means 1.
3 is a flowchart showing a process of an intermediate table creation step S23 in FIG. 2.

【0017】ステップS31において、コマンドテーブ
ルの領域を確保する。ステップS32において、現在処
理中のコマンドの種類を判定し、それが仮想データベー
ス操作文のコマンドならば、ステップS34へ進み、仮
想データベース操作文のコマンドでなければ、ステップ
S33へ進む。
In step S31, a command table area is secured. In step S32, the type of the command currently being processed is determined. If it is a command of a virtual database operation statement, the process proceeds to step S34. If not, the process proceeds to step S33.

【0018】ステップS33において、処理中のコマン
ドをそのままコマンドテーブルへ登録する。ステップS
34において、コマンドの種別に応じたテーブルの領域
を確保する。ステップS35において、ステップS34
で確保したコマンドの種別に対応したテーブルに、コー
ド生成に必要となる情報を登録する。
In step S33, the command being processed is registered as it is in the command table. Step S
At 34, a table area corresponding to the type of command is secured. In step S35, step S34
The information necessary for code generation is registered in the table corresponding to the type of the command secured in step (1).

【0019】図4は、ステップS25のコード生成の処
理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing the flow of the code generation process in step S25.

【0020】ステップS41において、中間テーブル1
2を参照し、データベース操作文を用いたアプリケーシ
ョンプログラム13の大域宣言文を生成する。ステップ
S42において、次のコマンドテーブルを現コマンドテ
ーブルとする。
In step S41, the intermediate table 1
2, a global declaration statement of the application program 13 using the database operation statement is generated. In step S42, the next command table is set as the current command table.

【0021】ステップS43において、コマンドの種別
を判定し仮想データベース操作文ならばステップS45
に進み、それ以外はステップS44に進む。ステップS
44において、コマンドテーブルに登録されているコマ
ンドの内容をそのまま出力する。ステップS45におい
て、コマンドの種類に応じてデータベース操作文を生成
出力する。
In step S43, the type of the command is determined, and if the command type is a virtual database operation statement, step S45
Otherwise, the process proceeds to step S44. Step S
At 44, the contents of the command registered in the command table are output as they are. In step S45, a database operation statement is generated and output according to the type of command.

【0022】ステップS46において、コマンドテーブ
ルが終わりか否かの判定を行い、コマンドテーブルが終
わりならば処理を終了し、次のコマンドテーブルがある
ならばステップS42へ戻り、ステップS42からの処
理を繰り返す。
In step S46, it is determined whether or not the command table is finished. If the command table is finished, the process is terminated. If there is another command table, the process returns to step S42, and the processes from step S42 are repeated. .

【0023】このようにして、仮想データベース操作文
を含むアプリケーションプログラムのソース10から、
字句解析処理、構文解析処理、中間テーブル作成処理に
より中間テーブル12が作成され、さらにコード生成処
理によりデータベース操作文を含むアプリケーションプ
ログラムのソース13が生成される。
Thus, from the source 10 of the application program including the virtual database operation statement,
The intermediate table 12 is created by the lexical analysis processing, the syntax analysis processing, and the intermediate table creation processing, and the source 13 of the application program including the database operation statement is generated by the code generation processing.

【0024】以上のように構成した本実施例の仮想デー
タベース方式によれば、仮想データベース操作文を用い
たアプリケーションプログラムのソース10が、まずデ
ータベース操作文を用いたアプリケーションプログラム
のソース13に変換され、その後にデータベース操作文
を用いたアプリケーションプログラムの実行モジュ−ル
15が生成されてデータベース16で動作することとな
るので、操作者はデータベース16に対し、あたかも仮
想データベース操作文を用いたアプリケーションプログ
ラムで動作するデータベース(仮想データベース)を操
作するのと同一の方法で操作することができることとな
る。
According to the virtual database system of the present embodiment configured as described above, the source 10 of the application program using the virtual database operation statement is first converted into the source 13 of the application program using the database operation statement. Thereafter, the execution module 15 of the application program using the database operation statement is generated and operates on the database 16, so that the operator operates the database 16 as if the application program uses the virtual database operation statement. It can be operated in the same way as operating a database (virtual database) to be operated.

【0025】次に仮想データベース操作文を用いたアプ
リケーションプログラムのソース10をデータベース操
作文を用いたアプリケーションプログラムのソース13
に変換した例として、仮想データベース操作文を含むC
言語のプログラムからSQL言語を含むC言語で書かれ
たプログラムを生成する場合を例として具体的に説明す
る。
Next, the source 10 of the application program using the virtual database operation statement is changed to the source 13 of the application program using the database operation statement.
As an example of conversion to
A case where a program written in C language including SQL language is generated from a language program will be specifically described as an example.

【0026】図5は、仮想データベース操作文を含むア
プリケーションプログラムのソース10の例である。
FIG. 5 is an example of an application program source 10 including a virtual database operation statement.

【0027】ここでは、仮想データベース操作文とし
て、アクセス文51、データベースへのアクセスの準備
をするためのプリペア文52、データベースからデータ
を選択するためのフォーイーチ文53、フォーイーチ文
の有効範囲を表すブロック開始文54及びブロック終了
文55、アクセス文の終わりを表すエンドアクセス文5
6が使用されている。このソース10で仮想データベー
ス文以外はC言語の文である。
Here, as the virtual database operation statement, an access statement 51, a prepare statement 52 for preparing access to the database, a for-each statement 53 for selecting data from the database, and a block representing the effective range of the for-each statement. Start statement 54, block end statement 55, end access statement 5 representing the end of the access statement
6 are used. The source 10 is a C language sentence except for the virtual database sentence.

【0028】図6は、中間テーブル12の例であり、図
5で示した仮想データベース文を含むアプリケーション
プログラムのソース10から生成される中間テーブル1
2の概要を示した図である。
FIG. 6 shows an example of the intermediate table 12, which is generated from the source 10 of the application program including the virtual database statement shown in FIG.
FIG. 2 is a diagram showing an outline of the second embodiment.

【0029】図に示すように、コマンドテーブル81に
よってプログラムの文のつながりを表し、仮想データベ
ース文以外の文は文字列としてそのまま可変長のエリア
に登録され、その先頭アドレスがコマンドテーブルに登
録されている。仮想データベース操作文は、それぞれの
文に対応したテーブルが作られ、コード生成に必要な情
報が蓄えられる。
As shown in the figure, the connection of program sentences is represented by a command table 81, sentences other than virtual database sentences are registered as character strings in a variable-length area as they are, and the start address thereof is registered in a command table. I have. For the virtual database operation statement, a table corresponding to each statement is created, and information necessary for code generation is stored.

【0030】ただし、フォーイーチ文の有効範囲を示す
ブロック開始文54、ブロック終了文55、及びアクセ
ス文の終わりを示すエンドアクセス文56などは、中間
テーブル12のコマンドテーブル81のポインタ参照に
よる構造によって明らかとなるため、対応するコマンド
テーブルは省略する。
However, the block start statement 54, the block end statement 55 indicating the effective range of the for each statement, the end access statement 56 indicating the end of the access statement, and the like are apparent from the structure of the intermediate table 12 by referring to the pointer in the command table 81. Therefore, the corresponding command table is omitted.

【0031】図7は、データベース操作文を含むアプリ
ケーションプログラムのソース13の例である。
FIG. 7 is an example of an application program source 13 including a database operation statement.

【0032】これは、図5に示した仮想データベース操
作文を含むアプリケーションプログラムのソース10か
ら生成されるもので、仮想データベース操作文はSQL
言語の文に変換されている。図5と図7を比較するとわ
かるように、C言語の部分は同じであり、仮想データベ
ース操作文は、SQL言語の文とC言語の文に変換され
ている。具体的には、図5のフォーイーチ文53と、そ
の範囲を表すブロック文54、55が図7の71の文に
変換され、他の仮想データベース操作文51、52、5
6は、直接文を生成していないが71の文に影響を与え
ている。
This is generated from the source 10 of the application program including the virtual database operation statement shown in FIG.
Have been translated into language sentences. As can be seen by comparing FIG. 5 and FIG. 7, the C language part is the same, and the virtual database operation statement is converted into a SQL language statement and a C language statement. More specifically, the for-each statement 53 in FIG. 5 and the block statements 54 and 55 representing the range are converted into the statement 71 in FIG.
No. 6 does not directly generate a sentence, but affects 71 sentences.

【0033】図8は、本実施例で用いた中間テーブル1
2の概要を示したもので、81はコマンドテ−ブル、8
2はプリペアテ−ブル、83はセグメントテ−ブル、8
4はプリペアバイテ−ブル、85はセグメントバイテ−
ブル、86はフォ−イ−チテ−ブル、87はビュ−テ−
ブル、88はアットエンドテ−ブル、89はビュ−キ−
テ−ブル、90は式テ−ブル、91はアクセステ−ブ
ル、92は型テ−ブルである。これらの中間テーブル1
2は、図6に示した中間テーブル12の例のように、ポ
インタ参照により構造化され、仮想データベース操作文
を用いたアプリケーションプログラムのソース10の構
造を反映した構造となる。
FIG. 8 shows the intermediate table 1 used in this embodiment.
2 shows the outline of the command table, 81 is a command table, 8
2 is a prepare table, 83 is a segment table, 8
4 is a prepare bite, 85 is a segment bite
, 86 is a foretable, 87 is a view table.
Bull, 88 is an at end table, 89 is a view key
Reference numeral 90 denotes an expression table, reference numeral 91 denotes an access table, and reference numeral 92 denotes a type table. These intermediate tables 1
2 is structured by pointer reference like the example of the intermediate table 12 shown in FIG. 6, and has a structure reflecting the structure of the source 10 of the application program using the virtual database operation statement.

【0034】[0034]

【発明の効果】上述のごとく本発明によれば、データベ
ースが異なる場合においても同一の仮想データベースア
クセス方法をアプリケーションプログラムに提供するた
めの仮想データベースアダプタの構築をソースプログラ
ムレベルで実現したことにより、汎用性のあるデータベ
ースのアクセス方法を用意して実行時にデータベース操
作文を文字列で直接指定するといったダイナミックなデ
ータベース操作文処理機能を必要とせず、データベース
に依存しない仮想デ−タベ−ス方式を実現できるという
効果がある。
As described above, according to the present invention, the construction of a virtual database adapter for providing the same virtual database access method to an application program even when the database is different is realized at the source program level. There is no need for a dynamic database operation statement processing function such as preparing a database access method with a unique nature and directly specifying a database operation statement by a character string at the time of execution, and a database-independent virtual database method can be realized. This has the effect.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施例の構成図を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration diagram of an embodiment of the present invention.

【図2】仮想データベース操作文変換手段の動作を示す
フローチャートである。
FIG. 2 is a flowchart showing an operation of a virtual database operation sentence conversion unit.

【図3】中間テーブル作成処理を示すフローチャートで
ある。
FIG. 3 is a flowchart illustrating an intermediate table creation process.

【図4】コード生成処理を示すフローチャートである。FIG. 4 is a flowchart illustrating a code generation process.

【図5】仮想データベース操作文を含むプログラム例を
示す図である。
FIG. 5 is a diagram illustrating an example of a program including a virtual database operation statement.

【図6】中間テーブル例を示す図である。FIG. 6 is a diagram illustrating an example of an intermediate table.

【図7】データベース操作文を含むプログラム例を示す
図である。
FIG. 7 is a diagram illustrating an example of a program including a database operation statement.

【図8】中間テーブル例の概要を示す図である。FIG. 8 is a diagram showing an outline of an example of an intermediate table.

【図9】従来の仮想データベース方式の構成を示すブロ
ック図である。
FIG. 9 is a block diagram showing a configuration of a conventional virtual database system.

【符号の説明】[Explanation of symbols]

10 仮想データベース操作文を用いたアプリケーショ
ンプログラムのソース 11 仮想データベース操作文変換手段 12 中間テーブル 13 データベース操作文を用いたアプリケーションプ
ログラムのソース 14 コンパイラ 15 データベース操作文を用いたアプリケーションプ
ログラムの実行モジュール 16 データベース
Reference Signs List 10 Source of application program using virtual database operation statement 11 Virtual database operation statement conversion means 12 Intermediate table 13 Source of application program using database operation statement 14 Compiler 15 Application program execution module using database operation statement 16 Database

───────────────────────────────────────────────────── フロントページの続き (72)発明者 平川 洋 神奈川県川崎市川崎区南渡町1丁目1番 株式会社エヌ・ケー・エクサ内 (56)参考文献 特開 昭61−100823(JP,A) 特開 平2−67682(JP,A) 特開 平2−165239(JP,A) 特開 平2−217963(JP,A) 特開 平3−94374(JP,A) 特開 平3−282826(JP,A) 特開 平4−15753(JP,A) 特開 平4−25942(JP,A) 特開 平4−38563(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 12/00 G06F 9/06 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Hiroshi Hirakawa 1-1-1 Minamiwatari-cho, Kawasaki-ku, Kawasaki-shi, Kanagawa Pref. KK Exa Co., Ltd. (56) References JP-A-61-100823 (JP, A JP-A-2-67682 (JP, A) JP-A-2-165239 (JP, A) JP-A-2-217963 (JP, A) JP-A-3-94374 (JP, A) 282826 (JP, A) JP-A-4-15753 (JP, A) JP-A-4-25942 (JP, A) JP-A-4-38563 (JP, A) (58) Fields investigated (Int. Cl. 6, DB name) G06F 12/00 G06F 9/06

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 操作方法の異なるデータベースに対し同
一の操作方法によるアクセスを可能とする仮想データベ
ース方式において、 操作者が扱う仮想データベース操作文を用いたアプリケ
ーションプログラムのソースから、操作するデータベー
スに適合したデータベース操作文を用いたアプリケーシ
ョンプログラムのソースを生成する仮想データベース操
作文変換手段を備え 上記仮想データベース操作文変換手段は、仮想データベ
ース操作文を用いたアプリケーションプログラムのソー
スを字句に分解する字句解析処理、字句解析で得られた
字句の並びの構文を解析する構文解析処理、構文解析の
結果から中間テーブルを作成する中間テーブル作成処
理、中間テーブルを参照しながらデータベース操作文を
用いたアプリケーションプログラムのソースを生成する
コード生成処理、からなると共に、上記中間テ−ブル作
成処理において、コマンドテ−ブルの領域を確保した後
処理中のコマンドの種別を判定し、上記コマンドが仮想
デ−タベ−ス操作文であるときはコマンドの種別に応じ
たテ−ブルの領域を確保するとともに該確保したテ−ブ
ルにコ−ド生成に必要な情報を登録し、上記コマンドが
仮想デ−タベ−ス操作文でないときは上記処理中のコマ
ンドをそのまま上記コマンドテ−ブルに登録する ことを
特徴とする仮想データベース方式。
In a virtual database system which enables access to databases having different operation methods by the same operation method, an application program adapted from a source of an application program using virtual database operation statements handled by an operator to a database to be operated. It includes a virtual database manipulation statements conversion means for generating a source of the application program using the database manipulation statements, the virtual database manipulation statements conversion means, the virtual database
Source of application programs using source operation statements
Lexical analysis processing to decompose
Parsing processing to analyze the syntax of lexical sequences, parsing
An intermediate table creation process that creates an intermediate table from the results
Database operation statement while referring to the intermediate table
Generate the source of the used application program
Code generation processing, and the intermediate table
After securing the command table area in the
The type of the command being processed is determined, and the
If it is a database operation statement, it depends on the command type.
And secure the area of the table
Register the information required for code generation in the
If the sentence is not a virtual database operation statement,
A virtual database system, wherein a command is directly registered in the command table .
【請求項2】 仮想データベース操作文変換手段が、コ
−ド生成処理において、コマンドテ−ブルを参照してコ
マンドの種別を判定し、 上記コマンドが仮想デ−タベ−ス操作文であるときはコ
マンドの種別に応じてデ−タベ−ス操作文を生成して出
力し、 上記コマンドが仮想デ−タベ−ス操作文でないときは上
記コマンドテ−ブルに登録されている内容をそのまま出
力することを特徴とする請求項1に記載の仮想データベ
ース方式。
2. The virtual database operation statement conversion means judges a command type by referring to a command table in a code generation process. If the command is a virtual database operation statement, the command And generating and outputting a database operation statement in accordance with the type of the command table. If the command is not a virtual database operation statement, the contents registered in the command table are output as they are. The virtual database system according to claim 1, wherein
JP4059072A 1992-02-12 1992-02-12 Virtual database method Expired - Lifetime JP2942414B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4059072A JP2942414B2 (en) 1992-02-12 1992-02-12 Virtual database method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4059072A JP2942414B2 (en) 1992-02-12 1992-02-12 Virtual database method

Publications (2)

Publication Number Publication Date
JPH05225013A JPH05225013A (en) 1993-09-03
JP2942414B2 true JP2942414B2 (en) 1999-08-30

Family

ID=13102787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4059072A Expired - Lifetime JP2942414B2 (en) 1992-02-12 1992-02-12 Virtual database method

Country Status (1)

Country Link
JP (1) JP2942414B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07287652A (en) * 1994-04-18 1995-10-31 Nec Corp Automatic generation system for db extraction processing program

Also Published As

Publication number Publication date
JPH05225013A (en) 1993-09-03

Similar Documents

Publication Publication Date Title
US20040158820A1 (en) System for generating an application framework and components
JP2005515518A (en) Method and system for converting legacy software applications into modern object-oriented systems
US7792851B2 (en) Mechanism for defining queries in terms of data objects
JPH08202545A (en) Object-oriented system and method for generation of target language code
US20040158824A1 (en) Method and system for generating executable code for formatting and printing complex data structures
JP2942414B2 (en) Virtual database method
JP2976891B2 (en) Remote database access method
JPH07182179A (en) Object oriented data base managing device
GB2420638A (en) Method of substituting code fragments in Internal Representation
JP2000181697A (en) Method and device for conversion to open type system of mainframe cobol property and recording medium
JPH08194611A (en) Device for analyzing rang of influence caused by program correction
JPH07146785A (en) Method for automatically generating program and device therefor
JPH03182932A (en) Program generation system
JP2977642B2 (en) FORTRAN compilation processor
JPH11154093A (en) Program compiler and storage medium recording compiler program
JP3082767B2 (en) Translation list output control device
KR960018924A (en) Data Manipulation Processing Method for Real-time Support of DBMS
JPH0752391B2 (en) Translation method of source program including multiple database descriptions
JP2807854B2 (en) Data structure expansion method for COBOL programs
JPH04273534A (en) Precompile system
JPH06231181A (en) Distributed database control system
JPH10161914A (en) Automatic generating method for embedded sql
JPS63138426A (en) Program production system
JPH10214194A (en) Class definition fetching system
JP2004252536A (en) Program development support device