JP2000322295A - Method and device for programming support for data base stored sub-program - Google Patents

Method and device for programming support for data base stored sub-program

Info

Publication number
JP2000322295A
JP2000322295A JP11131984A JP13198499A JP2000322295A JP 2000322295 A JP2000322295 A JP 2000322295A JP 11131984 A JP11131984 A JP 11131984A JP 13198499 A JP13198499 A JP 13198499A JP 2000322295 A JP2000322295 A JP 2000322295A
Authority
JP
Japan
Prior art keywords
stored
subprogram
database
declaration
stored subprogram
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
JP11131984A
Other languages
Japanese (ja)
Inventor
Michiharu Inami
通晴 伊波
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP11131984A priority Critical patent/JP2000322295A/en
Publication of JP2000322295A publication Critical patent/JP2000322295A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To support description of operation scripts of data base objects conforming to syntax rules of a stored sub-program. SOLUTION: A data base object browser 3, which has classifications of data base objects such as a table, a view, a column, and stored procedures as attributes for individual objects and displays a list of names of individual objects, and a stored sub-program editor 2 which displays the source code of a stored sub-program in a flow chart and classifies it to syntax classifications such as argument definition, variable definition, a control statement, and a processing statement and has them as attributes are prepared, and icons of data base objects are dragged and dropped from the data base object browser to the stored sub-program editor to display a source code description support picture according to the condition of variable declaration, cursor declaration, an SQL statement, or the like.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データベースシス
テムに記憶されるデータベースストアドサブプログラム
用プログラミング支援方法ならびに装置に関し、特に、
データベースオブジェクトに対する処理コードの記述支
援に用いて好適なストアドサブプログラムの編集方法な
らびに装置に関する。
The present invention relates to a programming support method and apparatus for a database stored subprogram stored in a database system.
The present invention relates to a method and an apparatus for editing a stored subprogram suitable for supporting the description of a processing code for a database object.

【0002】[0002]

【従来の技術】従来、この種データベースにおけるスト
アドサブプログラムの編集システムとして図6に示すも
のが知られている。同図において、コンピュータ500
からアクセス可能なハードディスク510には、DBM
S520(データベース管理システム)が記録されてお
り、コンピュータ500は、このDBMS520を実行
することによってデータファイル531中のレコードに
対して更新、削除や検索等の各種のレコード操作を行
う。
2. Description of the Related Art Conventionally, a system shown in FIG. 6 is known as a system for editing a stored subprogram in a database of this type. Referring to FIG.
The hard disk 510 accessible from
S520 (database management system) is recorded, and the computer 500 performs various record operations such as updating, deleting, and searching on the records in the data file 531 by executing the DBMS 520.

【0003】より具体的には、利用者がデータベース会
話プログラム210を介してSQL(Structured Query
Language)文等により処理要求を入力すると、DBM
S520は対応するレコード操作を実行する。また、D
BMS520の外部のプログラム等からデータファイル
531中のレコードに対して上述したようなレコード操
作を行うことも可能であり、さらに、そのレコード操作
をスクリプト形式のストアドサブプログラム532とし
て、予めDBMS管理領域530中に作成し、登録して
おくこともできる。このことにより、外部のプログラム
等からDBMS520に予め登録されたストアドサブプ
ログラムが呼び出された場合に、DBMS520は、当
該ストアドサブプログラムの処理コードを実行する。
[0003] More specifically, a user enters an SQL (Structured Query) program through a database conversation program 210.
Language) When a processing request is input by a statement, etc., the DBM
S520 executes the corresponding record operation. Also, D
It is also possible to perform the above-described record operation on the record in the data file 531 from a program or the like external to the BMS 520, and further, the record operation is stored in the DBMS management area 530 in advance as a stored subprogram 532 in a script format. It can be created and registered inside. Thus, when a stored subprogram registered in the DBMS 520 is called from an external program or the like, the DBMS 520 executes the processing code of the stored subprogram.

【0004】ストアドサブプログラム532のDBMS
管理領域530中への登録は、データベース会話プログ
ラム210を介してDBMS520へ、コマンド(CR
EATEプロシージャ文)の実行を要求することで行わ
れる。このデータベース会話プログラムは、いわゆるコ
マンドインタープリタ型であり、所定の入力プロンプト
において対応するコマンドとストアドサブプログラムの
ソースプログラムを入力してもよいし、予めテキストエ
ディタ等を利用してコマンドとストアドサブプログラム
のソースプログラムを記述したテキストファイルを作成
し、その後にこのテキストファイルを読み込んで登録す
ることも可能である。
The DBMS of the stored subprogram 532
Registration in the management area 530 is performed by sending a command (CR) to the DBMS 520 via the database conversation program 210.
EATE procedure statement). This database conversation program is a so-called command interpreter type, and the corresponding command and the source program of the stored subprogram may be input at a predetermined input prompt, or the command and the stored subprogram may be input in advance using a text editor or the like. It is also possible to create a text file describing the source program and then read and register this text file.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上述した
従来のストアドサブプログラムの編集方法においては、
ストアドサブプログラムのソースコードの記述を行うに
あたり、データベースオブジェクトを操作するためのソ
ースコードの記述は、例えば、テーブルおよびテーブル
カラムの名称やデータ型といった、データベースオブジ
ェクト属性に関する記述を誤りなくキー入力することが
要求される。従って、記述ミス、あるいはタイプミス等
があり、編集作業効率が悪く、作業が煩わしいものであ
った。本発明は、上記事情に鑑みてなされたものであ
り、データベースオブジェクトに関する引数宣言、カー
ソル宣言、変数宣言、およびデータベース処理コードの
編集を行うにあたり、データベース中のオブジェクトに
関する情報をデータベースオブジェクトブラウザを介し
DBMSから取得して表示し、その表示内容を利用して
実際の編集作業を行うことにより、編集作業効率を向上
させ、また、DBMに登録されているプログラムソース
を解析してプログラムソース全体を流れ図として扱うこ
とにより編集のための操作性の向上をはかったデータベ
ースストアドサブプログラム用プログラミング支援方法
ならびに装置を提供することを目的とする。
However, in the conventional method of editing a stored subprogram described above,
In describing the source code of the stored subprogram, the description of the source code for operating the database object must be entered correctly without errors regarding the description of database object attributes such as the names and data types of tables and table columns. Is required. Therefore, there is a description error or a typing error, and the editing work efficiency is low, and the work is troublesome. SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances. In editing parameter declarations, cursor declarations, variable declarations, and database processing codes for database objects, information on objects in a database is transmitted to a DBMS via a database object browser. And display it, and perform the actual editing work by using the display contents, thereby improving the editing work efficiency. In addition, the program source registered in the DBM is analyzed and the entire program source is displayed as a flowchart. It is an object of the present invention to provide a programming support method and apparatus for a database stored subprogram which improves operability for editing by handling.

【0006】[0006]

【課題を解決するための手段】上述した課題を解決する
ために請求項1に記載のデータベースストアドサブプロ
グラム用プログラミング支援方法は、所定のプログラム
記述言語を用いてあるデータベース中のレコードを操作
するデータベース管理システム(DBMS)のストアド
サブプログラムを編集するデータベースストアドサブプ
ログラム用プログラミング支援システムにおいて、前記
ストアドサブプログラムの構文種別に応じて前記データ
ベースオブジェクトを参照する際、データベースオブジ
ェクトブラウザを介し、前記DBMSからデータベース
中のデータベースオブジェクトについての情報を取得し
て表示し、その表示内容を参照してストアドサブプログ
ラムの編集操作を促すことを特徴とする。請求項2に記
載のデータベースストアドサブプログラム用プログラミ
ング支援方法は、請求項1に記載の同方法において、前
記DBMSに登録されているストアドサブプログラムソ
ースを取り出し、取り出されたストアドプログラムソー
スを解析して引数宣言部、処理ブロック単位に論理的に
分割し、当該処理ブロックを更に変数宣言部と処理本体
部の単位に論理的に分割することにより、ストアドプロ
グラムソースの少なくとも一部を階層構造の流れ図とし
て扱い編集操作を促すことを特徴とする。
According to a first aspect of the present invention, there is provided a programming support method for a database stored subprogram, which operates a record in a certain database using a predetermined program description language. In a programming support system for a database stored subprogram for editing a stored subprogram of a management system (DBMS), when referring to the database object according to the syntax type of the stored subprogram, the database is transmitted from the DBMS via a database object browser. It is characterized by acquiring and displaying information about a database object inside, and prompting an editing operation of a stored subprogram by referring to the displayed contents. According to a second aspect of the present invention, there is provided the programming support method for a database stored subprogram, wherein the stored subprogram source registered in the DBMS is extracted and the extracted stored program source is analyzed. By logically dividing an argument declaration section and a processing block unit, and further logically dividing the processing block into a variable declaration section and a processing body unit, at least a part of the stored program source is formed as a flow chart of a hierarchical structure. It is characterized by prompting a handling editing operation.

【0007】請求項3に記載のデータベースストアドサ
ブプログラム用プログラミング支援方法は、ストアドサ
ブプログラムの構文規則に合致したデータベースオブジ
ェクトにおけるプログラミングの記述を支援するストア
ドサブプログラム用プログラミング支援システムにおい
て、ストアドサブプログラムソースを、引数宣言部、処
理ブロックの単位に論理的に分割し、さらに処理ブロッ
クを変数宣言部と処理記述部の単位に論理的に分割し、
前記プログラムソースの少なくとも一部を階層構造の流
れ図として扱うストアドサブプログラム編集装置に、デ
ータベースに格納されている各データベースオブジェク
トの名称と属性に関する情報を保持し、当該情報をリス
ト表示するデータベースオブジェクトブラウザを介して
任意のデータベースオブジェクトを選択して、ドラッグ
・アンド・ドロップすることにより、ドロップされたデ
ータベースオブジェクトの属性と流れ図上の位置の組み
合わせにより、その状況に応じた適切なソースコード記
述支援画面を表示して編集入力を促すことを特徴とす
る。
According to a third aspect of the present invention, there is provided a method for supporting programming of a database stored subprogram, the method comprising the steps of: Is logically divided into an argument declaration unit and a processing block unit, and further, the processing block is logically divided into a variable declaration unit and a processing description unit,
In a stored subprogram editing device that treats at least a part of the program source as a flow chart of a hierarchical structure, a database object browser that holds information on names and attributes of respective database objects stored in a database and displays the information in a list. Select an arbitrary database object via, drag and drop, and display the appropriate source code description support screen according to the situation by combining the attribute of the dropped database object and the position on the flow chart And prompting for edit input.

【0008】請求項4に記載のデータベースストアドサ
ブプログラム用プログラミング支援装置は、ストアドサ
ブプログラムの構文規則に合致したデータベースオブジ
ェクトにおけるプログラミングの記述を支援するストア
ドサブプログラム用プログラミング支援システムであっ
て、前記データベースオブジェクトの種別を各オブジェ
クト毎属性として持ち、各オブジェクトの名称をリスト
表示するデータベースオブジェクトブラウザと、前記ス
トアドサブプログラムソースを流れ図で表示し、このス
トアドサブプログラムを構文種別に分類してそれぞれを
属性として持ち、前記データベースオブジェクトブラウ
ザから任意のデータベースオブジェクトの属性アイコン
を、任意の構文種別の属性アイコンへドラグ・アンド・
ドロップすることにより、その状況に応じたソースコー
ド記述支援画面を表示して編集入力を促すストアドサブ
プログラム編集装置とを有することを特徴とする。請求
項5に記載のデータベースストアドサブプログラム用プ
ログラミング支援装置は、請求項4に記載の同装置にお
いて、前記ストアドサブプログラム編集装置は、当該ス
トアドサブプログラムのソースコードを引数宣言部、処
理ブロックの単位に論理的に分割し、更に当該処理ブロ
ックを変数宣言部と処理本体部の単位に論理的に分割
し、流れ図で表示する流れ図表示手段と、流れ図表示さ
れたストアドサブプログラム構造を解析し、所定の記述
言語構文規則に合致したストアドサブプログラムソース
コードを組み立てるコード変換手段と、当該ストアドサ
ブプログラムソースコードをデータベースオブジェクト
としてシステムが管理するDBMSへ登録要求するDB
MS登録要求手段と、当該DBMS登録されたストアド
サブプログラムを前記DBMSへ要求して取り出し、取
り出されたストアドサブプログラムを解析して引数宣言
部、処理ブロック単位の変数宣言部と処理本体部に論理
的に分割し、流れ図により前記流れ図表示手段を介して
流れ図表示するストアドサブプログラム解析手段と、前
記流れ図の引数宣言部あるいは変数宣言部、処理本体部
にそれぞれ変数宣言、カーソル宣言、SQL文項目のソ
ースコード記述を補助するストアドプログラム記述支援
手段を含むことを特徴とする。また、請求項6に記載の
データベースストアドサブプログラム用プログラミング
支援装置は、請求項5に記載の同装置において、前記ス
トアドプログラム記述支援手段は、前記流れ図の引数宣
言部あるいは変数宣言部にカラムオブジェクトと同等の
データ型の引数宣言項目、あるいは変数宣言項目の追加
を補助するカラム型宣言補助手段と、前記流れ図の変数
宣言部にカーソル宣言項目の追加を補助するカーソル宣
言補助手段と、前記流れ図の処理本体部にSQL文項目
の追加を補助するレコード操作補助手段と、前記流れ図
の処理本体部にストアドサブプログラムの呼び出し項目
の追加を補助する呼び出し記述補助手段を含むことを特
徴とする。
According to a fourth aspect of the present invention, there is provided a programming support system for a stored subprogram for supporting a description of programming in a database object conforming to a syntax rule of a stored subprogram, wherein A database object browser that has an object type as an attribute for each object and displays the name of each object in a list, and displays the stored subprogram source in a flowchart, classifies the stored subprogram into syntax types, and assigns each as an attribute. The attribute icon of an arbitrary database object from the database object browser to an attribute icon of an arbitrary syntax type.
A storage subprogram editing device for displaying a source code description support screen corresponding to the situation and prompting an edit input by dropping. The programming support device for a database stored subprogram according to claim 5 is the device according to claim 4, wherein the stored subprogram editing device converts a source code of the stored subprogram into an argument declaration unit and a processing block unit. Logically divides the processing block into units of a variable declaration section and a processing body section, and analyzes a flow chart display means for displaying a flow chart, and a stored subprogram structure displayed as a flow chart, and Conversion means for assembling a stored subprogram source code that conforms to the description language syntax rules, and a DB for requesting the stored subprogram source code to be registered in a DBMS managed by the system as a database object
MS registration request means, requesting and extracting the stored subprogram registered in the DBMS from the DBMS, analyzing the extracted stored subprogram, and analyzing the stored subprogram in the argument declaration unit, the variable declaration unit in a processing block unit, and the processing main unit. Stored subprogram analysis means for dividing the program into a flow chart and displaying the flow chart through the flow chart display means using the flow chart, and a variable declaration, a cursor declaration, and an SQL statement item in the argument declaration section or the variable declaration section and the processing body section of the flow chart, respectively. It is characterized by including stored program description support means for assisting source code description. Further, the programming support device for database stored subprogram according to claim 6 is the device according to claim 5, wherein the stored program description support means includes a column object in an argument declaration section or a variable declaration section of the flowchart. Column type declaration auxiliary means for assisting the addition of argument declaration items or variable declaration items of the same data type, cursor declaration auxiliary means for assisting the addition of cursor declaration items in the variable declaration section of the flowchart, and processing of the flowchart A record operation assisting means for assisting the addition of an SQL statement item in the main body, and a call description assisting means for assisting the addition of a call item of the stored subprogram in the processing body of the flowchart are provided.

【0009】上述した構成において、本発明は、所定の
ストアドサブプログラム記述言語を用いて、所定のデー
タベース中のレコードを操作する、データベースシステ
ムのストアドサブプログラムを編集するための手段を用
意している。ここで、レコード操作とはレコードの登録
や修正等の更新系のレコード操作のみならず、検索等の
参照系のレコード操作も含むものとする。もちろん、所
望のレコードを検索した後に該当するレコードを更新す
るなどの複合的なレコード操作を実行させるようにして
もよい。ストアドサブプログラム中の引数宣言、変数宣
言、処理コードを記述する場合、データベース中のテー
ブルやテーブルカラムなどのデータベースオブジェクト
を参照することがある。そこで、このような場合の好適
な一例として、データベースオブジェクトブラウザに、
上記データベース管理システムからデータベース中のデ
ータベースオブジェクトについての情報を取得して表示
する構成としてある。すなわち、ストアドサブプログラ
ムを編集するにあたり、データベース中のオブジェクト
に関する情報をデータベース管理システム(DBMS)
から取得して表示するので、その表示内容を利用して実
際の編集作業を行う。このデータベース中のオブジェク
トとは、例えば、テーブルオブジェクトであってもよい
し、テーブルカラムオブジェクトや、ビューオブジェク
トであってもよく、特に限定されることはない。このこ
とにより、編集作業効率が向上でき、また、DBMに登
録されているプログラムソースを解析してプログラムソ
ース全体を流れ図として扱うことにより編集のための操
作性向上がはかれる。
In the above-described configuration, the present invention provides means for editing a stored subprogram of a database system by operating a record in a predetermined database using a predetermined stored subprogram description language. . Here, the record operation includes not only an update-type record operation such as registration and correction of a record, but also a reference-type record operation such as a search. Of course, a complex record operation such as updating a corresponding record after searching for a desired record may be executed. When writing argument declarations, variable declarations, and processing codes in stored subprograms, database objects such as tables and table columns in the database may be referenced. Therefore, as a preferable example of such a case, the database object browser
The information about the database object in the database is acquired from the database management system and displayed. That is, when editing a stored subprogram, information about an object in a database is stored in a database management system (DBMS).
And display it, so that actual editing work is performed using the display contents. The object in the database may be, for example, a table object, a table column object, or a view object, and is not particularly limited. As a result, the editing work efficiency can be improved, and the operability for editing can be improved by analyzing the program source registered in the DBM and treating the entire program source as a flowchart.

【0010】[0010]

【発明の実施の形態】図1は本発明の実施形態を示すブ
ロック図であり、具体的には、テーブル、ビュー、スト
アドサブプログラムなどのデータベースオブジェクトを
登録、管理するデータベース管理システム(DBMS)
を含むデータベースストアドサブプログラム用プログラ
ミング支援システムのハードウェア構成を示す。本発明
のデータベースストアドサブプログラム用プログラミン
グ支援システムは、図に示すように、ストアドサブプロ
グラム編集装置(スクリプトエディタ)2、およびこの
ストアドサブプログラム編集装置2の利用者が利用可能
なデータベースオブジェクトの一覧を表示するデータベ
ースオブジェクトブラウザ3から成り、共に、コンピュ
ータ100が持つメモリ上にマッピングされている。
FIG. 1 is a block diagram showing an embodiment of the present invention. Specifically, a database management system (DBMS) for registering and managing database objects such as tables, views, and stored subprograms.
1 shows a hardware configuration of a programming support system for a database stored subprogram including the following. As shown in the figure, the programming support system for a database stored subprogram of the present invention includes a stored subprogram editing device (script editor) 2 and a list of database objects that can be used by a user of the stored subprogram editing device 2. It consists of a database object browser 3 to be displayed, and both are mapped on the memory of the computer 100.

【0011】データベースストアドサブプログラムは所
定の構文規則で記述されたソースプログラムを、DBM
S520に依頼してデータベースにストアドサブプログ
ラムというデータベースオブジェクトとして登録してお
くことを要求する。そして、外部のプログラム等からス
トアドサブプログラムが呼び出されると、DBMS52
0はその呼び出しに応じて登録されているストアドサブ
プログラムを実行するようになっている。データベース
オブジェクトブラウザ3は、接続しているDBMS52
0が管理するデータベースに格納されているテーブル、
ビュー、テーブルカラム、ビューカラム、ストアドプロ
シージャ、といったデータベースオブジェクトの名称、
データ型、データ長、引数情報といった属性情報を保持
し、表示する。また利用者は、表示しているデータベー
スオブジェクトを選択して、ストアドサブプログラム編
集装置2にドロップすることができる。
[0011] A database stored subprogram stores a source program described according to a predetermined syntax rule in a DBM.
A request is made to S520 to register the data as a database object called a stored subprogram in the database. When a stored subprogram is called from an external program or the like, the DBMS 52
0 executes the stored subprogram registered in response to the call. The database object browser 3 uses the connected DBMS 52
0, a table stored in a database managed by
Names of database objects such as views, table columns, view columns, stored procedures,
Holds and displays attribute information such as data type, data length, and argument information. Further, the user can select the displayed database object and drop it on the stored subprogram editing device 2.

【0012】ストアドサブプログラム編集装置2は、ス
トアドサブプログラムの構造を流れ図で表示する流れ図
表示手段21と、流れ図表示されたストアドサブプログ
ラム構造を、所定のストアドサブプログラム記述言語を
用いたストアドサブプログラムソースコードへ変換する
手段(プログラム変換手段)22と、ストアドサブプロ
グラムをデータベースオブジェクトとしてDBMS52
0に登録要求するストアドサブプログラム登録手段23
と、データベースに登録されているストアドサブプログ
ラムをDBMS520に要求して取り出し、取り出した
ストアドサブプログラムを流れ図で表示できるように解
析するストアドサブプログラム解析手段24と、変数宣
言、カーソル宣言、SQL文などのソースコードの記述
を補助する記述支援手段25から構成される。
The stored subprogram editing apparatus 2 includes a flow chart display means 21 for displaying the structure of the stored subprogram in a flow chart, and a stored subprogram using a predetermined stored subprogram description language. Means for converting to source code (program conversion means) 22;
Stored subprogram registration means 23 for requesting registration at 0
And a stored subprogram analysis means 24 for requesting and extracting stored subprograms registered in the database from the DBMS 520 and analyzing the retrieved stored subprograms so that they can be displayed in a flow chart, variable declarations, cursor declarations, SQL statements, etc. The description support means 25 assists the description of the source code.

【0013】流れ図表示手段21は、ストアドサブプロ
グラムソースコードを、引数宣言部、処理ブロックの単
位に論理的に分割し、さらに処理ブロックを変数宣言部
と処理本体部の単位に論理的に分割し、流れ図として表
示する。プログラム変換手段22は、流れ図を解析し、
所定のストアドサブプログラム記述言語構文規則に合致
したストアドサブプログラムソースコードを組み立て
る。ストアドサブプログラムをDBMS520に登録要
求するストアドサブプログラム登録手段23は、プログ
ラム変換手段22で組み立てられたストアドサブプログ
ラムソースコードをDBMS管理領域530中に登録、
保存することをDBMS520に要求する。ストアドサ
ブプログラム解析手段24は、利用者がデータベースに
登録されている任意のストアドサブプログラムの編集を
要求すると、DBMS520に取り出しコマンドを送
り、編集要求のあったストアドサブプログラムをDBM
S管理領域530中から取り出し、解析し、引数宣言
部、処理ブロック単位の変数宣言部と処理本体部に論理
的に分割し、流れ図表示手段21を介して表示する。
The flow chart display means 21 logically divides the stored subprogram source code into an argument declaration unit and a processing block unit, and further logically divides the processing block into a variable declaration unit and a processing body unit. , As a flowchart. The program conversion means 22 analyzes the flow chart,
Assemble a stored subprogram source code that conforms to a predetermined stored subprogram description language syntax rule. The stored subprogram registration unit 23 that requests the DBMS 520 to register the stored subprogram registers the stored subprogram source code assembled by the program conversion unit 22 in the DBMS management area 530.
Request the DBMS 520 to save. When the user requests editing of any stored subprogram registered in the database, the stored subprogram analysis means 24 sends a retrieval command to the DBMS 520, and stores the requested stored subprogram in the DBM.
It is taken out from the S management area 530, analyzed, logically divided into an argument declaration section, a variable declaration section for each processing block, and a processing main body, and displayed via the flow chart display means 21.

【0014】記述支援手段25は、カラム型宣言補助手
段26、カーソル型宣言補助手段27、レコード型宣言
補助手段30、SELECT(質問により必要なデータ
を取り出す)、INSERT(データを関係に追加)、
DELETE(データを関係から削除)、UPDATE
(関係中のデータを更新)といったレコードを操作する
SQL文の作成を補助するレコード操作記述補助手段2
8、そして、ストアドサブプログラムの呼び出しコード
の記述を補助する呼び出し記述補助手段29から構成さ
れる。
The description support means 25 includes a column type declaration auxiliary means 26, a cursor type declaration auxiliary means 27, a record type declaration auxiliary means 30, SELECT (takes out necessary data by a question), INSERT (data is added to a relation),
DELETE (Delete data from relationship), UPDATE
Record operation description assisting means 2 for assisting the creation of an SQL statement for operating a record such as (update related data)
8, and a call description assisting means 29 for assisting the description of the call code of the stored subprogram.

【0015】カラム型宣言補助手段26は、流れ図の引
数宣言部、または変数宣言部に、カラムオブジェクトと
同等のデータ型の引数宣言項目または変数宣言項目の追
加を補助する。また、カーソル型宣言補助手段27は、
流れ図の変数宣言部にカーソル宣言項目の追加を補助す
る。更に、レコード操作記述補助手段28は、流れ図の
処理本体部にSQL文項目の追加を補助する。そして、
呼び出し記述補助手段29は、流れ図の処理本体部にス
トアドサブプログラム呼び出し項目の追加を補助する。
尚、図1中、510はハードディスクであり、DBMS
管理領域530に、ストアドサブプログラム532とデ
ータファイル531がマッピングされ格納されている。
また、DBMS520は必要に応じコンピュータ500
の主記憶装置505上にマッピングされ、ハードディス
ク510との間でデータ転送を行いながらコンピュータ
100との間でストアドサブプログラムの取り出し、あ
るいは登録を行うものとする。
The column type declaration assisting means 26 assists in adding an argument declaration item or a variable declaration item having a data type equivalent to that of the column object to the argument declaration portion or the variable declaration portion of the flowchart. In addition, the cursor type declaration auxiliary means 27
Assists in adding a cursor declaration item to the variable declaration section of the flowchart. Further, the record operation description assisting means 28 assists the addition of an SQL statement item to the processing body of the flowchart. And
The call description assisting means 29 assists in adding a stored subprogram call item to the processing body of the flowchart.
In FIG. 1, reference numeral 510 denotes a hard disk, which is a DBMS.
In the management area 530, a stored subprogram 532 and a data file 531 are mapped and stored.
In addition, the DBMS 520 is connected to the computer 500 if necessary.
The storage subprogram is mapped on the main storage device 505, and fetches or registers the stored subprogram with the computer 100 while performing data transfer with the hard disk 510.

【0016】図2は、図1に示すデータベースオブジェ
クトブラウザ3の詳細を示すブロック図である。データ
ベースオブジェクトブラウザ3は、接続しているDBM
S520が管理するデータベースに格納されているテー
ブル、ビュー、テーブルカラム、ビューカラム、ストア
ドプロシージャ、といったデータベースオブジェクトの
名称、データ型、データ長、引数情報から成る属性情報
を、コンピュータ100が持つメモリ上に割り付けられ
たオブジェクト情報記憶部31に保持し、各データベー
スオブジェクトの名称を表示装置に表示する。例えば、
カラムオブジェクト“カラム1−1”について、オブジ
ェクト種別が“カラム”で、データ型およびデータ長が
“文字列(30)”という、属性情報をオブジェクト情
報記憶部31に保持する。利用者が、データベースオブ
ジェクトブラウザ3の表示装置からテーブル1のカラム
を示すカラムオブジェクト“カラム1−1”を選択し
て、ストアドサブプログラム編集装置2の流れ図表示手
段21にドロップすると、カラムオブジェクト“カラム
1−1”の属性情報がストアドサブプログラム編集装置
2に渡される。
FIG. 2 is a block diagram showing details of the database object browser 3 shown in FIG. The database object browser 3 is the connected DBM
The attribute information including the names, data types, data lengths, and argument information of the database objects such as tables, views, table columns, view columns, and stored procedures stored in the database managed by S520 is stored in the memory of the computer 100. The object information is stored in the allocated object information storage unit 31, and the name of each database object is displayed on the display device. For example,
Regarding the column object “column 1-1”, attribute information having an object type of “column”, a data type and a data length of “character string (30)” is stored in the object information storage unit 31. When the user selects the column object “column 1-1” indicating the column of the table 1 from the display device of the database object browser 3 and drops it on the flow chart display means 21 of the stored subprogram editing device 2, the column object “column 1-1” The attribute information of “1-1” is passed to the stored subprogram editing device 2.

【0017】図3に、ストアドサブプログラム532を
記述支援手段25を用いて編集するための手順がフロー
チャートで示されている。同フローチャートを参照しな
がら記述支援手段25の動作を説明する。まず、流れ図
の所定の位置にストアドサブプログラムの名称、戻り値
のデータ型などを設定する。次に、引数宣言部にデータ
ベースオブジェクトブラウザ3からカラムオブジェクト
を選択してドラッグ・アンド・ドロップ(ステップA
1,A2)すると、カラム型宣言補助手段26による処
理が実行され(ステップA3)、ドロップされたカラム
と同じ型の、一意な名称を持った引数宣言項目が引数宣
言部の末尾に追加される(ステップA13)。同様に、
変数宣言部にデータベースオブジェクトブラウザ3から
カラムオブジェクトをドロップ(ステップA4,A5)
すると、カラム型宣言補助手段26による処理が実行さ
れ(ステップA3)、カラム型やカラムと同じ型の変数
宣言項目を引数宣言部の末尾に追加する(ステップA1
3)。局所変数宣言部にデータベースオブジェクトブラ
ウザ3からテーブルやビューをドロップ(ステップA
6)すると、ストアドサブプログラム編集装置2は、レ
コード型変数宣言とカーソル宣言のどちらを宣言するか
を利用者に問い合わせ、レコード型変数宣言を選択する
と、レコード型宣言補助手段30が実行され、カーソル
の宣言を選択すると、カーソル型宣言補助手段27によ
る処理が実行され(ステップA7)、カーソルやレコー
ド型の変数宣言項目を引数宣言部の末尾に追加する(ス
テップA13)。テーブル、ビュー、およびカラム以外
のデータベースオブジェクトをストアドサブプログラム
編集装置2の流れ図表示手段21の変数宣言部にドロッ
プしても記述支援手段25は動作しない。
FIG. 3 is a flowchart showing a procedure for editing the stored subprogram 532 by using the description support means 25. The operation of the description support means 25 will be described with reference to the flowchart. First, the name of the stored subprogram, the data type of the return value, and the like are set at predetermined positions in the flowchart. Next, select a column object from the database object browser 3 and drag and drop it into the argument declaration section (step A).
Then, the processing by the column type declaration auxiliary means 26 is executed (step A3), and an argument declaration item having the same type as the dropped column and having a unique name is added to the end of the argument declaration section. (Step A13). Similarly,
Drop a column object from the database object browser 3 into the variable declaration section (steps A4 and A5)
Then, processing by the column type declaration auxiliary means 26 is executed (step A3), and a variable declaration item of the column type or the same type as the column is added to the end of the argument declaration section (step A1).
3). Drop tables and views from the database object browser 3 into the local variable declaration section (step A
6) Then, the stored subprogram editing device 2 asks the user whether to declare a record type variable declaration or a cursor declaration, and when the record type variable declaration is selected, the record type declaration auxiliary means 30 is executed and the cursor Is selected, the processing by the cursor type declaration auxiliary means 27 is executed (step A7), and a variable declaration item of a cursor or record type is added to the end of the argument declaration section (step A13). Even if a database object other than a table, a view, and a column is dropped on the variable declaration section of the flow chart display means 21 of the stored subprogram editing device 2, the description support means 25 does not operate.

【0018】処理本体部にデータベースオブジェクトブ
ラウザ3から、テーブルオブジェクト、ビューオブジェ
クトをドロップ(ステップA8,A9)すると、そのテ
ーブルまたはビューに対する検索、挿入、更新、削除、
ロックといった処理を行うためのSQL文の記述を補助
するレコード操作記述補助手段28による処理が実行さ
れる(ステップA10)。レコード操作記述補助手段2
8はレコード操作に必要な所定の情報の入力を利用者に
要求し、入力された値または式を用いてSQL文を生成
し、流れ図表示手段21の処理本体部の末尾に項目を追
加する(ステップA13)。同様に、処理本体部にデー
タベースオブジェクトブラウザ3からストアドサブプロ
グラムオブジェクトをドロップ(ステップA11)する
と、そのストアドプログラムを呼び出すためのSQL文
を生成するための呼び出し記述補助手段29が実行され
る(ステップA12)。呼び出し記述補助手段29は、
ドロップされたストアドサブプログラムが引数を必要と
する場合、引数に与える、値または式の入力を利用者に
要求し、入力された値または式を用いてストアドサブプ
ログラム呼び出しコードを生成し、流れ図表示手段21
の処理本体部の末尾に項目を追加する(ステップA1
3)。
When table objects and view objects are dropped (steps A8 and A9) from the database object browser 3 to the processing main body, retrieval, insertion, update, deletion,
The process is executed by the record operation description assisting unit 28 for assisting the description of the SQL statement for performing the process such as the lock (step A10). Record operation description auxiliary means 2
Numeral 8 requests the user to input predetermined information necessary for record operation, generates an SQL sentence using the input value or expression, and adds an item to the end of the processing body of the flow chart display means 21 ( Step A13). Similarly, when the stored subprogram object is dropped from the database object browser 3 to the processing body (step A11), the call description assisting means 29 for generating an SQL statement for calling the stored program is executed (step A12). ). The call description assisting means 29
If the dropped stored subprogram requires an argument, request the user to enter a value or expression to be given to the argument, generate a stored subprogram call code using the entered value or expression, and display a flow chart Means 21
Add an item to the end of the processing body of (Step A1)
3).

【0019】次に具体例を用いて本発明実施形態の動作
につき説明する。図4は、データベースオブジェクトブ
ラウザ3とストアドサブプログラム編集装置2が持つ流
れ図表示手段21との間のデータ操作の流れとストアド
プログラムの構造を示す図である。いま、図4に示す構
造を持つストアドサブプログラムを新規に作成して登録
するものとする。引数宣言arg1、引数宣言arg2
はそれぞれ、データベース中のテーブル#1のデータフ
ィールドcoll−1およびデータフィールドcoll
−2を更新するための情報となるもので、データベース
テーブルの対応するフィールドのデータ型と一致してい
る必要があるものとする。データベースオブジェクトブ
ラウザ3からデータフィールドcoll−1のカラムオ
ブジェクトをドラッグして、流れ図表示手段21の引数
宣言部にドロップする(操作41)と、図3にフローチ
ャートで示すステップA1,A2を介し、カラム型宣言
補助手段26による処理が実行される。カラム型宣言補
助手段26では当初、引数の名称に自動的に一意な名称
を割り当てるが、利用者が編集して変更することもでき
る。カラム型宣言補助手段26の実行を終えると、デー
タフィールドと同じデータ型の引数項目arg1を、流
れ図表示手段21の引数宣言部の下位の階層に追加す
る。同様の手順(操作42)で、引数項目arg2も宣
言する。
Next, the operation of the embodiment of the present invention will be described using a specific example. FIG. 4 is a diagram showing the flow of data operation between the database object browser 3 and the flow chart display means 21 of the stored subprogram editing device 2 and the structure of the stored program. Now, it is assumed that a new stored subprogram having the structure shown in FIG. 4 is newly created and registered. Argument declaration arg1, Argument declaration arg2
Are the data field col-1 and the data field coll of table # 1 in the database, respectively.
-2, which is information for updating, and is required to match the data type of the corresponding field of the database table. When the column object of the data field col-1 is dragged from the database object browser 3 and dropped on the argument declaration section of the flow chart display means 21 (operation 41), the column type is set via the steps A1 and A2 shown in the flowchart of FIG. The processing by the declaration assisting means 26 is executed. Initially, the column type declaration auxiliary means 26 automatically assigns a unique name to the name of the argument, but the user can edit and change it. When the execution of the column type declaration auxiliary means 26 is completed, an argument item arg1 having the same data type as the data field is added to the lower hierarchy of the argument declaration part of the flow chart display means 21. In the same procedure (operation 42), the argument item arg2 is also declared.

【0020】変数var1はデータベース中のテーブル
1のデータフィールドcoll−3の値を一時的に格納
するためのもので、データフィールドcoll−3のデ
ータ型およびデータ長と一致している必要があるものと
する。データベースオブジェクトブラウザ3から対応す
るデータフィールドcoll−3オブジェクトをドラッ
グして、流れ図表示手段21の変数部にドロップする
(操作43)と、図3にフローチャートで示すステップ
A1,A4,A5に従う処理を介し、カラム型宣言補助
手段26が実行される。カラム型宣言補助手段26では
当初、変数の名称に自動的に一意な名称を割り当てる
が、利用者が編集して変更することもできる。カラム型
宣言補助手段26の実行を終えると、カラムと同じデー
タ型およびデータ長の変数項目var1を、流れ図表示
手段21の変数宣言部の下位の階層に追加する。もし、
対象とするDBMS520のストアドサブプログラム記
述言語にカラム名をデータ型として宣言できるカラム型
が存在するなばら、カラムデータ型の変数項目を、流れ
図表示手段21の変数宣言部の下位の階層に追加する。
The variable var1 is used to temporarily store the value of the data field col-3 of the table 1 in the database, and needs to match the data type and data length of the data field col-3. And When the corresponding data field coll-3 object is dragged from the database object browser 3 and dropped on the variable section of the flow chart display means 21 (operation 43), the processing is performed according to steps A1, A4, and A5 shown in the flowchart of FIG. , The column type declaration auxiliary means 26 is executed. Initially, the column type declaration auxiliary means 26 automatically assigns a unique name to the variable name, but the user can edit and change it. When the execution of the column type declaration auxiliary means 26 is completed, a variable item var1 having the same data type and data length as the column is added to the lower hierarchy of the variable declaration part of the flow chart display means 21. if,
If there is a column type in which the column name can be declared as a data type in the stored subprogram description language of the target DBMS 520, a variable item of the column data type is added to a lower hierarchy of the variable declaration section of the flow chart display means 21. .

【0021】変数var2は、データベース中のテーブ
ル#2のレコードを一時的に格納するためのもので、カ
ーソル、またはDBMS520のストアドサブプログラ
ム記述言語にレコード型が存在すればレコード型変数と
する。データベースオブジェクトブラウザ3から対応す
るテーブル#2オブジェクトをドラッグして、流れ図表
示手段21の変数宣言部にドロップする(操作44)
と、図3にフローチャートで示すステップA1,A4,
A5,A6に従う処理を介し、対象となるDBMS52
0のストアドサブプログラム記述言語がレコード型変数
の定義が可能ならば、まずは、カーソルまたはレコード
型変数のいずれを定義するかを利用者に問い合わせ、レ
コード型変数の宣言処理を選択すると、更に付加される
レコード型変数宣言補助手段(図示せず)による処理が
実行される。問い合せに対してカーソル型が選択される
か、レコード型の定義ができないストアドサブプログラ
ム記述言語の場合、カーソル型宣言補助手段27による
処理が実行される。カーソル型宣言補助手段27では、
当初、カーソル、またはレコード型変数の名称に、自動
的に一意な名称が割り当てるが、利用者が編集して変更
することもできる。各記述支援手段25の実行を終了す
ると、カーソル、またはレコード型変数の項目を、流れ
図表示手段21の変数宣言部の下位の階層に追加する。
The variable var2 is for temporarily storing the record of the table # 2 in the database, and is a record type variable if the record type exists in the cursor or the stored subprogram description language of the DBMS 520. Drag the corresponding table # 2 object from the database object browser 3 and drop it on the variable declaration section of the flowchart display means 21 (operation 44).
Steps A1, A4, shown in the flowchart of FIG.
The target DBMS 52 through the processing according to A5 and A6
If the stored subprogram description language of 0 can define a record type variable, first ask the user whether to define a cursor or a record type variable, and select the record type variable declaration process. The processing by the record type variable declaration auxiliary means (not shown) is executed. If the cursor type is selected for the inquiry or the stored subprogram description language cannot define the record type, the processing by the cursor type declaration auxiliary means 27 is executed. In the cursor type declaration auxiliary means 27,
Initially, a unique name is automatically assigned to the name of the cursor or record-type variable, but can be edited and changed by the user. When the execution of each description support unit 25 is completed, the cursor or the item of the record type variable is added to the lower hierarchy of the variable declaration part of the flow chart display unit 21.

【0022】同様にデータベースオブジェクトブラウザ
3上でテーブル#2を選択して、流れ図表示手段21の
処理本体部にドロップする(操作45)と、図3にフロ
ーチャートで示すステップA1,A4,A4,A8,A
9に従う処理を介し、レコード操作記述補助手段28が
実行される。レコード操作記述補助手段28は、利用者
に、テーブル#2に対する、検索処理、レコード挿入処
理、レコード更新処理、レコード削除処理のいずれかの
SQLコマンドに関する情報の入力を要求し、利用者が
当該情報を入力し終えると、SQLコマンド項目を流れ
図表示手段21の処理本体部の下位の階層に追加する。
当該SQLコマンド文の内容は後に変更することもでき
る。
Similarly, when table # 2 is selected on the database object browser 3 and dropped on the processing body of the flow chart display means 21 (operation 45), steps A1, A4, A4 and A8 shown in the flowchart of FIG. , A
9, the record operation description assisting means 28 is executed. The record operation description assisting unit 28 requests the user to input information relating to any one of the SQL commands of the search process, the record insertion process, the record update process, and the record deletion process to the table # 2. Is completed, the SQL command item is added to the lower hierarchy of the processing main body of the flow chart display means 21.
The contents of the SQL command statement can be changed later.

【0023】同様にデータベースオブジェクトブラウザ
3上でストアドサブプログラムstprogram1の
オブジェクトを選択して、流れ図表示手段21の処理本
体部にドロップする(操作46)と、図3にフローチャ
ートで示すステップA1,A4,A8,A9,A11に
従う処理を介し、ストアドサブプログラム呼び出し記述
補助手段29による処理が実行される。呼び出し記述補
助手段29は、利用者にストアドサブプログラムstp
rogram1に対する引数値を要求し、利用者が入力
し終えると、SQLコマンド項目を流れ図表示手段21
の処理本体部の下位の階層に追加する。当該SQLコマ
ンド文の内容は後に変更することもできる。
Similarly, when the object of the stored subprogram stprogram1 is selected on the database object browser 3 and dropped on the processing main body of the flow chart display means 21 (operation 46), steps A1, A4 and A4 shown in the flowchart of FIG. Through the processing according to A8, A9, and A11, the processing by the stored subprogram call description auxiliary means 29 is executed. The call description assisting means 29 provides the user with a stored subprogram stp.
When the user requests an argument value for program1 and completes the input, the SQL command item is displayed in the flow chart display means 21.
Is added to the lower hierarchy of the processing main body. The contents of the SQL command statement can be changed later.

【0024】利用者が、所定の手続きで制御構文や式と
いったその他のプログラム項目を追加・編集し、ストア
ドサブプログラムの記述を終了し、ストアドサブプログ
ラム編集装置2に、データベース管理システム管理領域
530へ登録を要求すると、ストアドサブプログラム編
集装置2は流れ図のストアドサブプログラムへの変換手
段22を実行して、流れ図をDBMS520のストアド
サブプログラム記述言語によるソースコードに変換し、
ストアドプログラム登録手段23を実行して、DBMS
520への登録処理要求を行う。
The user adds and edits other program items such as control syntax and expression by a predetermined procedure, finishes the description of the stored subprogram, and stores the program in the stored subprogram editing apparatus 2 and in the database management system management area 530. When the registration is requested, the stored subprogram editing device 2 executes the converting means 22 for converting the flowchart into the stored subprogram, and converts the flowchart into the source code in the stored subprogram description language of the DBMS 520,
Executing the stored program registration means 23 to execute the DBMS
A registration processing request to 520 is made.

【0025】図5は、ストアドサブプログラムの他の編
集方法につき、具体的なストアドサブプログラムを例示
して動作説明を行うために引用したフローチャートであ
る。以下、このフローチャートを参照しながら動作説明
を行う。まず、利用者がデータベース管理領域530に
存在するストアドサブプログラム532の編集を要求す
ると、ストアドサブプログラム編集装置2は、解析手段
24を介して、DBMS520にストアドサブプログラ
ム532の取り出しを要求し、取り出す(ステップS5
1)。続いて、取り出したストアドサブプログラム53
2を流れ図で表示できるように解析し、流れ図表示部2
1に解析結果を表示する(ステップS52)。
FIG. 5 is a flowchart cited for explaining the operation of another stored subprogram editing method by exemplifying a specific stored subprogram. Hereinafter, the operation will be described with reference to this flowchart. First, when the user requests the editing of the stored subprogram 532 existing in the database management area 530, the stored subprogram editing device 2 requests the DBMS 520 to extract the stored subprogram 532 via the analysis unit 24, and extracts the stored subprogram 532. (Step S5
1). Then, the retrieved stored subprogram 53
2 is analyzed so that it can be displayed in a flow chart, and the flow chart display unit 2
1 is displayed with the analysis result (step S52).

【0026】図5に例示したストアドサブプログラムソ
ースコードを、図4に示す流れ図表示手段21の状態で
表示するための手順は次のとおりである。まずストアド
サブプログラムソースコードの先頭にある、ストアドサ
ブプログラム名称の後の区切り記号(カッコや空白)の
次の文字列を引数宣言として解釈し、各引数宣言ごと
に、流れ図表示手段21の引数宣言部の下位の階層の項
目として表示する。次に、“AS DECLARE”と
いった変数宣言を示すキーワードを探し、処理本体部の
開始を示すキーワード“BEGIN”までの文字列を変
数宣言として解釈し、セミコロンまたはそれ相当の区切
り文字で区切られる各変数宣言ごとに、流れ図表示手段
21の変数宣言部の下位の階層の項目として表示する。
次に、処理本体部の開始を示すキーワード“BEGI
N”から、処理本体部の終わりを示すキーワード“EN
D”までの文字列を処理本体部の記述として解釈し、セ
ミコロンまたはそれ相当の区切り文字で区切られる各処
理記述ごとに、流れ図表示手段21の処理本体部の下位
の階層の項目として表示する。
The procedure for displaying the stored subprogram source code illustrated in FIG. 5 in the state of the flowchart display means 21 shown in FIG. 4 is as follows. First, the character string next to the delimiter (parentheses or spaces) after the stored subprogram name at the beginning of the stored subprogram source code is interpreted as an argument declaration, and for each argument declaration, the argument declaration of the flowchart display means 21 is made. It is displayed as an item in the lower hierarchy of the section. Next, a keyword indicating a variable declaration such as "AS DECLARE" is searched for, and a character string up to a keyword "BEGIN" indicating the start of the processing body is interpreted as a variable declaration, and each variable separated by a semicolon or an equivalent delimiter is searched for. For each declaration, it is displayed as an item in the lower hierarchy of the variable declaration section of the flowchart display means 21.
Next, the keyword “BEGI” indicating the start of the processing main unit
N, the keyword “EN” indicating the end of the processing main unit
The character string up to D "is interpreted as a description of the processing main unit, and for each processing description delimited by a semicolon or an equivalent delimiter, it is displayed as an item of a lower hierarchy of the processing main unit of the flow chart display means 21.

【0027】以下、先に述べた手段で、利用者が各種記
述補助手段25を利用し、ストアドサブプログラムソー
スの編集を行い(ステップS53)、編集が終了したら、
流れ図からストアドサブプログラムへの変換手段24を
介して、DBMS520所定のストアドサブプログラム
記述言語を用いたストアドサブプログラムソースを組み
立てる(ステップS54)。それから、データベースへの
登録処理手段23を介して、組み立てたストアドサブプ
ログラムを再度、データベース管理領域530へのスト
アドサブプログラム532の登録をDBMS520に要
求する(ステップS55)。
In the following, the user edits the stored subprogram source by using the various description assisting means 25 by the means described above (step S53).
The stored subprogram source using the predetermined stored subprogram description language of the DBMS 520 is assembled through the conversion means 24 from the flowchart to the stored subprogram (step S54). Then, the registration request of the stored subprogram 532 to the database management area 530 is again requested to the DBMS 520 via the database registration processing means 23 (step S55).

【0028】以上説明のように本発明は、テーブル、ビ
ュー、カラム、ストアドプロシージャといったデータベ
ースオブジェクトの種別を、各オブジェクトごとに属性
として持ち、各オブジェクトの名称をリスト表示するデ
ータベースオブジェクトブラウザと、ストアドサブプロ
グラムのソースコードを流れ図表示し、引数定義、変数
定義、制御式、処理文といった構文種別に分類して、そ
れを属性として持つストアドサブプログラム編集装置を
用意し、前記データベースオブジェクトブラウザ3か
ら、データベースオブジェクトのアイコンを、ストアド
サブプログラム編集装置2へドラグ・アンド・ドロップ
することで、変数宣言、カーソル宣言、SQL文などの
状況に応じたソースコード記述支援画面を表示し、記述
ミスのない、ソースコード記述を支援するものである。
As described above, according to the present invention, a database object browser having a type of a database object such as a table, a view, a column, or a stored procedure as an attribute for each object and displaying a list of the names of the objects is provided. A source code of a program is displayed in a flow chart, classified into syntax types such as an argument definition, a variable definition, a control expression, and a processing statement, and a stored subprogram editing device having the attribute as an attribute is prepared. By dragging and dropping the icon of the object to the stored subprogram editing device 2, a source code description support screen corresponding to the situation such as variable declaration, cursor declaration, and SQL statement is displayed, and the source without any description mistakes is displayed. It is intended to support the over-de-description.

【0029】本発明により、例えば、データベースオブ
ジェクトブラウザ3からテーブルオブジェクトアイコン
をドラッグして、ストアドサブプログラム編集装置2の
処理文アイコンにドロップすると、SQL文作成支援画
面が表示される。一方、同じテーブルオブジェクトアイ
コンをドラッグして、スクリプトエディタ2の変数宣言
アイコンにドロップすると、カーソル宣言支援画面が表
示される。このように、データベースオブジェクトブラ
ウザ3上のアイコンと、ストアドサブプログラム編集装
置2上のアイコンの属性の組み合わせによって、その状
況に応じた適切なソースコードの記述支援が可能とな
り、作業効率の改善がはかれる。
According to the present invention, for example, when a table object icon is dragged from the database object browser 3 and dropped on the processing statement icon of the stored subprogram editing apparatus 2, an SQL statement creation support screen is displayed. On the other hand, if the same table object icon is dragged and dropped on the variable declaration icon of the script editor 2, a cursor declaration support screen is displayed. As described above, the combination of the icon on the database object browser 3 and the attribute of the icon on the stored subprogram editing device 2 makes it possible to support the description of an appropriate source code according to the situation, thereby improving the work efficiency. .

【0030】[0030]

【発明の効果】以上説明のように本発明は、所定のプロ
グラム記述言語を用いてあるデータベース中のレコード
を操作するDBMSのストアドサブプログラムを編集す
るデータベースストアドサブプログラム用プログラミン
グ支援システムにおいて、前記ストアドサブプログラム
の構文種別に応じて前記データベースオブジェクトを参
照する際、データベースオブジェクトブラウザを介し、
前記DBMSからデータベース中のデータベースオブジ
ェクトについての情報を取得して表示し、その表示内容
を参照してストアドサブプログラムの編集操作を促すこ
とを特徴とするものであり、ストアドサブプログラムソ
ース中の、データベースオブジェクトに関連した引数宣
言、変数宣言、操作コマンドの記述における利用者のキ
ータイプ入力を減らし、記述ミスを減らすことができ
る。このことにより、編集作業効率の改善がはかれる。
また、編集するプログラムソース全体を流れ図で表現す
ることにより一層の作業効率の改善がはかれる。
As described above, the present invention relates to a programming support system for a database stored subprogram which edits a stored subprogram of a DBMS for operating a record in a database using a predetermined program description language. When referencing the database object according to the syntax type of the subprogram, via the database object browser,
Acquiring information about database objects in a database from the DBMS, displaying the acquired information, and prompting an editing operation of a stored subprogram by referring to the display contents; It is possible to reduce the user's key type input in the description of the argument declaration, the variable declaration, and the operation command related to the object, thereby reducing the description mistake. As a result, the editing work efficiency is improved.
Further, the work efficiency can be further improved by expressing the entire program source to be edited in a flow chart.

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

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

【図2】 図1に示すデータオブジェクトブラウザの詳
細を示すブロック図である。
FIG. 2 is a block diagram showing details of a data object browser shown in FIG. 1;

【図3】 図1に示す記述支援手段による動作手順をフ
ローチャートで示した図である。
FIG. 3 is a flowchart showing an operation procedure by the description support means shown in FIG. 1;

【図4】 本発明実施形態の動作を説明するために引用
した図であり、新規に作成するストアドサブプログラム
の構造と、操作概要を示す図である。
FIG. 4 is a diagram cited for explaining the operation of the embodiment of the present invention, showing a structure of a newly created stored subprogram and an outline of operations.

【図5】 本発明の他の実施形態による動作手順をフロ
ーチャートで示した図である。
FIG. 5 is a flowchart showing an operation procedure according to another embodiment of the present invention.

【図6】 従来のデータベースストアドサブプログラム
用プログラミング支援システムの構成例を示すブロック
図である。
FIG. 6 is a block diagram showing a configuration example of a conventional programming support system for a database stored subprogram.

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

2…ストアドサブプログラム編集装置 3…データベースオブジェクトブラウザ 21…流れ図表示手段 22…プログラム変換手段 23…ストアドサブプログラム登録手段 24…ストアドサブプログラム解析手段 25…記述支援手段 26…カラム型宣言補助手段 27…カーソル型宣言補助手段 28…レコード操作記述補助手段 29…呼び出し記述補助手段 520…データベース管理システムプログラム(DBM
S) 530…DBMS管理領域 532…ストアドサブプログラム
2 ... Stored subprogram editing device 3 ... Database object browser 21 ... Flow chart display means 22 ... Program conversion means 23 ... Stored subprogram registration means 24 ... Stored subprogram analysis means 25 ... Description support means 26 ... Column type declaration auxiliary means 27 ... Cursor type declaration auxiliary means 28 ... Record operation description auxiliary means 29 ... Call description auxiliary means 520 ... Database management system program (DBM
S) 530: DBMS management area 532: stored subprogram

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定のプログラム記述言語を用いてある
データベース中のレコードを操作するデータベース管理
システム(DBMS)のストアドサブプログラムを編集
するデータベースストアドサブプログラム用プログラミ
ング支援システムにおいて、前記ストアドサブプログラ
ムの構文種別に応じて前記データベースオブジェクトを
参照する際、データベースオブジェクトブラウザを介
し、前記DBMSからデータベース中のデータベースオ
ブジェクトについての情報を取得して表示し、その表示
内容を参照してストアドサブプログラムの編集操作を促
すことを特徴とするデータベースストアドサブプログラ
ム用プログラミング支援方法。
1. A programming support system for a database stored subprogram for editing a stored subprogram of a database management system (DBMS) for operating a record in a database using a predetermined program description language, wherein the syntax of the stored subprogram is When referring to the database object according to the type, the information about the database object in the database is acquired and displayed from the DBMS via the database object browser, and the stored subprogram is edited by referring to the display contents. A programming support method for a database stored subprogram characterized by prompting.
【請求項2】 前記DBMSに登録されているストアド
サブプログラムソースを取り出し、取り出されたストア
ドプログラムソースを解析して引数宣言部、処理ブロッ
ク単位に論理的に分割し、当該処理ブロックを更に変数
宣言部と処理本体部の単位に論理的に分割することによ
り、ストアドプログラムソースの少なくとも一部を階層
構造の流れ図として扱い編集操作を促すことを特徴とす
る請求項1に記載のデータベースストアドサブプログラ
ム用プログラミング支援方法。
2. Extracting a stored subprogram source registered in the DBMS, analyzing the extracted stored program source, logically dividing it into an argument declaration unit and a processing block unit, and further declaring the processing block as a variable. 2. The database stored subprogram according to claim 1, wherein at least a part of the stored program source is treated as a flow chart of a hierarchical structure to prompt an editing operation by logically dividing the stored program source into units. Programming support method.
【請求項3】 ストアドサブプログラムの構文規則に合
致したデータベースオブジェクトにおけるプログラミン
グの記述を支援するストアドサブプログラム用プログラ
ミング支援システムにおいて、ストアドサブプログラム
ソースを、引数宣言部、処理ブロックの単位に論理的に
分割し、さらに処理ブロックを変数宣言部と処理記述部
の単位に論理的に分割し、前記プログラムソースの少な
くとも一部を階層構造の流れ図として扱うストアドサブ
プログラム編集装置に、データベースに格納されている
各データベースオブジェクトの名称と属性に関する情報
を保持し、当該情報をリスト表示するデータベースオブ
ジェクトブラウザを介して任意のデータベースオブジェ
クトを選択して、ドラッグ・アンド・ドロップすること
により、ドロップされたデータベースオブジェクトの属
性と流れ図上の位置の組み合わせにより、その状況に応
じた適切なソースコード記述支援画面を表示して編集入
力を促すことを特徴とするデータベースストアドサブプ
ログラム用プログラミング支援方法。
3. In a programming support system for a stored subprogram supporting a description of programming in a database object conforming to the syntax rules of the stored subprogram, a stored subprogram source is logically divided into a unit of an argument declaration unit and a processing block. The processing block is logically divided into units of a variable declaration section and a processing description section, and at least a part of the program source is stored in a database in a stored subprogram editing apparatus which handles the flowchart as a hierarchical flow chart. By holding information on the name and attribute of each database object and selecting and dragging and dropping any database object via the database object browser that displays the information, a drop-down A programming support method for a database stored subprogram, comprising displaying an appropriate source code description support screen according to the situation and prompting an edit input based on a combination of the attribute of the database object and the position on the flowchart.
【請求項4】 ストアドサブプログラムの構文規則に合
致したデータベースオブジェクトにおけるプログラミン
グの記述を支援するストアドサブプログラム用プログラ
ミング支援システムであって、前記データベースオブジ
ェクトの種別を各オブジェクト毎属性として持ち、各オ
ブジェクトの名称をリスト表示するデータベースオブジ
ェクトブラウザと、前記ストアドサブプログラムソース
を流れ図で表示し、このストアドサブプログラムを構文
種別に分類してそれぞれを属性として持ち、前記データ
ベースオブジェクトブラウザから任意のデータベースオ
ブジェクトの属性アイコンを、任意の構文種別の属性ア
イコンへドラグ・アンド・ドロップすることにより、そ
の状況に応じたソースコード記述支援画面を表示して編
集入力を促すストアドサブプログラム編集装置とを有す
ることを特徴とするデータベースストアドサブプログラ
ム用プログラミング支援システム。
4. A programming support system for a stored subprogram for supporting a description of programming in a database object that conforms to the syntax rules of a stored subprogram, wherein the system has a type of the database object as an attribute of each object, and A database object browser for displaying a list of names, and displaying the stored subprogram source in a flow chart, classifying the stored subprograms into syntax types, each having an attribute, and an attribute icon of an arbitrary database object from the database object browser. By dragging and dropping to the attribute icon of any syntax type, displays a source code description support screen corresponding to the situation and prompts for editing input A programming support system for a database stored subprogram, comprising: a subprogram editing device.
【請求項5】 前記ストアドサブプログラム編集装置
は、当該ストアドサブプログラムのソースコードを引数
宣言部、処理ブロックの単位に論理的に分割し、更に当
該処理ブロックを変数宣言部と処理本体部の単位に論理
的に分割し、流れ図で表示する流れ図表示手段と、流れ
図表示されたストアドサブプログラム構造を解析し、所
定の記述言語構文規則に合致したストアドサブプログラ
ムソースコードを組み立てるコード変換手段と、当該ス
トアドサブプログラムソースコードをデータベースオブ
ジェクトとしてシステムが管理するDBMSへ登録要求
するDBMS登録要求手段と、当該DBMS登録された
ストアドサブプログラムを前記DBMSへ要求して取り
出し、取り出されたストアドサブプログラムを解析して
引数宣言部、処理ブロック単位の変数宣言部と処理本体
部に論理的に分割し、流れ図により前記流れ図表示手段
を介して流れ図表示するストアドサブプログラム解析手
段と、前記流れ図の引数宣言部あるいは変数宣言部、処
理本体部にそれぞれ変数宣言、カーソル宣言、SQL文
項目のソースコード記述を補助するストアドプログラム
記述支援手段を含むことを特徴とする請求項4に記載の
データベースストアドサブプログラム用プログラミング
支援システム。
5. The stored subprogram editing apparatus logically divides a source code of the stored subprogram into an argument declaration unit and a processing block unit, and further divides the processing block into a variable declaration unit and a processing body unit. A flow chart display means for logically dividing the stored sub program structure into a flow chart, a code conversion means for analyzing a stored sub program structure displayed in the flow chart, and assembling a stored sub program source code conforming to a predetermined description language syntax rule; DBMS registration request means for requesting registration of a stored subprogram source code as a database object to a DBMS managed by the system, requesting and extracting the DBMS-registered stored subprogram from the DBMS, and analyzing the extracted stored subprogram Argument declaration section, processing block Stored subprogram analysis means which is logically divided into a variable declaration section and a processing body section for each block, and which displays a flow chart by a flow chart through the flow chart display means; an argument declaration section or a variable declaration section of the flow chart; 5. The programming support system for a database stored subprogram according to claim 4, wherein each of the sections includes a stored program description supporting means for assisting a source code description of a variable declaration, a cursor declaration, and an SQL statement item.
【請求項6】 前記ストアドプログラム記述支援手段
は、前記流れ図の引数宣言部あるいは変数宣言部にカラ
ムオブジェクトと同等のデータ型の引数宣言項目、ある
いは変数宣言項目の追加を補助するカラム型宣言補助手
段と、前記流れ図の変数宣言部にカーソル宣言項目の追
加を補助するカーソル宣言補助手段と、前記流れ図の処
理本体部にSQL文項目の追加を補助するレコード操作
補助手段と、前記流れ図の処理本体部にストアドサブプ
ログラムの呼び出し項目の追加を補助する呼び出し記述
補助手段を含むことを特徴とする請求項5に記載のデー
タベースストアドサブプログラム用プログラミング支援
システム。
6. The column type declaration assisting means for assisting the addition of an argument declaration item or a variable declaration item of the same data type as a column object in an argument declaration portion or a variable declaration portion of the flowchart. A cursor declaration assisting means for assisting addition of a cursor declaration item to a variable declaration part of the flowchart; a record operation assisting means for assisting addition of an SQL statement item to a processing body of the flowchart; and a processing body of the flowchart. 6. The programming support system for a database stored subprogram according to claim 5, further comprising a call description assisting means for assisting the addition of a call item of the stored subprogram.
JP11131984A 1999-05-12 1999-05-12 Method and device for programming support for data base stored sub-program Pending JP2000322295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11131984A JP2000322295A (en) 1999-05-12 1999-05-12 Method and device for programming support for data base stored sub-program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11131984A JP2000322295A (en) 1999-05-12 1999-05-12 Method and device for programming support for data base stored sub-program

Publications (1)

Publication Number Publication Date
JP2000322295A true JP2000322295A (en) 2000-11-24

Family

ID=15070846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11131984A Pending JP2000322295A (en) 1999-05-12 1999-05-12 Method and device for programming support for data base stored sub-program

Country Status (1)

Country Link
JP (1) JP2000322295A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018720A (en) * 2001-08-31 2003-03-06 (주) 소프트4소프트 Method for generating source code browser for software maintenance and system therefor
JP2008129844A (en) * 2006-11-21 2008-06-05 Nec Informatec Systems Ltd Stored procedure generation device, method, program, and system
JP2010182060A (en) * 2009-02-05 2010-08-19 Nec System Technologies Ltd System and method for structuring macro-program and program
CN117951037A (en) * 2024-03-27 2024-04-30 武汉派呦科技有限公司 Program running state indicating system and entity code building block

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816378A (en) * 1994-06-30 1996-01-19 Fujitsu Ltd Program reverse analysis method and device
JPH0855019A (en) * 1994-08-10 1996-02-27 Hitachi Ltd Visual programming method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816378A (en) * 1994-06-30 1996-01-19 Fujitsu Ltd Program reverse analysis method and device
JPH0855019A (en) * 1994-08-10 1996-02-27 Hitachi Ltd Visual programming method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018720A (en) * 2001-08-31 2003-03-06 (주) 소프트4소프트 Method for generating source code browser for software maintenance and system therefor
JP2008129844A (en) * 2006-11-21 2008-06-05 Nec Informatec Systems Ltd Stored procedure generation device, method, program, and system
JP2010182060A (en) * 2009-02-05 2010-08-19 Nec System Technologies Ltd System and method for structuring macro-program and program
CN117951037A (en) * 2024-03-27 2024-04-30 武汉派呦科技有限公司 Program running state indicating system and entity code building block

Similar Documents

Publication Publication Date Title
US7269580B2 (en) Application integration system and method using intelligent agents for integrating information access over extended networks
US6279006B1 (en) Structured data management system and computer-readable recording medium storing structured data management program
US7797627B2 (en) Method and apparatus for providing a graphical user interface for creating and editing a mapping of a first structural description to a second structural description
US6128619A (en) Generating an internet application for accessing a hierarchical database
US7174286B2 (en) Systems and methods for defining a simulated interactive web page
US7240063B2 (en) System for getting conversion rules
US6430571B1 (en) Multi-frame output form that facilitates internet search and update in a hierarchical database
US20060156314A1 (en) Systems and methods for mapping API calls
JPH09128379A (en) Information processing method
JP2000090098A (en) Database query method, device for executing the method, and medium recording processing program for the method
EP1643424A2 (en) Contextual Action Publishing
KR20040004619A (en) Method and system for transforming legacy software applications into modern object-oriented systems
US5394546A (en) Database management system and method of extending system functions
JP2644728B2 (en) Data dictionary directory system
KR101986476B1 (en) Program writing device
JPH0668151A (en) Database access method and its device
EP1909170A1 (en) Method and system for automatically generating a communication interface
JPH11265368A (en) Work procedure management system
JPH11288412A (en) Document creation method and system, and computer-readable recording medium recording document creation program
JPH08263277A (en) Automatic generator of data manipulation program
JP3167412B2 (en) Database search processor
JP7481283B2 (en) Metadata management device, data management system, and data reproduction method
JP2002014985A (en) Document search system and search document registration control method
JP2990314B2 (en) Data management device
JP3435372B2 (en) Database management method and system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040106