JPH02171832A - Data check system - Google Patents

Data check system

Info

Publication number
JPH02171832A
JPH02171832A JP63325778A JP32577888A JPH02171832A JP H02171832 A JPH02171832 A JP H02171832A JP 63325778 A JP63325778 A JP 63325778A JP 32577888 A JP32577888 A JP 32577888A JP H02171832 A JPH02171832 A JP H02171832A
Authority
JP
Japan
Prior art keywords
data
compiler
database
data check
check
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
JP63325778A
Other languages
Japanese (ja)
Inventor
Kiyotaka Kibo
木保 清隆
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63325778A priority Critical patent/JPH02171832A/en
Publication of JPH02171832A publication Critical patent/JPH02171832A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To execute the decision of a data check condition without delivering control to a data base control system by embedding an object to execute a data check in an object outputted by a compiler. CONSTITUTION:A compiler 2 inputs a user program 1 and executes phrase and syntactic analysis. When data operating languages 1a and 1b exist in the user program, operation object information are retrieved from data base definition information 3. According to the operation object information, the compiler 2 generates a data area for input/output and the object of a data base operating language. When the object is generated to add data and there is data check designation in the operation object, the object is embedded to directly check the data area for operation object input. Thus, without delivering the control to the data base control system, the decision of the data check condition can be executed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はデータベース管理システムにおけるデータチェ
ック方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data check method in a database management system.

〔従来の技術〕[Conventional technology]

従来該当データがデータベース中に格納されてよいかど
うかを判定するデータチェックを行うため、データベー
ス4’!l造を定義しているブイレフ1〜り内にデータ
チェック条件を入れ、データベース管理システムがその
データチェックを行っていた。
Conventionally, in order to perform a data check to determine whether the relevant data can be stored in the database, the database 4'! Data check conditions were entered in the bulletin board that defined the construction, and the database management system performed the data check.

なお本発明に関連するものとしては、特願昭62−16
4136号が挙げられる。
In addition, as related to the present invention, Japanese Patent Application No. 1983-16
No. 4136 is mentioned.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

1−記従来技術においてデータチェックを行うためには
、ユーザアプリケーションプログラムからデータベース
管理システムにデータベースに格納するデータを渡し、
データベース管理システl−は。
1- In order to check data in the conventional technology, data to be stored in the database is passed from the user application program to the database management system,
Database management system l-.

そのデータに関する横イ!1情報を定義情報デイ1ノク
トりから見つけ、データチェック対象となるデータ位置
、属性判定後、実際のデータチェックを行なう、従って
上記過程を実行しないとデータが格納されるか否かわか
らない。
Side information about that data! 1 information is found from the definition information day 1 nocturne, and after determining the data position and attribute to be checked, an actual data check is performed.Therefore, unless the above process is performed, it is not known whether the data will be stored or not.

本発明の目的は上記過程を無くシ、高速にデータチェッ
クを実行することにある。
An object of the present invention is to eliminate the above-mentioned process and perform data checking at high speed.

〔課題を解決するための手段〕[Means to solve the problem]

j−記問題点はデータ操作8語の記述された言語のコン
パイラとデータベース定義情報を+?、録するデータヲ
ゞイクシ3ナリ/デイレク1〜りを連動させ、コンパイ
ラの出力するオブジェク1〜中にデータチェックオブジ
ェ、り1−す埋め込むことにより)!成される。
The problem in item j- is the compiler and database definition information of the language in which the 8 data manipulation words are written. , by interlocking the data to be recorded, the 3rd party/directory, and embedding the data check object in the object output by the compiler)! will be accomplished.

〔作用〕[Effect]

データ操作言語の記述された1−ザブログラムをコンパ
イラによって翻訳する場合、コンパイラはデータベース
操作言語オブジェクトを生成するために、データベース
操作言語の操作対象情報をデータデイクシヨナリから検
索する。検索後、−オンバイラは、操作対象情報に従い
入出力用データ領域とデータベース操作d語オブジ℃ク
トを生成する。
When a compiler translates a program written in a data manipulation language, the compiler searches the data dictionary for information to be manipulated in the database manipulation language in order to generate a database manipulation language object. After the search, the onvirer generates an input/output data area and a database operation object according to the operation target information.

データの追加を行うデータベース操作3語のオブジェク
1−生成時、その操作対象にデータチェック指定のあっ
た場合、操作対象入力用データ領域の内容を直接データ
チェックするオブジェクトを埋め込む。
Database operation for adding data 3-word object 1 - When generating, if data check is specified for the operation target, an object that directly data checks the contents of the operation target input data area is embedded.

1・記作用によりデータチェックを行うオブジ“r。1. An object “r” that performs data check by writing.

り1−が、ニーザブ「1グラム内に埋め込まれる為。Because ri1- is embedded within one gram of Nizabu.

データベース管理システムに制御を渡すことなくデータ
チェック条件の判定が行える。
Data check conditions can be determined without passing control to the database management system.

[実施例] 以下、本発明の実施例を第1図、第2図により説明する
[Example] Hereinafter, an example of the present invention will be described with reference to FIGS. 1 and 2.

第1図は処理概暉であり第2図は:lンパイラ2におけ
る処理フローである。
FIG. 1 is a processing overview, and FIG. 2 is a processing flow in the compiler 2.

第1図においてlはユーザプロゲラ11.2は同ユーザ
プログラムをl1lIJくするコンパイラ、3はデータ
ベースの定義情報を(f、録したデータデイクシヨナリ
、4はコンパイラによって生成されたオブジェクトコー
ド(又はオブジェクト出力ファイル)である、la、l
bは更新、追加系データ操作言語の例で1aのS ”r
OREは、データの追加を示し1bのM、 OD F 
Yはデータの更新を示す、5゜f3は、アイEスオー(
I SO)、(、X3H2−84−48) (Draf
t Proposed)、ネットワーク データベース
 ランゲージ)(〜etvork DatabaseL
anguage、以下N D Lと略す)に基づいた定
義仕様例である。
In Figure 1, l is a compiler that converts the user program to User Progera 11.2, 3 is a data dictionary that records database definition information (f), and 4 is an object code generated by the compiler ( or object output file), la, l
b is an example of update and addition data manipulation language, and S ”r in 1a
ORE indicates data addition, M in 1b, OD F
Y indicates data update, 5°f3 indicates IE
ISO), (,X3H2-84-48) (Draf
Network Database Language) (~etvork DatabaseL)
This is an example of a definition specification based on the standard (hereinafter abbreviated as NDL).

ここでデータベースの論理4i[’lはレコードタイプ
(以下レコード)、レコードを枯成するフィールド群を
コンポーネントタイプ(以上コンボーネンl−)および
レコード間の関係を示すセラ1へタイプ(以下セラ1−
)によって定義される。また、それらによって定義され
るデータベースの論理構造を論理スキーマと呼ぶ、論理
スキーマの一部分を再定義したものをサブスキーマと呼
ぶ、サブスキーマは論Fljスキーマのし:1−′ド、
=1ンボーネント。
Here, the database logic 4i ['l is the record type (hereinafter referred to as record), the field group that makes up the record is transferred to the component type (hereinafter referred to as component l-), and the type (hereinafter referred to as Sera 1-
) is defined by Also, the logical structure of the database defined by these is called a logical schema, and a redefined part of the logical schema is called a subschema.
=1 component.

セットに対してレコードビュー、コンボーネン1〜ビュ
ー、セラ1〜ビ1−によって定義される。
Defined for the set by record view, component 1~view, sera1~bi1-.

論理スキーマの例を示したものが第1図の5である。1
cは論理スキーマの名称を定義したもので、1dはレコ
ードの名称を定義、1eはコンポーネントを定義してい
る。11”はレニ1−ドA(1d)の実データをデータ
ベースに格納する場合に:1ンボーネントCALが10
0以」−でなければデータベース中に格納、更新できな
いことを示したデータチェック指定である。
5 in FIG. 1 shows an example of a logical schema. 1
c defines the name of the logical schema, 1d defines the record name, and 1e defines the component. 11" is when storing the actual data of Leni 1-D A (1d) in the database: 1 component CAL is 10
This is a data check designation indicating that unless the value is 0 or more, it cannot be stored or updated in the database.

サブスキーマの例を同図6に示す、1.jはどの論理ス
キーマの部分を再定義したかとサブスキーマの名称定義
し、1にはレコードビュー、IQは=1ンボーネントビ
ューを定義している。
An example of the subschema is shown in FIG. 6.1. j defines which logical schema part was redefined and the name of the subschema, 1 defines record view, and IQ defines 1 component view.

次に第2図の処理フローを第1図の処理概要と対応させ
ながら説明する。
Next, the processing flow shown in FIG. 2 will be explained in correspondence with the processing outline shown in FIG. 1.

ユーザプログラム1を翻訳するためコンパイラを実行さ
せると、二」ンバイラ2はニーサブr1グラム1を入力
し、字句解析、摺文解析を行う(2a)。
When the compiler is executed to translate the user program 1, the compiler 2 inputs the nisabr1gram 1 and performs lexical analysis and spelling analysis (2a).

解析後データ操作8語(la、lb)がユーザプログラ
ム1中に存在した場合、その操作対象となるデータベー
ス定義情報をデータデイクシヨナリ3から検索し、デー
タ操作言語とデータベース定義情報との矛盾解析を行う
(2c)。
After analysis, if eight data manipulation words (la, lb) exist in the user program 1, the database definition information to be manipulated is searched from the data dictionary 3, and any discrepancies between the data manipulation language and the database definition information are searched. Perform analysis (2c).

次に2dの入出力領域の割当てを行う。これはデータ操
作言語がデータベースに対してデータの追加、更新、検
索実行時、データベース管理システムとニーザブ「1グ
ラム間の通信領域となる。追加更新時は、ユーザプログ
ラムからデータベース管理システノ、へのデータ出力領
域となり、検索時はデータベース管理システムからユー
ザプログラムへの出力領域となる。
Next, the input/output area of 2d is allocated. This is a communication area between the database management system and the database management system when the data manipulation language adds, updates, or searches data to the database.When adding/updating, data is transferred from the user program to the database management system. It becomes an output area, and during a search, it becomes an output area from the database management system to the user program.

入出力領域割当て2dが終了するとデータ操作n Mの
オブジェクトを生成する(2s)、これはデータ操作言
語の種別、使用するレコード、コンポーネント等の情報
を表形式に展開したのである。
When the input/output area allocation 2d is completed, an object for data manipulation nM is generated (2s), which is information such as the type of data manipulation language, records to be used, components, etc., developed in a table format.

オブジェクトプログラムでは、データ操作言語のオブジ
ェクトは、データベース管理システ11を呼出す命令と
入出力領域、上記データ操作言語の表形式をデータベー
ス管理システ11に渡すための命令列が生成さ九る。
In the object program, an object in the data manipulation language is a command to call the database management system 11, an input/output area, and a command sequence for passing the table format of the data manipulation language to the database management system 11.

更新追加系データ操作言語の場合、し1−ドにデータチ
ェック指定があるとデータチェックオブジェクトを生成
する(2r、2g)。例えば1aの5TORE  Aと
いう命令のデータ操作言語オブジェクトが作られた後、
レコードA(ld)には、1fのデータチェック指定が
あるため、そのデータチェック指定を実行する形式(I
 FC,1h)にコンパイラ1がオブジェク1−を生成
する。実行時には、1gのデータチェックの展開オブジ
ェクトが評価され、真であればデータ操作言語が実行さ
れる。偽であれば該当データはデータベースに格納不可
能としてエラーコードがユーザプログラム1に返される
(lh)。
In the case of an update/add data manipulation language, if a data check is specified in the first code, a data check object is generated (2r, 2g). For example, after creating a data manipulation language object for the instruction 5TORE A in 1a,
Since record A (ld) has a data check specification of 1f, the format for executing the data check specification (I
FC, 1h), compiler 1 generates object 1-. At runtime, the 1g data check expansion object is evaluated and if true, the data manipulation language is executed. If it is false, the corresponding data cannot be stored in the database and an error code is returned to the user program 1 (lh).

全てのデータ操作言語オブジェクトが生成さ九た段階で
ユーザプログラムの他の処理部分のオブジェク1−とデ
ータ操作言語のオブジェク1〜が併合され(12b、2
xs 2j) 、オブジェクト出力ファイルへオブジェ
クトを出力(2k)する。
At the stage when all data manipulation language objects have been generated, object 1- of other processing parts of the user program and data manipulation language objects 1~ are merged (12b, 2).
xs 2j), output the object (2k) to the object output file.

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

本発明によりデータチェック条件の判定が、データベー
ス管理システムに制御を渡すことなく行える。またデー
タチェック対象のコンポーネント属性やレコード上の位
置などの槽造情報を、コンパイル時以外に参照すること
なく、チエツク条件の判定が行えるので1条件評価にか
かる処理ステップは1/l0IS度にできる。
According to the present invention, data check conditions can be determined without passing control to a database management system. Furthermore, since the check conditions can be determined without referring to tank construction information such as component attributes to be data checked or positions on records other than during compilation, the processing steps required for one condition evaluation can be reduced to 1/10IS.

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

第1図は当発明の一実施例の処理概要を示すブ[1ツク
図、第2図は、当発明の実施例における前処理のコンパ
イラの処理フロー図である。 1・・・ユーザプロゲラ11,2・・・コンパイラ、3
・・・オブジェクトコード、4・・・データデイクシヨ
ナリ。
FIG. 1 is a block diagram showing a processing overview of an embodiment of the present invention, and FIG. 2 is a processing flow diagram of a preprocessing compiler in an embodiment of the present invention. 1... User programmer 11, 2... Compiler, 3
...Object code, 4...Data dictionary.

Claims (1)

【特許請求の範囲】 1、データベース操作言語を翻訳するコンパイラとデー
タベース定義情報を登録するデータデイクシヨナリ/デ
ィレクトリにおいて、レコードをデータベースに登録可
能か否かを判定するデータチェック情報をコンパイラの
出力するオブジェクトに埋込むことを特徴とするデータ
チェック方式。 2、コンパイルソースリスト上に格納更新レコードを操
作するデータ操作言語の前後に、データチェック用条件
評価式を展開することを特徴とするデータチェック方式
[Claims] 1. In a compiler that translates a database operation language and a data dictionary/directory that registers database definition information, the compiler outputs data check information that determines whether a record can be registered in the database. A data check method characterized by embedding it in the object to be used. 2. A data check method characterized by expanding a data check condition evaluation expression before and after a data manipulation language that operates storage update records on a compilation source list.
JP63325778A 1988-12-26 1988-12-26 Data check system Pending JPH02171832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63325778A JPH02171832A (en) 1988-12-26 1988-12-26 Data check system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63325778A JPH02171832A (en) 1988-12-26 1988-12-26 Data check system

Publications (1)

Publication Number Publication Date
JPH02171832A true JPH02171832A (en) 1990-07-03

Family

ID=18180510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63325778A Pending JPH02171832A (en) 1988-12-26 1988-12-26 Data check system

Country Status (1)

Country Link
JP (1) JPH02171832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04253271A (en) * 1991-01-29 1992-09-09 Nec Corp Table limiting method for relation data base system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04253271A (en) * 1991-01-29 1992-09-09 Nec Corp Table limiting method for relation data base system

Similar Documents

Publication Publication Date Title
JP3836928B2 (en) Database processing method
JP3437849B2 (en) Database management system and method for supporting object-oriented programming
US5930806A (en) Method and system for data migration from network database to relational database
JPH0630066B2 (en) Table type language translation method
US5394546A (en) Database management system and method of extending system functions
KR20010103603A (en) Impact analysis of a model
JPH10240752A (en) Registering method and retrieving method for structured document, and portable medium used therefor
JP2644728B2 (en) Data dictionary directory system
US5522079A (en) Compiler merging new and preexisting modules while preserving function order
US6446087B1 (en) System for maintaining the integrity of application data
JPH07200312A (en) Digital data processing system and error processing method
JPH02171832A (en) Data check system
JPH03182932A (en) Program generation system
JP2000207226A (en) Code optimizing device, language processor, and code optimization method
Yonke A knowledgeable, language-independent system for program construction and modification
JP3294966B2 (en) Machine translation equipment
JP3240647B2 (en) Computer language structured processing
CN117632997A (en) Command line interface crossing database platform and read-write operation method
JPH1040089A (en) Method for generating data transfer program
JPH07160492A (en) Check device for resource access program
JP2000112811A (en) Data base management method and system therefor
JPH06332687A (en) System for automatically correcting program and reflecting it
Huang The implementation of relational data base management systems on micro-computers
JPH10275167A (en) Cad library management system
JPH06175862A (en) Electronic computer