JPH0275067A - Ndb access system by read/write interface - Google Patents

Ndb access system by read/write interface

Info

Publication number
JPH0275067A
JPH0275067A JP63227895A JP22789588A JPH0275067A JP H0275067 A JPH0275067 A JP H0275067A JP 63227895 A JP63227895 A JP 63227895A JP 22789588 A JP22789588 A JP 22789588A JP H0275067 A JPH0275067 A JP H0275067A
Authority
JP
Japan
Prior art keywords
ndb
file
read
record
access
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.)
Pending
Application number
JP63227895A
Other languages
Japanese (ja)
Inventor
Satoshi Shiokawa
諭 塩川
Takeshi Kosuge
健 小菅
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63227895A priority Critical patent/JPH0275067A/en
Publication of JPH0275067A publication Critical patent/JPH0275067A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To enable even a person who has no technical knowledge of a data base operating language to easily have an access to a network data base by preparing a file data base correspondence definition which defines previously the information that has an access to the network data base in a file form. CONSTITUTION:The file data correspondence definition 3 is prepared to previously define the information having an access to a network data base 6 in a file form. Then an application program 1 produces a read/write instruction to the base 6 and therefore this instruction is converted into a data base operating instruction by reference to the definition 3. Thus a constitution is attained for reception of the corresponding data. As a result, even a person who has no technical knowledge of a data base operating language can easily have an access to the base 6 having a complicated structure via a program described in a COBOL language, etc. Then the desired data can be taken out or written.

Description

【発明の詳細な説明】 〔概要〕 リード/ライトインタフェースによってNDBをアクセ
スするNDBアクセス力式に関し、予めファイルDB対
応定義を作成しておき、リード/ライ1−命令の発行に
対応してこれを参照して該当するy−タベース操作言語
に変換・発行し7てアクセスし、NDBの知識のない人
でもNDBアクセスを可能にすることを目的とし、ND
Bをアクセスする情報をファイル形式にtめ定義したフ
ァイルDB対応定義と、応用ブ[」ダラムからのリード
/ライト命令の発行に対応して、このファイルDI3対
応定義の該当ファイルに予め定義されている情報に基づ
いて異なる言語であるNDBのデータベース探作命令に
変換してNDBに発行すると共に、リード命令の場合に
この発行に対応してNDBから返答された情報をレコー
1′に組み立てて応用プログラムに渡すNDB・ファイ
ルレコード変換機構とを備え、応用プログラムがリード
/ライト命令を用いて、異なる言語の記述でアクセスす
るようにされたNDBをリード/ライトし得るように構
成する。
[Detailed Description of the Invention] [Summary] Regarding the NDB access force formula for accessing the NDB using a read/write interface, a file DB correspondence definition is created in advance, and this is executed in response to the issuance of a read/write 1-instruction. The purpose of the NDB is to refer to it, convert it into the corresponding y-database operating language, publish it, and access it, making NDB access possible even for people without knowledge of NDB.
The information to access B is defined in the file format in the file DB correspondence definition, and in response to the issuance of read/write commands from the application block, this file is predefined in the corresponding file of this file DI3 correspondence definition. Based on the information, it is converted into an NDB database search command in a different language and issued to the NDB, and in the case of a read command, the information returned from the NDB in response to this issuance is assembled into record 1' and applied. The present invention includes an NDB/file record conversion mechanism to be passed to a program, and is configured so that an application program can read/write an NDB that is accessed using a description in a different language using a read/write command.

〔産業上の利用分野〕[Industrial application field]

本発明は、lリード/ライトインタフェースによってN
DBをアクセスするNDBアクセス方式に関するもので
ある。
The present invention provides N
This relates to an NDB access method for accessing a DB.

[従来の技術と発明が解決しようとする課題〕従来のC
OB OLプログラムによるN D B (Netwo
rk Data Ba5e)のアクセス処理は、第4図
[相]に示すように、データベース操作言語(DML:
Data Ba5e Manipulation La
nguage)によって記述され、DM+、をCOB 
OL言語の一部とし7てプログラムを作成するようにし
ていた。
[Problems to be solved by conventional technology and invention] Conventional C
OB OL program NDB (Netwo
rk Data Ba5e) access processing is performed using the database manipulation language (DML:
Data Ba5e Manipulation La
DM+, COB
Programs were created as part of the OL language.

しかし、NDBの構造が複雑であり、しかも[)MLが
cosob、;語と大きく異なるため、NDB中にある
データを少しだけ参照したい”という目的であっても、
NDBに関する専門の知識全必要とし、NDBに対する
処理が行える人が小人数に限られてしまい、プログラム
開発に支障をきたしてしまうという問題があった。
However, the structure of the NDB is complex, and the [)ML is very different from cosob, ;words, so even if you only want to refer to a small amount of data in the NDB,
There is a problem in that it requires all specialized knowledge regarding NDB, and the number of people who can process NDB is limited to a small number of people, which hinders program development.

本発明は、予めファイルDB対応定義を作成しておき、
リード/ライト命令の発行に対応してこれを参照して該
当するデータベース操作言語に変換・発行してアクセス
し、NDBの知識のない人でもNDBアクセスを可能に
することを目的としている。
In the present invention, a file DB correspondence definition is created in advance,
In response to the issuance of a read/write command, the command is referred to, converted into the corresponding database operation language, issued, and accessed, and the purpose is to enable even people without knowledge of NDB to access NDB.

C課題を解決する手段〕 第1図は本発明の原理構成図を示す。Means to solve problem C] FIG. 1 shows a basic configuration diagram of the present invention.

第1図(イ)において、NDB・ファイルレコード変換
機構2は、応用プログラムlからのリード/ライト命令
の発行に対応して、ファイルDB対応定義3の該当ファ
イルに予め定義されている情報に基づいて、異なる言語
であるNDBのデータベース操作命令に変換してNDB
6に発行すると共に、リード命令の場合にこの発行に対
応してNDB 6から返答された情報をレコードに組み
立てて応用プログラム1に渡すものである。
In FIG. 1(a), in response to the issuance of a read/write command from the application program l, the NDB/file record conversion mechanism 2 performs a Then, convert it into NDB database operation instructions, which are in a different language, and write them into NDB.
6, and in the case of a read command, the information returned from the NDB 6 in response to this issuance is assembled into a record and passed to the application program 1.

ファイルDB対応定義3は、NDB6をアクセスする情
報をファイル形式に予め定義したものである(第1図(
ロ)ファイル構成参照)。
File DB correspondence definition 3 is a file format in which information for accessing NDB 6 is defined in advance (see Figure 1 (
b) See file structure).

NDB (ネットワークデータベース)6は、データを
保存するデータベースである。
NDB (network database) 6 is a database that stores data.

〔作用〕[Effect]

本発明は、第1図に示すように、応用プログラム1から
のり−ド/ライト命令の発行に対応して、NDB・ファ
イルレコード変換機構2がファイルDB対応定義3の該
当ファイルに予め定義されている情報に基づいて、デー
タベース操作命令に変換して発行すると共に、リード命
令の場合にこの命令の発行に対応してNDB6から返答
された情報をレコードに組み立てて応用プログラム1に
渡すようにしている。
As shown in FIG. 1, in response to the issuance of a read/write command from an application program 1, an NDB/file record conversion mechanism 2 is defined in advance in a corresponding file of a file DB correspondence definition 3. Based on the information, it is converted into a database operation command and issued, and in the case of a read command, the information returned from the NDB 6 in response to the issuance of this command is assembled into a record and passed to the application program 1. .

従って、NDB6をアクセスする情報をファイル形式で
予め定義したファイルDB対応定義3を作成しておくこ
とにより、応用プログラム1がリード/ライト命令を発
行して、NDB6から該当するデータを受は取る、ある
いはデータをNDB6に書き込むことが可能となる。こ
れにより、データベース操作言語の専門知識のない人で
も、C0BOL言語などで記述したプログラムから複雑
な構造のNDBに対して容易にアクセスすることができ
る。
Therefore, by creating a file DB correspondence definition 3 that predefines information for accessing the NDB 6 in a file format, the application program 1 can issue read/write commands to receive and receive the corresponding data from the NDB 6. Alternatively, data can be written to NDB6. As a result, even people without specialized knowledge of database manipulation languages can easily access an NDB with a complex structure from a program written in the C0BOL language or the like.

〔実施例〕〔Example〕

次に、第1図から第3図を用いて本発明の1実施例の構
成および動作を1)1!を次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained using FIGS. 1 to 3. 1) 1! will be explained in detail next.

第1図(イ)において、ファイルDB対応定義3は、N
DB 6のレコードタイプ、セラI・タイプを元にした
論理構造からリード/ライトしようとする情報をファイ
ル形式で定義したものである。
In FIG. 1 (a), file DB correspondence definition 3 is N
Information to be read/written from a logical structure based on the DB 6 record type and Sera I type is defined in a file format.

A I M (Advanced Info+mati
on Ma’nager) / N r)B4は、オン
ラインでNDB 6をアクセスするためのものである。
A I M (Advanced Info+mati
on Ma'nager) / Nr) B4 is for accessing NDB 6 online.

5は、A+M/NDB4におけるDD/D、スキーマを
定義したものである。
5 defines the DD/D and schema in A+M/NDB4.

第1図(ロ)は、ファイルDB対応定義例を示す。ここ
で、レコードタイプは、NDB 6を構成しているレコ
ード群の型であって、例えばレコードタイプAが階層関
係によって関係づけられているオーナレコードというレ
コードタイプを表し、レコードタイプI3が階層関係に
よって関係づけられているメンバレコードというレコー
ドタイプを表す。セットタイプは、オーナレコードと、
メンバレコードとの関係を表す、尚、セットは、1つの
オーナレコードと、これと関係のある任意の数のメンバ
レコードの集合を表す。ここで左側に記述した例は、フ
ァイルのルコードが、1つのオーナレコードへと、これ
に結合しているメンバレコードBとに対応している。ま
た、この例では、右下に示すファイル構成(ファイルD
 B対応定義3に対応するもの)から判明するように、
レコードタイプAからAtというデータ項目だけを選択
してファイルへマツピング(定義)している。このよう
に、必要以外のデータ項目を意識しまたくない場合(応
用プログラム1がリード/ライト命令の発行によって受
は取る必要のないデータ環F1の場合)、必要のないデ
ータ環]]を省略してファイルヘマッピングする。これ
により、レコードのうちの必要なデータ項目のみを受は
取ることが可能となる。
FIG. 1(b) shows an example of file DB correspondence definition. Here, the record type is the type of the record group that constitutes the NDB 6, and for example, record type A represents a record type called an owner record that is related by a hierarchical relationship, and record type I3 represents a record type that is related by a hierarchical relationship. Represents a record type called a related member record. The set type is owner record and
A set, which represents a relationship with member records, represents a collection of one owner record and an arbitrary number of member records that are related to this owner record. In the example described on the left here, the file code corresponds to one owner record and member record B connected to it. In addition, in this example, the file structure shown in the lower right (file D
As can be seen from (corresponding to B correspondence definition 3),
Only the data items At from record type A are selected and mapped (defined) to the file. In this way, if you are not conscious of data items other than necessary (if application program 1 is data ring F1 that does not need to be received by issuing a read/write command), you can omit the unnecessary data ring]. and map it to the file. This makes it possible to receive only the necessary data items from the record.

例えば第2図において、レコードタイプAのオーナレコ
ードのデータ項目“課コード”のみをファイル構成にマ
ツピングし、レコードタイプ■3のメンバレコードの全
てのデータ項目をファイル構成にマツピングすることに
より、図示ファイル構成の点線欄中に記載したように、
対応するデータがNDB6から検索されて取り出され、
レコードに組み立てられてリード命令の発行元の応用ブ
t’jグラムlに渡される。
For example, in Figure 2, by mapping only the data item "section code" of the owner record of record type A to the file structure, and mapping all the data items of the member records of record type ■3 to the file structure, As stated in the dotted line column of the configuration,
The corresponding data is searched and retrieved from NDB6,
The information is assembled into a record and passed to the application program that issued the read command.

次に、第2図および第3図を参照して本発明の1実施例
の構成の動作を説明する。
Next, the operation of the configuration of one embodiment of the present invention will be described with reference to FIGS. 2 and 3.

+1)  第3図応用プログラム1がNDB6に対して
リード/ライト命令を発行すると、NDB・ファイルレ
コード変換機構2が呼び出され、ファイルDB対応定義
3より情報を得て、リード/ライト命令を該当NDBの
データベース操作命令(DM Lインタフェース)に変
換する。これは、例えば応用プログラム1がC0BOL
言語で記述したREAD命令をNDB 6に発行したこ
とに対応して、図示外の予め定義したファイルDB対応
定義3に基づいて第3図NDB・ファイルレコード変換
機構2中に記載したようなNDBデータベース操作命令
に変換する。更に具体的に言えば、第2図ファイル構成
中の実線で囲んだように(ファイルDB対応定義3に対
応するもの)、レコードタイプAのオーナレコードのデ
ータ項目のうちの“諜コード”のみと、レコードタイプ
Bのメンバレコードの全てのデータ項目について、ND
B6から検索して取り出すためのデータベース操作命令
に変換する。
+1) Figure 3: When the application program 1 issues a read/write command to the NDB 6, the NDB/file record conversion mechanism 2 is called, obtains information from the file DB correspondence definition 3, and converts the read/write command to the corresponding NDB. database operation instructions (DML interface). This means, for example, that application program 1 is C0BOL
In response to issuing a READ command written in a language to the NDB 6, an NDB database as described in the NDB/file record conversion mechanism 2 in FIG. 3 is created based on a predefined file DB correspondence definition 3 not shown. Convert to operation instructions. More specifically, as shown by the solid line in the file structure in Figure 2 (corresponding to file DB correspondence definition 3), only the "intelligence code" of the data items of the record type A owner record. , for all data items of member records of record type B, ND
It is converted into a database operation command for searching and retrieving from B6.

(2)変換したデータベース操作命令をN I) [3
fiに発行する。このデータベース操作命令の発行に対
応して、AIM/NDB4がNDB6を検索して該当す
るデータ項目を読み出してN D 13・ファイルレコ
ード変換1構2に通知(リード命令発行時)、あるいは
該当データ項目にデータを書き込む(ライト命令発行時
)。
(2) Convert the converted database operation instructions to N I) [3
Issue to fi. In response to the issuance of this database operation command, the AIM/NDB4 searches the NDB6, reads the corresponding data item, and notifies the N D 13/File Record Conversion 1 Structure 2 (when the read command is issued), or the corresponding data item. Write data to (when issuing a write command).

+3)NDB6から得た情報を“ファイルDB対応定義
3°に基づき、レコードに組み立てる。
+3) Assemble the information obtained from NDB6 into a record based on the file DB correspondence definition 3°.

(4)  応用プログラム1に渡し、復帰する。(4) Pass to application program 1 and return.

以上の手順によって、例えば応用プログラム1がリード
命令をNDB 6に発行したことに対応して、第2図右
下のファイル構成の点線を用いて示すデータがレコード
に組み立てられて応用プログラム1に渡される。
Through the above procedure, for example, in response to the application program 1 issuing a read command to the NDB 6, the data shown using the dotted line in the file structure at the bottom right of Figure 2 is assembled into a record and passed to the application program 1. It will be done.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、NDB6をアク
セスする情報をファイル形式で予め定義したファイルD
 B対応定義3を作成しておき、応用プログラム1がリ
ード/ライト命令をNDB6に発行したことに対応して
、このファイルDB対応定義3を参照して該当データー
、−入操作命令に変換してNDB6に発行し、該当デー
タを受は取るなどの構成を採用しているため、データベ
ース操作言語の専門知識のない人でも、C0BOL言語
などで記述したプログラムから複雑な構造のNDB6を
容易にアクセスして、所望のデータを取り出したり、あ
るいは所望のデータを書き込んだりすることができる。
As explained above, according to the present invention, the file D in which information for accessing the NDB 6 is defined in advance in a file format.
Create B correspondence definition 3, and in response to application program 1 issuing a read/write command to NDB 6, refer to this file DB correspondence definition 3 and convert the corresponding data into an input operation command. Because it uses a configuration that publishes to NDB6 and receives and receives the corresponding data, even people without specialized knowledge of database operation languages can easily access the complex structure of NDB6 from programs written in C0BOL languages etc. The desired data can be retrieved or written.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理構成図、第2図は本発明の動作説
明図、第3図はデータベース操作言語への変換・発行例
、第4図は従来技術の説明図を示す。 図中、1は応用プログラム、2はNDB・ファイルレコ
ード変換機構、3はファイルDB対応定義、4はAIM
/NDB、6はNDB (ネットワークデータヘース)
を表す。
FIG. 1 is a diagram showing the principle configuration of the present invention, FIG. 2 is an explanatory diagram of the operation of the present invention, FIG. 3 is an example of conversion and publication into a database operation language, and FIG. 4 is an explanatory diagram of the prior art. In the figure, 1 is an application program, 2 is an NDB/file record conversion mechanism, 3 is a file DB correspondence definition, and 4 is an AIM.
/NDB, 6 is NDB (network data base)
represents.

Claims (1)

【特許請求の範囲】 リード/ライトインタフェースによってネットワークデ
ータベース(以下NDBという)をアクセスするNDB
アクセス方式において、 NDB(6)をアクセスする情報をファイル形式に予め
定義したファイルDB対応定義(3)と、応用プログラ
ム(1)からのリード/ライト命令の発行に対応して、
このファイルDB対応定義(3)の該当ファイルに予め
定義されている情報に基づいて異なる言語であるNDB
のデータベース操作命令に変換してNDB(6)に発行
すると共に、リード命令の場合にこの発行に対応してN
DB(6)から返答された情報をレコードに組み立てて
応用プログラム(1)に渡すNDB・ファイルレコード
変換機構(2)とを備え、 応用プログラム(1)がリード/ライト命令を用いて、
異なる言語の記述でアクセスするようにされたNDB(
6)をリード/ライトし得るように構成したことを特徴
とするリード/ライトインタフェースによるNDBアク
セス方式。
[Claims] NDB that accesses a network database (hereinafter referred to as NDB) through a read/write interface.
In the access method, in response to the file DB correspondence definition (3), which predefines the information to access the NDB (6) in the file format, and the issuance of read/write commands from the application program (1),
NDB which is a different language based on the information predefined in the corresponding file of this file DB correspondence definition (3)
It is converted into a database operation command and issued to NDB (6), and in the case of a read command, NDB is issued in response to this issuance.
It is equipped with an NDB/file record conversion mechanism (2) that assembles the information returned from the DB (6) into a record and passes it to the application program (1), and the application program (1) uses read/write instructions to
NDB that can be accessed with descriptions in different languages (
6) An NDB access method using a read/write interface, characterized in that it is configured to read/write.
JP63227895A 1988-09-12 1988-09-12 Ndb access system by read/write interface Pending JPH0275067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63227895A JPH0275067A (en) 1988-09-12 1988-09-12 Ndb access system by read/write interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63227895A JPH0275067A (en) 1988-09-12 1988-09-12 Ndb access system by read/write interface

Publications (1)

Publication Number Publication Date
JPH0275067A true JPH0275067A (en) 1990-03-14

Family

ID=16867996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63227895A Pending JPH0275067A (en) 1988-09-12 1988-09-12 Ndb access system by read/write interface

Country Status (1)

Country Link
JP (1) JPH0275067A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8291602B2 (en) 2001-07-26 2012-10-23 Irwin Industrial Tool Company Composite utility knife blade, and method of making such a blade

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS593554A (en) * 1982-06-30 1984-01-10 Fujitsu Ltd Data base access controlling system
JPS59180763A (en) * 1983-03-31 1984-10-13 Fujitsu Ltd System for accessing data base system
JPS6289133A (en) * 1985-10-15 1987-04-23 Nec Corp Program development supporting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS593554A (en) * 1982-06-30 1984-01-10 Fujitsu Ltd Data base access controlling system
JPS59180763A (en) * 1983-03-31 1984-10-13 Fujitsu Ltd System for accessing data base system
JPS6289133A (en) * 1985-10-15 1987-04-23 Nec Corp Program development supporting system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8291602B2 (en) 2001-07-26 2012-10-23 Irwin Industrial Tool Company Composite utility knife blade, and method of making such a blade

Similar Documents

Publication Publication Date Title
US6748569B1 (en) XML server pages language
US7191397B2 (en) XML server pages language
US6148296A (en) Automatic generation of database queries
CN100468396C (en) Mapping architecture for arbitrary data models
US6233578B1 (en) Method and system for information retrieval
US5734887A (en) Method and apparatus for logical data access to a physical relational database
US5857187A (en) Information management apparatus providing efficient management of multimedia titles in a client-server network
US6795825B2 (en) Database querying system and method
JP4227033B2 (en) Database integrated reference device, database integrated reference method, and database integrated reference program
CN109446279A (en) Based on neo4j big data genetic connection management method, system, equipment and storage medium
US5535325A (en) Method and apparatus for automatically generating database definitions of indirect facts from entity-relationship diagrams
JPH04102171A (en) Device and method for processing information
JPH10240771A (en) Image retrieval method based upon meaning and recognition and device therefor
JPH058454B2 (en)
JPS60218142A (en) Dynamic format conversion system of data
JPH10187742A (en) Data base dissimilarity canceling retrieval device
JPH07117962B2 (en) Relational access method for network database
JP5056384B2 (en) Search program, method and apparatus
JPH0275067A (en) Ndb access system by read/write interface
JPH10143539A (en) Information retrieving method, its system, recording medium recording information resource dictionary data and recording medium recording information retrieving program
Kao et al. Electrophoretic study of the horse serum of equine infectious anemia.
Di Ruscio et al. A data-modelling approach to web application synthesis
JP2002063165A (en) Method and system and program for information retrieval, and recording medium having the same program recorded thereon
JP2002108886A (en) Database management system
JPH01211029A (en) Processing system for data base operating language