Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5487181B2 - Setting information input support apparatus and program - Google Patents
[go: Go Back, main page]

JP5487181B2 - Setting information input support apparatus and program - Google Patents

Setting information input support apparatus and program Download PDF

Info

Publication number
JP5487181B2
JP5487181B2 JP2011217615A JP2011217615A JP5487181B2 JP 5487181 B2 JP5487181 B2 JP 5487181B2 JP 2011217615 A JP2011217615 A JP 2011217615A JP 2011217615 A JP2011217615 A JP 2011217615A JP 5487181 B2 JP5487181 B2 JP 5487181B2
Authority
JP
Japan
Prior art keywords
column
information
foreign key
input value
key
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.)
Active
Application number
JP2011217615A
Other languages
Japanese (ja)
Other versions
JP2013077218A (en
Inventor
有希 松岡
令 矢野
真由美 保坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2011217615A priority Critical patent/JP5487181B2/en
Publication of JP2013077218A publication Critical patent/JP2013077218A/en
Application granted granted Critical
Publication of JP5487181B2 publication Critical patent/JP5487181B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明の実施形態は、アプリケーションの自動生成に必要な情報の設定を支援する設定情報入力支援装置およびプログラムに関する。   Embodiments described herein relate generally to a setting information input support apparatus and program for supporting setting of information necessary for automatic generation of an application.

一般的に、アプリケーションは、リレーショナルデータベースを用いる場合が多い。このリレーショナルデータベースでは、複数のテーブル間に関係がある場合がある。   In general, applications often use relational databases. In this relational database, there may be a relationship between a plurality of tables.

例えば従業員テーブルに部署番号のカラムがあり、部署テーブルに部署番号および部署名のカラムがある場合、当該従業員テーブルと部署テーブルとは部署番号を介して関係があるといえる。また、従業員テーブルの部署番号から部署テーブルの部署番号を介して部署名を参照することができる。このため、従業員テーブルと部署テーブルとの間では参照関係があるともいえる。なお、このような場合における従業員テーブルの部署番号は、当該従業員テーブルにおいて外部キーと呼ばれる。   For example, if the employee table has a department number column and the department table has a department number and department column, it can be said that the employee table and the department table are related via the department number. The department name can be referred to from the department number of the employee table via the department number of the department table. For this reason, it can be said that there is a reference relationship between the employee table and the department table. Note that the department number in the employee table in such a case is called an external key in the employee table.

このような参照関係があるテーブルにアクセスするようなアプリケーションを作成する場合、参照先となるテーブルの表示形式および参照画面の表示内容等が多様になる。   When an application that accesses a table having such a reference relationship is created, the display format of the table to be referred to, the display content of the reference screen, and the like are varied.

ところで、近年、アプリケーションを自動生成するシステムが増加している。そこで、上記したようなアプリケーションを自動生成する場合、当該自動生成されるアプリケーションのために多様な表示形式を指定するためには、入力情報としてユーザが多くの項目を設定する必要がある。   By the way, in recent years, systems for automatically generating applications are increasing. Therefore, when an application as described above is automatically generated, the user needs to set many items as input information in order to specify various display formats for the automatically generated application.

特開2004−318260号公報JP 2004-318260 A 特開2005−055951号公報JP 2005-055951 A

上記したように、リレーショナルデータベースのテーブル間の参照関係に対応したアプリケーションを自動生成するためには、ユーザが多くの項目を設定する必要がある。   As described above, in order to automatically generate an application corresponding to the reference relationship between tables in the relational database, the user needs to set many items.

しかしながら、このような多くの項目の全てをユーザが設定しなければならないとすると手間が掛かり、当該ユーザにとっては非常に煩雑である。   However, if the user has to set all of these many items, it is troublesome and very complicated for the user.

そこで、本明細書で開示された実施形態では、アプリケーションの自動生成に必要な情報の設定を支援することが可能な設定情報入力支援装置およびプログラムを提供することを目的とする。   Therefore, an object of the embodiment disclosed in the present specification is to provide a setting information input support apparatus and program capable of supporting the setting of information necessary for automatic generation of an application.

実施形態によれば、アプリケーションを自動生成するために必要な情報の設定を支援する設定情報入力支援装置が提供される。   According to the embodiment, a setting information input support apparatus that supports setting of information necessary for automatically generating an application is provided.

実施形態に係る設定情報入力支援装置は、前記アプリケーションにおいて用いられる複数のカラムから構成される第1のテーブルを示す第1のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第1のテーブル情報と、前記アプリケーションにおいて用いられる複数のカラムから構成される第2のテーブルを示す第2のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第2のテーブル情報とを含む複数のテーブル情報が設定されている入力情報ファイルを具備する。   The setting information input support device according to the embodiment is first table information indicating a first table composed of a plurality of columns used in the application, and whether or not each of the columns is a primary key. First table information including primary key information to be displayed and each column name of the column, and second table information indicating a second table composed of a plurality of columns used in the application, An input information file in which a plurality of table information including primary key information indicating whether each is a primary key and second table information including the column name of each column is set.

実施形態に係る設定情報入力支援装置は、前記入力情報ファイルに設定されている複数のテーブル情報を取得するテーブル情報取得手段を具備する。   The setting information input support device according to the embodiment includes table information acquisition means for acquiring a plurality of table information set in the input information file.

実施形態に係る設定情報入力支援装置は、前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第1のテーブル情報に含まれる主キー情報に基づいて、当該第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つである対象カラムが主キーであるかを判定する第1の判定手段を具備する。   The setting information input support device according to the embodiment is indicated by the first table information based on the primary key information included in the first table information among the plurality of table information acquired by the table information acquisition unit. First determination means for determining whether a target column, which is one of a plurality of columns constituting the first table, is a primary key.

実施形態に係る設定情報入力支援装置は、前記対象カラムが主キーでないと前記第1の判定手段によって判定された場合、当該対象カラムから構成される第1のテーブルを構成する複数のカラムのうち当該第1のテーブルにおいて主キーであるカラムを、前記第1のテーブル情報に含まれる主キー情報に基づいて特定する第1の特定手段を具備する。   When the first determination unit determines that the target column is not a primary key, the setting information input support device according to the embodiment includes a plurality of columns constituting the first table including the target column. The first table includes a first specifying unit that specifies a column that is a primary key based on primary key information included in the first table information.

実施形態に係る設定情報入力支援装置は、前記第1の特定手段によって特定されたカラムを前記第1のテーブルにおける外部キーの候補として取得する第1の外部キー候補取得手段を具備する。   The setting information input support apparatus according to the embodiment includes a first foreign key candidate acquisition unit that acquires a column specified by the first specification unit as a foreign key candidate in the first table.

実施形態に係る設定情報入力支援装置は、前記対象カラムが主キーでないと前記第1の判定手段によって判定された場合、当該対象カラムから構成される第1のテーブル以外の第2のテーブルを構成する複数のカラムのうち当該第2のテーブルにおいて主キーであるカラムを、前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第2のテーブル情報に含まれる主キー情報に基づいて特定する第2の特定手段を具備する。   The setting information input support device according to the embodiment configures a second table other than the first table configured from the target column when the first determination unit determines that the target column is not a primary key. The column that is the primary key in the second table among the plurality of columns to be identified based on the primary key information included in the second table information of the plurality of table information acquired by the table information acquisition unit Second specifying means is provided.

実施形態に係る設定情報入力支援装置は、前記第1のテーブル情報に含まれる前記対象カラムのカラム名および前記第2のテーブル情報に含まれる前記第2の特定手段によって特定されたカラムのカラム名が同一であるかを判定する第2の判定手段を具備する。   The setting information input support device according to the embodiment includes a column name of the target column included in the first table information and a column name of the column specified by the second specifying unit included in the second table information. Are provided with second determination means for determining whether or not the two are the same.

実施形態に係る設定情報入力支援装置は、前記対象カラムのカラム名および前記第2の特定手段によって特定されたカラムのカラム名が同一であると前記第2の判定手段によって判定された場合、当該第2の特定手段によって特定されたカラムを前記第1のテーブルにおける外部キーの候補として取得する第2の外部キー候補取得手段を具備する。   In the setting information input support device according to the embodiment, when the second determination unit determines that the column name of the target column and the column name of the column specified by the second specification unit are the same, There is provided second foreign key candidate acquisition means for acquiring a column specified by the second specifying means as a foreign key candidate in the first table.

実施形態に係る設定情報入力支援装置は、前記第1および第2の外部キー候補取得手段によって外部キーの候補として取得されたカラムを提示する提示手段を具備する。   The setting information input support apparatus according to the embodiment includes a presentation unit that presents a column acquired as a foreign key candidate by the first and second foreign key candidate acquisition unit.

実施形態に係る設定情報入力支援装置のハードウェア構成を示すブロック図。The block diagram which shows the hardware constitutions of the setting information input assistance apparatus which concerns on embodiment. 図1に示す設定情報入力支援装置30の主として機能構成を示すブロック図。The block diagram which mainly shows a function structure of the setting information input assistance apparatus 30 shown in FIG. 図2に示す入力情報ファイル22に設定されている第1のテーブル情報221のデータ構造の一例を示す図。The figure which shows an example of the data structure of the 1st table information 221 set to the input information file 22 shown in FIG. 図2に示す入力情報ファイル22に設定されている第2のテーブル情報222のデータ構造の一例を示す図。The figure which shows an example of the data structure of the 2nd table information 222 set to the input information file 22 shown in FIG. 参照先テーブル定義情報に含まれる参照時の表示項目の一例を示す図。The figure which shows an example of the display item at the time of the reference contained in reference destination table definition information. 外部キー参照先テーブルの参照時の画面の一例を示す図。The figure which shows an example of the screen at the time of the reference of a foreign key reference table. 参照先テーブル定義情報に含まれる参照時の表示項目の一例を示す図。The figure which shows an example of the display item at the time of the reference contained in reference destination table definition information. 外部キー参照先テーブルの参照時の画面の一例を示す図。The figure which shows an example of the screen at the time of the reference of a foreign key reference table. 参照先テーブル定義情報に含まれる参照時の表示項目の一例を示す図。The figure which shows an example of the display item at the time of the reference contained in reference destination table definition information. 外部キー参照先テーブルの参照時の画面の一例を示す図。The figure which shows an example of the screen at the time of the reference of a foreign key reference table. 図2に示す入力値候補取得ルール保持部23に保持されているルールのデータ構造の一例を示す図。The figure which shows an example of the data structure of the rule currently hold | maintained at the input value candidate acquisition rule holding | maintenance part 23 shown in FIG. 本実施形態に係る設定情報入力支援装置30の処理手順を示すフローチャート。The flowchart which shows the process sequence of the setting information input assistance apparatus 30 which concerns on this embodiment. 第1の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 1st input value candidate acquisition process. 第1の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 1st input value candidate acquisition process. 入力値決定部33に対して出力される外部キーの入力値の候補のデータ構造の一例を示す図。The figure which shows an example of the data structure of the input value candidate of the foreign key output with respect to the input value determination part. 第1の入力値候補選択画面の一例を示す図。The figure which shows an example of a 1st input value candidate selection screen. 図16に示す第1の入力値候補選択画面におけるプルダウン表示の一例を示す図。The figure which shows an example of the pull-down display in the 1st input value candidate selection screen shown in FIG. 第2の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 2nd input value candidate acquisition process. 入力値決定部33に対して出力される外部キー参照先テーブルの入力値の候補のデータ構造の一例を示す図。The figure which shows an example of the data structure of the candidate of the input value of the foreign key reference destination table output with respect to the input value determination part 33. FIG. 第2の入力値候補選択画面の一例を示す図。The figure which shows an example of a 2nd input value candidate selection screen. 図20に示す第2の入力値候補選択画面におけるプルダウン表示の一例を示す図。The figure which shows an example of the pull-down display in the 2nd input value candidate selection screen shown in FIG. 第2の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 2nd input value candidate acquisition process. 入力値決定部33に対して出力される外部キー参照先構成列の入力値の候補のデータ構造の一例を示す図。The figure which shows an example of the data structure of the candidate of the input value of the foreign key reference destination structure column output with respect to the input value determination part 33. FIG. 第3の入力値候補選択画面の一例を示す図。The figure which shows an example of a 3rd input value candidate selection screen. 図24に示す第3の入力値候補選択画面におけるプルダウン表示の一例を示す図。The figure which shows an example of the pull-down display in the 3rd input value candidate selection screen shown in FIG. 第4の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 4th input value candidate acquisition process. 入力値決定部33に対して出力される参照時の表示形式の入力値の候補のデータ構造の一例を示す図。The figure which shows an example of the data structure of the input value candidate of the display format at the time of the reference output with respect to the input value determination part 33. FIG. 第4の入力値候補選択画面の一例を示す図。The figure which shows an example of a 4th input value candidate selection screen. 図28に示す第4の入力値候補選択画面におけるプルダウン表示の一例を示す図。The figure which shows an example of the pull-down display in the 4th input value candidate selection screen shown in FIG. 第5の入力値候補取得処理の処理手順を示すフローチャート。The flowchart which shows the process sequence of a 5th input value candidate acquisition process. 入力値決定部33に対して出力される参照時の表示項目の入力値の候補のデータ構造の一例を示す図。The figure which shows an example of the data structure of the input value candidate of the display item at the time of the reference output with respect to the input value determination part. 第5の入力値候補選択画面の一例を示す図。The figure which shows an example of the 5th input value candidate selection screen. 図32に示す第5の入力値候補選択画面におけるプルダウン表示の一例を示す図。The figure which shows an example of the pull-down display in the 5th input value candidate selection screen shown in FIG.

以下、図面を参照して、実施形態について説明する。   Hereinafter, embodiments will be described with reference to the drawings.

図1は、本実施形態に係る設定情報入力支援装置のハードウェア構成を示すブロック図である。図1に示すように、コンピュータ10は、例えばハードディスクドライブ(HDD:Hard Disk Drive)のような外部記憶装置20と接続されている。この外部記憶装置20は、コンピュータ10によって実行されるプログラム21を格納する。コンピュータ10および外部記憶装置20は、設定情報入力支援装置30を構成する。   FIG. 1 is a block diagram showing a hardware configuration of the setting information input support apparatus according to the present embodiment. As shown in FIG. 1, the computer 10 is connected to an external storage device 20 such as a hard disk drive (HDD). The external storage device 20 stores a program 21 executed by the computer 10. The computer 10 and the external storage device 20 constitute a setting information input support device 30.

この設定情報入力支援装置30は、例えばアプリケーションを自動生成するために必要な情報の設定を支援するために用いられる。   The setting information input support device 30 is used to support setting of information necessary for automatically generating an application, for example.

図2は、図1に示す設定情報入力支援装置30の主として機能構成を示すブロック図である。   FIG. 2 is a block diagram mainly showing a functional configuration of the setting information input support device 30 shown in FIG.

図2に示すように、設定情報入力支援装置30は、入力情報取得部31、入力値候補取得部32、入力値決定部33および入力情報反映部34を含む。本実施形態において、これらの各部31〜34は、図1に示すコンピュータ10が外部記憶装置20に格納されているプログラム21を実行することにより実現されるものとする。このプログラム21は、コンピュータ読み取り可能な記憶媒体に予め格納して頒布可能である。また、このプログラム21が、例えばネットワークを介してコンピュータ10にダウンロードされても構わない。   As illustrated in FIG. 2, the setting information input support device 30 includes an input information acquisition unit 31, an input value candidate acquisition unit 32, an input value determination unit 33, and an input information reflection unit 34. In the present embodiment, these units 31 to 34 are realized by the computer 10 illustrated in FIG. 1 executing the program 21 stored in the external storage device 20. This program 21 can be stored in advance in a computer-readable storage medium and distributed. Further, this program 21 may be downloaded to the computer 10 via, for example, a network.

また、設定情報入力支援装置30は、入力情報ファイル22および入力値候補取得ルール保持部23を含む。本実施形態において、入力情報ファイル22および入力値候補取得ルール保持部23は、例えば外部記憶装置20に格納される。   The setting information input support device 30 includes an input information file 22 and an input value candidate acquisition rule holding unit 23. In the present embodiment, the input information file 22 and the input value candidate acquisition rule holding unit 23 are stored in, for example, the external storage device 20.

入力情報ファイル22には、例えばアプリケーションを自動生成するために必要な情報が設定される。この入力情報ファイル22に設定された情報は、例えばアプリケーションを自動生成する際に用いられる。   In the input information file 22, for example, information necessary for automatically generating an application is set. The information set in the input information file 22 is used, for example, when an application is automatically generated.

入力情報ファイル22には、自動生成されるアプリケーションにおいて用いられる複数のカラムから構成されるテーブルを示すテーブル情報が当該テーブル毎に設定されている。入力情報ファイル22に設定されているテーブル情報には、当該テーブル情報によって示されるテーブルを構成するカラムの各々が主キーであるか否かを示す主キー情報および当該カラムのカラム名等が含まれる。なお、テーブル情報に含まれる主キー情報およびカラム名等の情報は、例えばユーザによって予め設定(入力)さている。   In the input information file 22, table information indicating a table composed of a plurality of columns used in an automatically generated application is set for each table. The table information set in the input information file 22 includes primary key information indicating whether or not each column constituting the table indicated by the table information is a primary key, the column name of the column, and the like. . Note that information such as primary key information and column names included in the table information is preset (input) by a user, for example.

なお、入力情報ファイル22には、予め設定されている情報以外に、テーブル情報によって示されるテーブルと例えば参照関係があるテーブル(以下、参照先テーブルと表記)についての情報等がアプリケーションを自動生成するために必要な情報として設定される。   In addition to the information set in advance, the input information file 22 automatically generates an application such as information about a table having a reference relationship with the table indicated by the table information (hereinafter referred to as a reference table). Is set as necessary information.

入力情報取得部31は、入力情報ファイル22に設定されているテーブル毎のテーブル情報(つまり、複数のテーブル情報)を、当該入力情報ファイル22から取得する。ここで、入力情報取得部31によって取得される複数のテーブル情報は、上記したようにユーザによって予め入力(設定)されている情報(入力情報)である。   The input information acquisition unit 31 acquires table information (that is, a plurality of table information) for each table set in the input information file 22 from the input information file 22. Here, the plurality of table information acquired by the input information acquisition unit 31 is information (input information) input (set) in advance by the user as described above.

入力値候補取得ルール保持部23には、入力値候補取得部32によって用いられるルールが予め保持されている。この入力値候補取得ルール保持部23に保持されているルールの詳細については後述する。   The input value candidate acquisition rule holding unit 23 holds rules used by the input value candidate acquisition unit 32 in advance. Details of the rules held in the input value candidate acquisition rule holding unit 23 will be described later.

入力値候補取得部32は、入力情報取得部31によって取得された複数のテーブル情報(テーブル毎のテーブル情報)および入力値候補取得ルール保持部23に保持されているルールに基づいて、入力情報ファイル22に設定すべき値(入力値)の候補を取得する処理を実行する。   The input value candidate acquisition unit 32 is based on a plurality of table information (table information for each table) acquired by the input information acquisition unit 31 and a rule stored in the input value candidate acquisition rule storage unit 23. A process of acquiring a candidate for a value (input value) to be set to 22 is executed.

入力値決定部33は、入力値候補取得部32によって取得された入力値の候補を出力する。入力値決定部33は、ユーザの操作に応じて、出力された入力値の候補を入力情報ファイル22に設定すべき値(つまり、入力値)として決定する。   The input value determination unit 33 outputs the input value candidates acquired by the input value candidate acquisition unit 32. The input value determining unit 33 determines the output value candidate to be set as a value (that is, an input value) to be set in the input information file 22 in accordance with a user operation.

入力情報反映部34は、入力値決定部33によって決定された入力値を入力情報ファイル22に設定(反映)する。   The input information reflecting unit 34 sets (reflects) the input value determined by the input value determining unit 33 in the input information file 22.

図3および図4を参照して、図2に示す入力情報ファイル22のデータ構造について説明する。上述したように、入力情報ファイル22には、アプリケーションにおいて用いられるテーブル毎のテーブル情報(つまり、複数のテーブル情報)が設定される。   The data structure of the input information file 22 shown in FIG. 2 will be described with reference to FIGS. As described above, table information (that is, a plurality of table information) for each table used in the application is set in the input information file 22.

入力情報ファイル22に設定されるテーブル情報の各々には、当該テーブル情報によって示されるテーブルの構造を定義するテーブル定義情報および当該テーブルと参照関係があるテーブル(参照先テーブル)についての情報(以下、参照先テーブル定義情報と表記)が含まれる。   Each piece of table information set in the input information file 22 includes table definition information that defines the structure of the table indicated by the table information, and information about a table (reference destination table) that has a reference relationship with the table (hereinafter referred to as a reference table). Reference table definition information).

ここでは、入力情報ファイル22には、第1および第2のテーブル情報を含む複数のテーブル情報が設定されているものとする。以下、第1のテーブル情報によって示されるテーブルを第1のテーブル、第2のテーブル情報によって示されるテーブルを第2のテーブルと称する。   Here, it is assumed that a plurality of table information including the first and second table information is set in the input information file 22. Hereinafter, the table indicated by the first table information is referred to as a first table, and the table indicated by the second table information is referred to as a second table.

図3は、入力情報ファイル22に設定されている第1のテーブル情報221のデータ構造の一例を示す。   FIG. 3 shows an example of the data structure of the first table information 221 set in the input information file 22.

図3に示す第1のテーブル情報221は、第1のテーブル定義情報221aおよび第1の参照先テーブル定義情報221bを含む。   The first table information 221 shown in FIG. 3 includes first table definition information 221a and first reference destination table definition information 221b.

第1のテーブル定義情報221aには、テーブル名およびテーブルID(の項目)が含まれる。テーブル名の項目には、第1のテーブルのテーブル名が設定される。テーブルIDの項目には、第1のテーブルを識別するためのテーブルID(テーブル識別情報)が設定される。   The first table definition information 221a includes a table name and a table ID (items thereof). In the table name item, the table name of the first table is set. In the table ID item, a table ID (table identification information) for identifying the first table is set.

また、第1のテーブル定義情報221aには、第1のテーブルを構成するカラム毎に、当該カラムのカラム名(論理名、物理名)、型、桁、位取、Not Null、主キー、外部キー、検索条件、一覧表示および排他制御(の項目)が含まれる。   The first table definition information 221a includes, for each column constituting the first table, the column name (logical name, physical name), type, digit, scale, Not Null, primary key, external key of the column. Key, search condition, list display and exclusive control (items) are included.

Not Nullの項目には、各カラムがNull(つまり、空)であるか否かを示す情報が設定される。主キーの項目には、各カラムが主キーであるか否かを示す情報(主キー情報)が設定される。外部キーの項目には、各カラムが外部キーであるか否かを示す情報が設定される。検索条件の項目には、各カラムが第1のテーブル情報によって示される第1のテーブルの参照時に検索条件として表示される項目(カラム)であるか否かを示す情報が設定される。一覧表示の項目には、各カラムが第1のテーブル情報によって示される第1のテーブルの参照時に一覧表示される項目(カラム)であるか否かを示す情報が設定される。また、排他制御の項目には、各第1のカラムが排他制御用のカラムであるか否かを示す情報(排他制御情報)が設定される。   Information indicating whether each column is Null (that is, empty) is set in the Not Null item. In the primary key item, information (primary key information) indicating whether each column is a primary key is set. In the foreign key item, information indicating whether each column is a foreign key is set. In the search condition item, information indicating whether each column is an item (column) displayed as a search condition when the first table indicated by the first table information is referenced is set. In the list display item, information indicating whether each column is an item (column) displayed as a list when referring to the first table indicated by the first table information is set. In the exclusive control item, information (exclusive control information) indicating whether each first column is a column for exclusive control is set.

第1の参照先テーブル定義情報221bには、第1のテーブルにおける外部キー毎に、当該外部キーの外部キー名、外部キー参照先テーブル、外部キー参照先構成列、参照時の表示形式および参照時の表示項目(の項目)が含まれる。   The first reference destination table definition information 221b includes, for each foreign key in the first table, the foreign key name of the foreign key, the foreign key reference destination table, the foreign key reference destination configuration column, the display format and reference at the time of reference. The display item of the hour is included.

外部キー名の項目には、第1のテーブルにおいて外部キーとして設定されているカラムのカラム名(物理名)が設定される。外部キー参照先テーブルの項目には、第1のテーブルにおける外部キーによって参照される参照先テーブル(以下、外部キー参照先テーブル)が設定される。外部キー参照先テーブルの項目には、名称およびID(物理名)の項目が含まれる。外部キー参照先テーブルの項目に含まれる名称の項目には、外部キー参照先テーブルのテーブル名が設定される。外部キー参照先テーブルの項目に含まれるIDの項目には、外部キー参照先テーブルを識別するためのテーブルIDが設定される。外部キー参照先構成列の項目には、外部キー参照先テーブル(の項目に設定されているテーブル)を構成する複数のカラムのうち当該テーブルにおいて主キーであるカラムのカラム名(物理名)が設定される。   In the item of foreign key name, a column name (physical name) of a column set as a foreign key in the first table is set. In the item of the foreign key reference destination table, a reference destination table (hereinafter referred to as a foreign key reference destination table) referred to by the foreign key in the first table is set. The items in the foreign key reference table include items of name and ID (physical name). The table name of the foreign key reference table is set in the item of the name included in the item of the foreign key reference table. In the item of ID included in the item of the foreign key reference destination table, a table ID for identifying the foreign key reference destination table is set. The item of the foreign key reference destination configuration column includes the column name (physical name) of the column that is the primary key in the table among the plurality of columns constituting the foreign key reference destination table (table set in the item). Is set.

参照時の表示形式の項目には、例えばアプリケーションで外部キー参照先テーブル(の項目に設定されているテーブル)が参照される際の表示形式が設定される。この参照時の表示形式(の項目に設定される表示形式)には、例えばチェックボックス、ラジオボタン、コンボボックス、リストボックスおよびポップアップが含まれる。   In the item of the display format at the time of reference, for example, the display format when the external key reference table (table set in the item) is referred to by the application is set. The reference display format (display format set in the item) includes, for example, a check box, a radio button, a combo box, a list box, and a popup.

参照時の表示項目の項目には、外部キー参照先テーブル(の項目に設定されているテーブル)が参照される際に表示される項目について設定される。参照時の表示項目の項目には、検索条件および一覧表示の項目が含まれる。参照時の表示項目の項目に含まれる検索条件の項目には、外部キー参照先テーブルが参照される際に検索条件として表示されるカラムのカラム名(物理名)等が設定される。参照時の表示項目の項目に含まれる一覧表示の項目には、外部キー参照先テーブルが参照される際に一覧表示されるカラムのカラム名(物理名)等が設定される。参照時の表示項目(に含まれる検索条件及び一覧表示)の項目は、参照時の表示形式の項目にポップアップが設定(指定)された場合に設定される。   The item displayed when referring to the foreign key reference table (table set in the item) is set in the item of the display item at the time of reference. The items of display items at the time of reference include search conditions and list display items. A column name (physical name) of a column displayed as a search condition when the foreign key reference table is referenced is set in the search condition item included in the display item item at the time of reference. A column name (physical name) of a column displayed as a list when the foreign key reference table is referenced is set in the list display item included in the display item item at the time of reference. The item of the display item at the time of reference (the search condition and the list display included) is set when a popup is set (specified) in the item of the display format at the time of reference.

図3に示す第1のテーブル情報221において、点線枠101に該当する項目(つまり、第1のテーブル定義情報221aに含まれるテーブル名、テーブルID、論理名、物理名、型、桁、位取、Not Null、主キー、検索条件、一覧表示および排他制御の項目)は、ユーザが設定する項目である。また、図3に示す第1のテーブル情報221において、太線枠102に該当する項目(つまり、第1のテーブル定義情報221aに含まれる外部キー、第1の参照先テーブル定義情報221bに含まれる外部キー名、外部キー参照先テーブル、外部キー参照先構成列、参照時の表示形式および参照時の表示項目の項目)は設定情報入力支援装置30において入力支援が行われる項目である。   In the first table information 221 shown in FIG. 3, the items corresponding to the dotted frame 101 (that is, the table name, table ID, logical name, physical name, type, digit, scale included in the first table definition information 221a). , Not Null, primary key, search condition, list display, and exclusive control items) are items set by the user. Further, in the first table information 221 shown in FIG. 3, items corresponding to the thick line frame 102 (that is, the external key included in the first table definition information 221a and the external included in the first reference table definition information 221b). The key name, foreign key reference table, foreign key reference destination configuration column, reference display format and reference display item) are items for which input support is performed in the setting information input support device 30.

図4は、入力情報ファイル22に設定されている第2のテーブル情報222のデータ構造の一例を示す。図4に示す第2のテーブル情報222は、第2のテーブル定義情報222aおよび第2の参照先テーブル定義情報222bを含む。   FIG. 4 shows an example of the data structure of the second table information 222 set in the input information file 22. The second table information 222 shown in FIG. 4 includes second table definition information 222a and second reference destination table definition information 222b.

第2のテーブル定義情報222aには、上記した第1のテーブル定義情報221aと同様に、テーブル名およびテーブルID(の項目)が含まれる。また、第2のテーブル定義情報222aには、第2のテーブルを構成するカラム毎に、当該カラムのカラム名(論理名、物理名)、型、桁、位取、Not Null、主キー、外部キー、検索条件、一覧表示および排他制御(の項目)が含まれる。なお、これらの項目については、上記した第1のテーブル定義情報221aにおいて説明した通りであるため、その詳しい説明を省略する。   The second table definition information 222a includes a table name and a table ID (items) as in the first table definition information 221a. In the second table definition information 222a, for each column constituting the second table, the column name (logical name, physical name), type, digit, scale, Not Null, primary key, external key Key, search condition, list display and exclusive control (items) are included. Since these items are as described in the first table definition information 221a, detailed description thereof is omitted.

第2の参照先テーブル定義情報222bには、上記した第1の参照先テーブル定義情報221bと同様に、第2のテーブルにおける外部キー毎に、当該外部キーの外部キー名、外部キー参照先テーブル、外部キー参照先構成列、参照時の表示形式および参照時の表示項目(の項目)が含まれる。なお、これらの項目については、上記した第1の参照先テーブル定義情報222bにおいて説明した通りであるため、その詳しい説明を省略する。   The second reference destination table definition information 222b includes, for each foreign key in the second table, the foreign key name of the foreign key, the foreign key reference destination table, as in the first reference destination table definition information 221b. , Foreign key reference destination configuration column, reference display format and reference display item (items). Since these items are as described in the first reference table definition information 222b described above, detailed description thereof is omitted.

また、図3に示す第1のテーブル情報221と同様に、図4に示す第2のテーブル情報222において、点線枠101に該当する項目はユーザが設定する項目であり、太線枠102は設定情報入力支援装置30において入力支援が行われる項目である。   Similarly to the first table information 221 shown in FIG. 3, in the second table information 222 shown in FIG. 4, the items corresponding to the dotted frame 101 are items set by the user, and the thick line frame 102 is the setting information. This is an item for which input support is performed in the input support device 30.

本実施形態においては、図3に示す第1のテーブル情報221および図4に示す第2のテーブル情報222(を含む複数のテーブル情報)の点線枠101に該当する項目には、予めユーザによって値が設定(入力)されていることを前提としている。   In the present embodiment, items corresponding to the dotted frame 101 of the first table information 221 shown in FIG. 3 and the second table information 222 (including a plurality of table information) shown in FIG. It is assumed that is set (input).

なお、上記したように入力情報ファイル22に設定されるテーブル情報に含まれる参照先テーブル定義情報において、参照時の表示項目に含まれる検索条件および一覧表示の項目には例えばカラム名等が設定(指定)されるが、当該設定の仕方によって外部キー参照先テーブルについて複数通りの内容を表示させることが可能となる。   In the reference table definition information included in the table information set in the input information file 22 as described above, for example, a column name or the like is set in the search condition and list display item included in the display item at the time of reference ( However, depending on the setting method, it is possible to display a plurality of contents for the foreign key reference table.

ここで、図5〜図10を参照して、外部キー参照先テーブルの参照時の画面(以下、参照画面と表記)について具体的に説明する。   Here, with reference to FIGS. 5 to 10, a screen when referring to the foreign key reference table (hereinafter referred to as a reference screen) will be specifically described.

なお、外部キー参照先テーブルは、上記した図4に示す第2のテーブル情報222によって示される第2のテーブルであるものとして説明する。   Note that the foreign key reference table is assumed to be the second table indicated by the second table information 222 shown in FIG. 4 described above.

まず、図5に示すように、参照先テーブル定義情報に含まれる参照時の表示項目の項目(に含まれる検索条件および一覧表示の項目)が空欄のままである場合を想定する。   First, as shown in FIG. 5, a case is assumed where the items of the display items at the time of reference included in the reference table definition information (the search conditions and the items of the list display included) remain blank.

この場合、図6に示すように、参照画面300に設けられている検索条件領域301には、上記した図4に示す第2のテーブル定義情報222aに含まれる検索条件の項目において「表示」が設定されているカラムの論理名(カラム名)がラベルとして表示される。ここでは、参照画面300に設けられている検索条件領域301には、検索条件の項目に「表示」が設定されているカラムの論理名である「部署番号」、「部署名」および「所在地」がラベルとして表示されている。   In this case, as shown in FIG. 6, the search condition area 301 provided on the reference screen 300 has “display” in the search condition item included in the second table definition information 222a shown in FIG. The logical name (column name) of the set column is displayed as a label. Here, in the search condition area 301 provided in the reference screen 300, “department number”, “department name”, and “location”, which are logical names of columns in which “display” is set in the search condition item, are displayed. Is displayed as a label.

また、図6に示すように、参照画面300に設けられている一覧表示領域302には、上記した図4に示す第2のテーブル定義情報222aに含まれる一覧表示の項目において「表示」が設定されているカラムの論理名(カラム名)がラベルとして表示される。ここでは、参照画面300に設けられている一覧表示領域302には、一覧表示の項目に「表示」が設定されているカラムの論理名である「部署番号」、「部署名」および「所在地」がラベルとして表示されている。   Further, as shown in FIG. 6, “display” is set in the list display area 302 included in the above-described second table definition information 222a shown in FIG. 4 in the list display area 302 provided in the reference screen 300. The column's logical name (column name) is displayed as a label. Here, in the list display area 302 provided in the reference screen 300, “department number”, “department name”, and “location”, which are logical names of columns in which “display” is set in the list display item, are displayed. Is displayed as a label.

次に、図7に示すように、参照先テーブル定義情報に含まれる参照時の表示項目の項目(に含まれる検索条件および一覧表示の項目)にカラム名(物理名)が設定された場合を想定する。図7に示す例では、検索条件の項目には「deptno」および「dname」が設定されており、一覧表示の項目には「dname」および「loc」が設定されている。   Next, as shown in FIG. 7, when a column name (physical name) is set in the display item item (reference item and list display item) included in the reference table definition information at the time of reference. Suppose. In the example illustrated in FIG. 7, “deptno” and “dname” are set in the search condition items, and “dname” and “loc” are set in the list display items.

この場合、図8に示すように、参照画面310に設けられている検索条件領域311には、上記した図4に示す第2のテーブル定義情報222aに含まれる検索条件の項目において「表示」が設定されているカラムであって図7に示す参照先テーブル定義情報の参照時の表示項目の項目に含まれる検索条件の項目に物理名が設定されたカラムの論理名がラベルとして表示される。ここでは、参照先テーブル定義情報の参照時の表示項目の項目に含まれる検索条件の項目には「deptno」および「dname」が設定されているため、参照画面310に設けられている検索条件領域311には、物理名が当該「deptno」および「dname」であるカラムの論理名である「部署番号」および「部署名」がラベルとして表示されている。   In this case, as shown in FIG. 8, in the search condition area 311 provided on the reference screen 310, “display” is displayed in the search condition item included in the second table definition information 222a shown in FIG. The logical name of the column in which the physical name is set in the item of the search condition included in the item of the display condition included in the item of the display item when referring to the reference table definition information shown in FIG. 7 is displayed as a label. Here, since “deptno” and “dname” are set in the search condition items included in the display item items when referring to the reference table definition information, the search condition area provided in the reference screen 310 In 311, “department number” and “department name” which are logical names of columns whose physical names are “deptno” and “dname” are displayed as labels.

また、図8に示すように、参照画面310に設けられている一覧表示領域312には、上記した図4に示す第2のテーブル定義情報222aに含まれる一覧表示の項目において「表示」が設定されているカラムであって図7に示す参照先テーブル定義情報の参照時の表示項目の項目に含まれる一覧表示の項目に物理名が設定されたカラムの論理名がラベルとして表示される。ここでは、参照先テーブル定義情報の参照時の表示項目の項目に含まれる一覧表示の項目には「dname」および「loc」が設定されているため、参照画面310に設けられている一覧表示領域312には、物理名が当該「dname」および「loc」であるカラムの論理名である「部署名」および「所在地」がラベルとして表示されている。   Also, as shown in FIG. 8, “display” is set in the list display item included in the second table definition information 222a shown in FIG. 4 in the list display area 312 provided in the reference screen 310. The logical name of the column in which the physical name is set in the list display item included in the item of the display item at the time of referring to the reference destination table definition information shown in FIG. 7 is displayed as a label. Here, since “dname” and “loc” are set in the list display items included in the display item items when referring to the reference destination table definition information, the list display area provided in the reference screen 310 In 312, “Department name” and “Location”, which are logical names of columns whose physical names are “dname” and “loc”, are displayed as labels.

次に、図9に示すように、参照先テーブル定義情報の参照時の表示項目の項目に含まれる検索条件の項目に「なし」が設定された場合を想定する。   Next, as shown in FIG. 9, it is assumed that “none” is set in the search condition item included in the display item item when referring to the reference table definition information.

この場合、図10に示すように、参照画面320には、検索条件領域は設けられず、一覧表示領域321のみが設けられる。この参照画面320に設けられた一覧表示領域321には、上記した図6に示す一覧表示領域302と同様に、図4に示す第2のテーブル定義情報222aに含まれる一覧表示の項目において「表示」が設定されているカラムの論理名(ここでは、「部署番号」、「部署名」および「所在地」)が表示される。   In this case, as shown in FIG. 10, the reference screen 320 is not provided with a search condition area, and only a list display area 321 is provided. In the list display area 321 provided in the reference screen 320, as in the list display area 302 shown in FIG. 6 described above, “display” is displayed in the list display item included in the second table definition information 222a shown in FIG. ”Is displayed in the column logical name (in this case,“ department number ”,“ department name ”, and“ location ”).

図11は、図2に示す入力値候補取得ルール保持部23に保持されているルールのデータ構造の一例を示す。入力値候補取得ルール保持部23に保持されているルールには、以下に説明する例えば第1〜第5のルールが含まれる。   FIG. 11 shows an example of the data structure of the rules held in the input value candidate acquisition rule holding unit 23 shown in FIG. The rules held in the input value candidate acquisition rule holding unit 23 include, for example, first to fifth rules described below.

第1のルールは、外部キーの項目に設定すべき値の候補(外部キーの入力値の候補)を取得するために用いられる外部キー候補取得ルールである。第2のルールは、外部キー参照先テーブルの項目に設定すべき値の候補(外部キー参照先テーブルの入力値の候補)を取得するために用いられる外部キー参照先テーブル候補取得ルールである。第3のルールは、外部キー参照先構成列の項目に設定すべき値の候補(外部キー参照先構成列の入力値の候補)を取得するために用いられる外部キー参照先構成列候補取得ルールである。第4のルールは、参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)を取得するために用いられる参照時の表示形式候補取得ルールである。第5のルールは、参照時の表示項目の項目に設定すべき値の候補(参照時の表示項目の入力値の候補)を取得するために用いられる参照時の表示項目候補取得ルールである。   The first rule is a foreign key candidate acquisition rule used to acquire a value candidate (foreign key input value candidate) to be set in the foreign key item. The second rule is a foreign key reference destination table candidate acquisition rule used to acquire a value candidate (candidate of an input value of the foreign key reference destination table) to be set in an item of the foreign key reference destination table. The third rule is a foreign key reference destination configuration column candidate acquisition rule used to acquire a value candidate to be set in an item of the foreign key reference destination configuration column (a candidate for an input value of the foreign key reference destination configuration column). It is. The fourth rule is a display format candidate acquisition rule at the time of reference used to acquire a value candidate (candidate of an input value of a display format at the time of reference) to be set in the item of the display format at the time of reference. The fifth rule is a display item candidate acquisition rule at the time of reference used for acquiring a value candidate (candidate of an input value of a display item at the time of reference) to be set to the item of the display item at the time of reference.

第1のルールは、図11に示すルールにおける1行目〜3行目に記述されている。図11に示すルールの1行目には第1のルールのルール名(外部キー候補取得ルール)が記述されており、2行目および3行目には当該第1のルールの内容が記述されている。   The first rule is described in the first to third lines in the rule shown in FIG. The rule name (foreign key candidate acquisition rule) of the first rule is described in the first line of the rule shown in FIG. 11, and the contents of the first rule are described in the second and third lines. ing.

なお、図11に示すルールの2行目(つまり、第1のルール)によれば、対象のカラムが主キーおよび排他制御用のカラムでない場合、当該対象のカラムから構成されるテーブルにおいて主キーであるカラムを外部キー候補とすることが記述されている。また、図11に示すルールの3行目(つまり、第1のルール)によれば、対象のカラムが主キーおよび排他制御用のカラムでない場合、当該対象のカラムから構成されるテーブル以外のテーブルにおいて主キーであるカラムであって、かつ、当該対象のカラムとカラム名(物理名)が同一であるカラムを外部キーの候補とすることが記述されている。   According to the second line of the rule shown in FIG. 11 (that is, the first rule), when the target column is not the primary key and the column for exclusive control, the primary key in the table including the target column is displayed. Is described as a foreign key candidate. Further, according to the third line of the rule shown in FIG. 11 (that is, the first rule), if the target column is not the primary key and exclusive control column, a table other than the table composed of the target column. Describes that a column that is a primary key and that has the same column name (physical name) as the target column is a candidate for a foreign key.

第2のルールは、図11に示すルールにおける4行目および5行目に記述されている。図11に示すルールの4行目には第2のルールのルール名(外部キー参照先テーブル候補取得ルール)が記述されており、5行目には当該第2のルールの内容が記述されている。   The second rule is described in the fourth and fifth lines in the rule shown in FIG. The rule name (foreign key reference destination table candidate acquisition rule) of the second rule is described in the fourth line of the rule shown in FIG. 11, and the contents of the second rule are described in the fifth line. Yes.

なお、図11に示すルールの5行目(つまり、第2のルール)によれば、対象の外部キーの外部キー名(の項目に設定されている値)をカラム名(物理名)とするカラム(つまり、当該外部キー名と同一のカラム名を持つカラム)であって、当該カラムが主キーであるテーブルを外部キー参照先テーブルの候補とすることが記述されている。   Note that, according to the fifth line of the rule shown in FIG. 11 (that is, the second rule), the column name (physical name) is the foreign key name (value set in the item) of the target foreign key. It is described that a table (that is, a column having the same column name as the foreign key name) and the column of which is the primary key is a candidate for the foreign key reference table.

第3のルールは、図11に示すルールにおける6行目および7行目に記述されている。図11に示すルールの6行目には第3のルールのルール名(外部キー参照先構成列候補取得ルール)が記述されており、7行目には当該第3のルールの内容が記述されている。   The third rule is described in the sixth and seventh lines in the rule shown in FIG. The rule name of the third rule (foreign key reference destination configuration column candidate acquisition rule) is described in the sixth line of the rule shown in FIG. 11, and the contents of the third rule are described in the seventh line. ing.

なお、図11に示すルールの7行目(つまり、第3のルール)によれば、対象の外部キーによって参照されるテーブル(つまり、当該対象の外部キーの外部キー参照先テーブルの項目に設定されているテーブル)において主キーであるカラムを外部キー参照先構成列の候補とすることが記述されている。   Note that, according to the seventh line of the rule shown in FIG. 11 (that is, the third rule), the table referred to by the target foreign key (that is, set in the item of the foreign key reference table of the target foreign key) In this table, the column that is the primary key is described as a foreign key reference destination constituent column candidate.

第4のルールは、図11に示すルールにおける8行目〜10行目に記述されている。図11に示すルールの8行目には第4のルールのルール名(参照時の表示形式候補取得ルール)が記述されており、9行目および10行目には当該第4のルールの内容が記述されている。   The fourth rule is described in the 8th to 10th lines in the rule shown in FIG. The rule name of the fourth rule (display format candidate acquisition rule at the time of reference) is described in the eighth line of the rule shown in FIG. 11, and the contents of the fourth rule are described in the ninth and tenth lines. Is described.

なお、図11に示すルールの9行目(つまり、第4のルール)によれば、対象の外部キーの外部キー参照先構成列の項目に設定されているカラム(つまり、当該外部キー参照先構成列に物理名が設定されているカラム)の桁数が1の場合にはチェックボックス、ラジオボタン、コンボボックスおよびリストボックスを参照時の表示形式の候補とすることが記述されている。また、図11に示すルールの10行目(つまり、第4のルール)によれば、対象の外部キーの外部キー参照先構成列の項目に設定されているカラムの桁数が2以上の場合にはポップアップを参照時の表示形式の候補とすることが記述されている。   According to the ninth line of the rule shown in FIG. 11 (that is, the fourth rule), the column (that is, the foreign key reference destination) set in the item of the foreign key reference destination configuration column of the target foreign key. It is described that when the number of digits of a column in which a physical name is set in the component column is 1, a check box, a radio button, a combo box, and a list box are candidates for a display format at the time of reference. In addition, according to the tenth line of the rule shown in FIG. 11 (that is, the fourth rule), when the number of columns in the column set in the foreign key reference destination configuration column of the target foreign key is 2 or more Describes that a popup is a candidate for a display format at the time of reference.

第5のルールは、図11に示すルールにおける11行目および12行目に記述されている。図11に示すルールの11行目には第5のルールのルール名(参照時の表示項目候補取得ルール)が記述されており、12行目には当該第5のルールの内容が記述されている。   The fifth rule is described in the 11th and 12th lines in the rule shown in FIG. The rule name of the fifth rule (display item candidate acquisition rule at the time of reference) is described in the eleventh line of the rule shown in FIG. 11, and the contents of the fifth rule are described in the twelfth line. Yes.

なお、図11に示すルールの12行目(つまり、第5のルール)によれば、対象の外部キーの外部キー参照先テーブルの項目に設定されているテーブル(外部キー参照先テーブル)を構成する複数のカラムのうち排他制御用のカラムでないカラムを参照時の表示項目の候補とすることが記述されている。   In addition, according to the 12th line of the rule shown in FIG. 11 (that is, the fifth rule), the table (foreign key reference table) set in the item of the foreign key reference table of the target foreign key is configured. It is described that a column that is not a column for exclusive control among a plurality of columns to be used is a display item candidate at the time of reference.

次に、図12のフローチャートを参照して、本実施形態に係る設定情報入力支援装置30の処理手順について説明する。   Next, a processing procedure of the setting information input support device 30 according to the present embodiment will be described with reference to the flowchart of FIG.

入力値候補取得部32は、上述した入力値候補取得ルール保持部23に保持されているルールに含まれる第1〜第5のルールの各々を順に対象ルールとして以下のステップS1以降の処理を実行する。   The input value candidate acquisition unit 32 executes the processes from step S1 onward in the order of each of the first to fifth rules included in the rules held in the input value candidate acquisition rule holding unit 23 described above. To do.

入力情報取得部31は、入力情報ファイル22に設定されている複数のテーブル情報(の各項目に設定されている入力情報)を、当該入力情報ファイル22から取得する(ステップS1)。   The input information acquisition unit 31 acquires a plurality of table information (input information set for each item) set in the input information file 22 from the input information file 22 (step S1).

次に、入力値候補取得部32は、対象ルール(例えば、第1のルール)を用いて、入力情報ファイル22に設定すべき値(入力値)の候補を取得する処理(以下、入力値候補取得処理と表記)を実行する(ステップS2)。なお、ステップS2において実行される入力値候補取得処理の詳細については後述する。   Next, the input value candidate acquisition unit 32 uses a target rule (for example, the first rule) to acquire a value (input value) candidate to be set in the input information file 22 (hereinafter, input value candidate). Acquisition process) (step S2). Details of the input value candidate acquisition process executed in step S2 will be described later.

次に、ステップS2の入力値候補取得処理において入力値の候補が出力されたか否かが判定される(ステップS3)。   Next, it is determined whether or not an input value candidate has been output in the input value candidate acquisition process in step S2 (step S3).

入力値の候補が出力されたと判定された場合(ステップS3のYES)、入力値決定部33は、当該入力値の候補をユーザに対して提示する。この場合、ユーザは、入力値決定部33によって提示された入力値の候補の中から入力値(つまり、入力情報ファイル22に設定すべき値)を選択(指定)することができる。   When it is determined that an input value candidate has been output (YES in step S3), the input value determination unit 33 presents the input value candidate to the user. In this case, the user can select (specify) an input value (that is, a value to be set in the input information file 22) from among the input value candidates presented by the input value determining unit 33.

入力値決定部33は、ユーザの操作に応じて、ユーザに対して提示された入力値の候補の中から入力値を決定する(ステップS4)。換言すれば、入力値決定部33は、ユーザに対して提示された入力値の候補のうち、当該ユーザによって指定された入力値の候補を入力値として決定する。   The input value determining unit 33 determines an input value from among input value candidates presented to the user in accordance with the user operation (step S4). In other words, the input value determining unit 33 determines an input value candidate designated by the user as an input value among the input value candidates presented to the user.

入力情報反映部34は、入力値決定部33によって決定された入力値を入力情報ファイル22に反映(設定)する(ステップS5)。   The input information reflecting unit 34 reflects (sets) the input value determined by the input value determining unit 33 in the input information file 22 (step S5).

次に、第1〜第5のルールの全てを対象ルールとして上記したステップS1以降の処理が実行されたか否かが判定される(ステップS6)。   Next, it is determined whether or not the processing after step S1 described above has been executed with all the first to fifth rules as target rules (step S6).

全てのルールを対象ルールとして処理が実行されていないと判定された場合(ステップS6のNO)、ステップS1に戻って処理が繰り返される。   If it is determined that the process is not executed with all the rules as target rules (NO in step S6), the process returns to step S1 and is repeated.

この場合、対象ルールとされていない次のルールを対象ルールとしてステップS1以降の処理が実行される。具体的には、第1〜第5のルールを順に対象ルールとして処理が実行されるため、例えば対象ルールが第1のルールであった場合には、次は、第2のルールを対象ルールとしてステップS1以降の処理が実行される。   In this case, the process after step S1 is executed by setting the next rule that is not the target rule as the target rule. Specifically, since the processing is executed with the first to fifth rules as target rules in order, for example, when the target rule is the first rule, the next rule is the second rule as the target rule. The process after step S1 is performed.

このように処理が繰り返されることで、第1〜第5のルールの各々を用いて入力値候補取得処理が実行される。   By repeating the process in this manner, the input value candidate acquisition process is executed using each of the first to fifth rules.

一方、全てのルールについて処理が実行されたと判定された場合(ステップS6のYES)、処理が終了される。   On the other hand, when it is determined that the process has been executed for all the rules (YES in step S6), the process is terminated.

また、上記したステップS3において入力値の候補が出力されていないと判定された場合、ステップS6の処理が実行される。   If it is determined in step S3 that no input value candidate is output, the process in step S6 is executed.

上記したように、設定情報入力支援装置30の処理においては、第1〜第5のルールの各々を用いて入力値候補取得処理(ステップS2の処理)が実行される。この入力値候補取得処理は、用いられるルール(つまり、第1〜第5のルール)の内容に応じて異なる。   As described above, in the process of the setting information input support device 30, the input value candidate acquisition process (the process of step S2) is executed using each of the first to fifth rules. This input value candidate acquisition process differs depending on the contents of the rules used (that is, the first to fifth rules).

なお、第1〜第5のルールを順に用いて入力候補取得処理が実行されると、入力情報ファイル22に設定されているテーブル情報(に含まれるテーブル定義情報および参照先テーブル定義情報)の各々において、外部キー(外部キー名)、外部キー参照先テーブル、外部キー参照先構成列、参照時の表示形式および参照時の表示項目の順に値が設定されているか否かがチェックされる。   When the input candidate acquisition process is executed using the first to fifth rules in order, each of the table information (table definition information and reference table definition information included) set in the input information file 22 , It is checked whether or not values are set in the order of the foreign key (foreign key name), the foreign key reference destination table, the foreign key reference destination constituent column, the reference display format, and the reference display item.

ここで、第1〜第5のルールを用いた場合のそれぞれの入力値候補取得処理について詳細に説明する。   Here, each input value candidate acquisition process when the first to fifth rules are used will be described in detail.

以下の説明では、第1のルールを用いた場合の入力値候補取得処理を第1の入力値候補取得処理、第2のルールを用いた場合の入力値候補取得処理を第2の入力値候補取得処理、第3のルールを用いた場合の入力値候補取得処理を第3の入力値候補取得処理、第4のルールを用いた場合の入力値候補取得処理を第4の入力値候補取得処理、第5のルールを用いた場合の入力値候補取得処理を第5の入力値候補取得処理と称する。   In the following description, the input value candidate acquisition process when the first rule is used is the first input value candidate acquisition process, and the input value candidate acquisition process when the second rule is used is the second input value candidate. The acquisition process, the input value candidate acquisition process when the third rule is used, the third input value candidate acquisition process, and the input value candidate acquisition process when the fourth rule is used are the fourth input value candidate acquisition process. The input value candidate acquisition process when the fifth rule is used is referred to as a fifth input value candidate acquisition process.

また、第1〜第5の入力値候補取得処理の説明においては、便宜的に、入力情報ファイル22には複数のテーブル情報として例えば第1および第2のテーブル情報が設定されているものとして説明する。この場合、第1および第2のテーブル情報によって示されるテーブルをそれぞれ第1および第2のテーブルと称する。また、第1のテーブル情報に含まれるテーブル定義情報を第1のテーブル定義情報、当該第1のテーブル情報に含まれる参照先テーブル定義情報を第1の参照先テーブル定義情報と称する。更に、第2のテーブル情報に含まれるテーブル定義情報を第2のテーブル定義情報、当該第2のテーブル情報に含まれる参照先テーブル定義情報を第2の参照先テーブル定義情報と称する。   In the description of the first to fifth input value candidate acquisition processes, for the sake of convenience, it is assumed that, for example, first and second table information are set as a plurality of table information in the input information file 22. To do. In this case, the tables indicated by the first and second table information are referred to as first and second tables, respectively. The table definition information included in the first table information is referred to as first table definition information, and the reference destination table definition information included in the first table information is referred to as first reference destination table definition information. Further, table definition information included in the second table information is referred to as second table definition information, and reference destination table definition information included in the second table information is referred to as second reference destination table definition information.

なお、入力情報ファイル22には複数のテーブル情報として第1および第2のテーブル情報が設定されているため、上述した図12に示すステップS1においては、入力情報ファイル22に設定されている第1および第2のテーブル情報(の各項目に設定されている値)が入力情報取得部31によって取得されたものとする。   Since the first and second table information are set as a plurality of table information in the input information file 22, the first information set in the input information file 22 in step S1 shown in FIG. 12 described above. It is assumed that the input information acquisition unit 31 acquires the second table information (values set in the respective items).

まず、図13および図14のフローチャートを参照して、第1の入力値候補取得処理の処理手順について説明する。   First, the processing procedure of the first input value candidate acquisition process will be described with reference to the flowcharts of FIGS. 13 and 14.

第1の入力値候補取得処理は、上記したように第1のルール(外部キー候補取得ルール)を用いた場合の入力値候補取得処理である。この第1の入力値候補取得処理においては、第1のルールに基づいて、入力情報ファイル22に設定されているテーブル情報によって示されるテーブルを構成する複数のカラムの中から当該テーブルにおいて外部キーとして設定すべきカラムの候補(外部キーの入力値の候補)が取得される。   The first input value candidate acquisition process is an input value candidate acquisition process when the first rule (foreign key candidate acquisition rule) is used as described above. In this first input value candidate acquisition process, as a foreign key in the table among a plurality of columns constituting the table indicated by the table information set in the input information file 22 based on the first rule. Column candidates to be set (foreign key input value candidates) are acquired.

まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報(の各項目に設定されている値)を、当該入力情報取得部31から取得する(ステップS11)。この第1および第2のテーブル情報の各々には、上述したようにテーブル定義情報および参照先テーブル定義情報が含まれる。以下、第1のテーブル情報に含まれるテーブル定義情報を第1のテーブル定義情報、当該第1のテーブル情報に含まれる参照先テーブル定義情報を第1の参照先テーブル定義情報と称する。また、第2のテーブル情報に含まれるテーブル定義情報を第2のテーブル定義情報、当該第2のテーブル情報に含まれる参照先テーブル定義情報を第2の参照先テーブル定義情報と称する。   First, the input value candidate acquisition unit 32 acquires the first and second table information acquired by the input information acquisition unit 31 (values set in the respective items) from the input information acquisition unit 31 ( Step S11). Each of the first and second table information includes table definition information and reference destination table definition information as described above. Hereinafter, the table definition information included in the first table information is referred to as first table definition information, and the reference destination table definition information included in the first table information is referred to as first reference destination table definition information. Further, the table definition information included in the second table information is referred to as second table definition information, and the reference destination table definition information included in the second table information is referred to as second reference destination table definition information.

入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第1のルール(外部キー候補取得ルール)を取得する(ステップS12)。以下に説明するステップS13〜S18の処理は、この第1のルールに基づいて実行される。なお、第1のルールの内容については上述した図11において説明した通りであるため、ここでは詳しい説明を省略する。   The input value candidate acquisition unit 32 acquires a first rule (foreign key candidate acquisition rule) included in the rules held in the input value candidate acquisition rule holding unit 23 (step S12). The processes in steps S13 to S18 described below are executed based on the first rule. Since the contents of the first rule are as described in FIG. 11 described above, detailed description thereof is omitted here.

次に、入力値候補取得部32は、ステップS11において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルを構成するカラムの各々について以下のステップS13以降の処理を実行する。以下、この処理の対象となるカラムを対象カラムとする。つまり、対象カラムとは、ステップS1において取得されたテーブル情報によって示されるテーブルを構成する複数のカラムのうちの1つのカラムである。ここでは、ステップS11において取得された第1および第2のテーブル情報のうちの第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つが対象カラムであるものとする。   Next, the input value candidate acquisition unit 32 performs the following processing after step S13 for each of the columns constituting the table indicated by the table information acquired in step S11 (here, the first and second table information). Execute. Hereinafter, the column that is the target of this processing is the target column. That is, the target column is one column among a plurality of columns constituting the table indicated by the table information acquired in step S1. Here, it is assumed that one of the plurality of columns constituting the first table indicated by the first table information among the first and second table information acquired in step S11 is the target column. .

入力値候補取得部32は、第1のテーブル情報に含まれる第1のテーブル定義情報に含まれる対象カラムの外部キー(の項目)がnullであるか否かを判定する(ステップS13)。   The input value candidate acquisition unit 32 determines whether the foreign key (item) of the target column included in the first table definition information included in the first table information is null (step S13).

対象カラムの外部キーがnullであると判定された場合(ステップS13のYES)、入力値候補取得部32は、第1のテーブル情報に含まれる第1のテーブル定義情報に含まれる対象カラムの主キー(の項目)を参照して、当該対象カラムが第1のテーブルにおいて主キーであるか否かを判定する(ステップS14)。この場合、第1のテーブル定義情報に含まれる対象カラムの主キーの項目がnullであれば当該対象カラムが主キーでないと判定され、当該対象カラムの主キーの項目に「○」が設定されていれば当該対象カラムが主キーであると判定される。   When it is determined that the foreign key of the target column is null (YES in step S13), the input value candidate acquisition unit 32 selects the main column of the target column included in the first table definition information included in the first table information. Referring to the key (item), it is determined whether or not the target column is a primary key in the first table (step S14). In this case, if the primary key item of the target column included in the first table definition information is null, it is determined that the target column is not the primary key, and “O” is set in the primary key item of the target column. If so, it is determined that the target column is a primary key.

対象カラムが主キーでないと判定された場合(ステップS14のNO)、入力値候補取得部32は、第1のテーブル情報に含まれる第1のテーブル定義情報に含まれる対象カラムの排他制御(の項目)を参照して、当該対象カラムが第1のテーブルにおいて排他制御用のカラムであるか否かを判定する(ステップS15)。この場合、第1のテーブル定義情報に含まれる対象カラムの排他制御の項目がnullであれば当該対象カラムが排他制御用のカラムでないと判定され、当該対象カラムの排他制御の項目に「○」が設定されていれば当該対象カラムが排他制御用のカラムであると判定される。   When it is determined that the target column is not the primary key (NO in step S14), the input value candidate acquisition unit 32 performs exclusive control (of the target column included in the first table definition information included in the first table information). Referring to (Item), it is determined whether or not the target column is a column for exclusive control in the first table (step S15). In this case, if the exclusive control item of the target column included in the first table definition information is null, it is determined that the target column is not an exclusive control column, and “exclusive” is displayed in the exclusive control item of the target column. If is set, it is determined that the target column is a column for exclusive control.

対象カラムが排他制御用のカラムでないと判定された場合(ステップS15のNO)、入力値候補取得部32は、第1のテーブル情報に含まれる第1のテーブル定義情報に基づいて、第1の外部キー候補特定処理を実行する(ステップS16)。   When it is determined that the target column is not a column for exclusive control (NO in step S15), the input value candidate acquisition unit 32 performs the first process based on the first table definition information included in the first table information. Foreign key candidate identification processing is executed (step S16).

この第1の外部キー候補特定処理では、入力値候補取得部32は、第1のテーブル定義情報に含まれる主キーの項目に設定されている値(主キー情報)に基づいて、対象カラムから構成される第1のテーブルにおいて主キーであるカラムを検索する。この場合、入力値候補取得部32は、第1のテーブル定義情報に含まれる主キーの項目を参照して第1のテーブルを構成するカラムの各々が主キーであるか否かを判定することによって、検索処理を実行する。入力値候補取得部32は、検索されたカラムを第1のテーブルにおける外部キーの候補として特定する。   In the first foreign key candidate specifying process, the input value candidate acquiring unit 32 starts from the target column based on the value (primary key information) set in the primary key item included in the first table definition information. A column that is a primary key is searched in the first table to be configured. In this case, the input value candidate acquisition unit 32 refers to the primary key item included in the first table definition information to determine whether each of the columns constituting the first table is a primary key. The search process is executed by The input value candidate acquisition unit 32 specifies the searched column as a foreign key candidate in the first table.

次に、入力値候補取得部32は、第1および第2のテーブル情報に含まれる第1および第2のテーブル定義情報に基づいて、第2の外部キー候補特定処理を実行する(ステップS17)。   Next, the input value candidate acquisition unit 32 executes a second foreign key candidate specifying process based on the first and second table definition information included in the first and second table information (step S17). .

この第2の外部キー候補取得処理では、入力値候補取得部32は、対象カラムから構成される第1のテーブル以外の他のテーブル(ここでは、第2のテーブル)において主キーであるカラムを検索する。この場合、入力値候補取得部32は、第2のテーブル情報に含まれる第2のテーブル定義情報に含まれる主キーの項目に設定されている値(主キー情報)に基づいて第2のテーブルを構成するカラムの各々が主キーであるか否かを判定することによって、検索処理を実行する。入力値候補取得部32は、この検索処理によって、第2のテーブルにおいて主キーであるカラムを特定する。次に、入力値候補取得部32は、第1および第2のテーブル定義情報に含まれる物理名(の項目)を参照して、対象カラムの物理名および特定されたカラム(第2のテーブルにおいて主キーであるカラム)の物理名が同一であるか否かを判定する。入力値候補取得部32は、対象カラムの物理名および第2のテーブルにおいて主キーであるカラムの物理名が同一であると判定された場合、当該第2のテーブルにおいて主キーであるカラムを第1のテーブルにおける外部キーの候補として特定する。   In the second foreign key candidate acquisition process, the input value candidate acquisition unit 32 selects a column that is a primary key in another table (here, the second table) other than the first table including the target columns. Search for. In this case, the input value candidate acquisition unit 32 uses the second table based on the value (primary key information) set in the primary key item included in the second table definition information included in the second table information. The search processing is executed by determining whether or not each of the columns constituting the key is a primary key. The input value candidate acquisition unit 32 specifies the column that is the primary key in the second table by this search process. Next, the input value candidate acquisition unit 32 refers to the physical name (items) included in the first and second table definition information, and determines the physical name of the target column and the identified column (in the second table). It is determined whether or not the physical name of the column that is the primary key is the same. When it is determined that the physical name of the target column and the physical name of the column that is the primary key in the second table are the same, the input value candidate acquisition unit 32 determines the column that is the primary key in the second table. As a candidate for a foreign key in one table.

上記したように第1および第2の外部キー候補特定処理が実行されると、入力値候補取得部32は、当該第1および第2の外部キー候補特定処理において特定されたカラム(の物理名)を、第1のテーブルにおける外部キーとして設定すべきカラムの候補(つまり、外部キーの入力値の候補)として取得する(ステップS18)。   As described above, when the first and second foreign key candidate specifying processes are executed, the input value candidate acquiring unit 32 determines the physical name of the column specified in the first and second foreign key candidate specifying processes. ) As a column candidate to be set as a foreign key in the first table (that is, a candidate for the input value of the foreign key) (step S18).

なお、上記したステップS14において対象カラムが主キーであると判定された場合およびステップS15において対象カラムが排他制御用のカラムであると判定された場合、ステップS16〜S18の処理は実行されない。   If it is determined in step S14 that the target column is a primary key, and if it is determined in step S15 that the target column is a column for exclusive control, the processes in steps S16 to S18 are not executed.

次に、入力値候補取得部32は、ステップS11において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルを構成する全てのカラムについて上記したステップS13以降の処理が実行されたか否かを判定する(ステップS19)。   Next, the input value candidate acquisition unit 32 executes the processing from step S13 onward for all the columns constituting the table indicated by the table information (first and second table information) acquired in step S11. It is determined whether or not (step S19).

全てのカラムについて処理が実行されていないと判定された場合(ステップS19のNO)、上記したステップS13に戻って処理が繰り返される。この場合、ステップS13以降の処理が実行されていないカラムを対象カラムとして処理が実行される。   When it is determined that the processing has not been executed for all the columns (NO in step S19), the process returns to the above-described step S13 and is repeated. In this case, the process is executed with a column for which the process after step S13 is not executed as the target column.

一方、全てのカラムについて処理が実行されたと判定された場合(ステップS19のYES)、入力値候補取得部32は、上記したステップS19の処理において取得された外部キーの入力値の候補があるか否かを判定する(ステップS20)。   On the other hand, if it is determined that the process has been executed for all columns (YES in step S19), the input value candidate acquisition unit 32 has a candidate for the input value of the foreign key acquired in the process of step S19 described above. It is determined whether or not (step S20).

外部キーの入力値の候補があると判定された場合(ステップS20のYES)、入力値候補取得部32は、当該外部キーの入力値の候補を入力値決定部33に対して出力する(ステップS21)。なお、入力値決定部33に対して出力される外部キーの入力値の候補には、外部キーの候補となるカラムのカラム名(物理名)等が含まれる。   When it is determined that there is an input value candidate for the foreign key (YES in step S20), the input value candidate acquisition unit 32 outputs the input value candidate for the foreign key to the input value determination unit 33 (step) S21). Note that the foreign key input value candidates output to the input value determining unit 33 include column names (physical names) of columns that are foreign key candidates.

一方、外部キーの入力値の候補がないと判定された場合(ステップS20のNO)、ステップS21の処理は実行されない。   On the other hand, when it is determined that there is no candidate input value for the foreign key (NO in step S20), the process in step S21 is not executed.

また、上記したステップS13において対象カラムの外部キーがnullでないと判定された場合、入力値候補取得部32は、第1のテーブル情報に含まれる第1の参照先テーブル定義情報に含まれる外部キー名(の項目)に当該対象カラムの物理名が設定されているか否かを判定する(ステップS22)。   In addition, when it is determined in step S13 described above that the foreign key of the target column is not null, the input value candidate acquisition unit 32 performs the foreign key included in the first reference destination table definition information included in the first table information. It is determined whether the physical name of the target column is set in the name (item) (step S22).

外部キー名に対象カラムの物理名が設定されていないと判定された場合(ステップS22のNO)、入力値候補取得部32は、第1のテーブル定義情報に含まれる対象カラムの物理名を取得し、当該取得された対象カラムの物理名を外部キー名として入力情報ファイル22に反映(設定)する(ステップS23)。具体的には、入力値候補取得部32は、第1の参照先テーブル定義情報に含まれる外部キー名(の項目)に対象カラムの物理名を設定する。なお、この設定処理は、入力情報反映部34を介して実行される。ステップS23の処理が実行されると、上記したステップS19の処理が実行される。   When it is determined that the physical name of the target column is not set in the foreign key name (NO in step S22), the input value candidate acquisition unit 32 acquires the physical name of the target column included in the first table definition information Then, the obtained physical name of the target column is reflected (set) as the external key name in the input information file 22 (step S23). Specifically, the input value candidate acquisition unit 32 sets the physical name of the target column to the foreign key name (item) included in the first reference table definition information. This setting process is executed via the input information reflecting unit 34. When the process of step S23 is executed, the process of step S19 described above is executed.

一方、外部キー名に対象カラムの物理名が設定されていると判定された場合(ステップS22のYES)、ステップS23の処理は実行されず、上記したステップS19の処理が実行される。   On the other hand, when it is determined that the physical name of the target column is set as the foreign key name (YES in step S22), the process of step S23 is not executed, and the process of step S19 described above is executed.

上記したように第1の入力値候補取得処理においては、例えば第1のテーブルを構成する複数のカラムのうちの1つである対象カラムが主キーおよび排他制御用のカラムでない場合には、当該第1のテーブルにおいて主キーであるカラムおよび当該第1のテーブル以外の第2のテーブルにおいて主キーであるカラムであって対象カラムと物理名が同一であるカラムが当該第1のテーブルにおいて外部キーとして設定すべきカラムの候補(外部キーの入力値の候補)として取得される。   As described above, in the first input value candidate acquisition process, for example, when the target column that is one of the plurality of columns constituting the first table is not the primary key and the column for exclusive control, A column that is a primary key in the first table and a column that is a primary key in a second table other than the first table and that has the same physical name as the target column are foreign keys in the first table. As a column candidate (candidate of input value of foreign key).

上記した図13および14においては、第1のテーブルを構成するカラムが対象カラムであるものとして説明したが、当該第1のテーブル以外のテーブル(ここでは、第2のテーブル)を構成するカラムが対象カラムである場合についても同様である。   13 and 14 described above, the column constituting the first table is described as the target column. However, the columns constituting the table other than the first table (here, the second table) are not included. The same applies to the case of the target column.

ここで、第1の入力値候補取得処理について、上述した図3および図4を用いて具体的に説明する。ここでは、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成するカラムの各々が対象カラムである場合について説明する。   Here, the first input value candidate acquisition process will be specifically described with reference to FIGS. 3 and 4 described above. Here, a case will be described in which each of the columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is a target column.

まず、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの論理名が「従業員番号」であるカラムが対象カラムである場合を想定する。以下、論理名が「従業員番号」であるカラムを単に「従業員番号」カラムと称する。なお、他のカラムについても同様であるものとする。   First, a case is assumed where a column whose logical name is “employee number” among a plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is a target column. Hereinafter, a column whose logical name is “employee number” is simply referred to as an “employee number” column. The same applies to the other columns.

この場合、図3に示す第1のテーブル情報221に含まれる第1のテーブル定義情報221aに含まれる「従業員番号」カラムの主キーの項目には「○」が設定されている。このため、「従業員番号」カラムは第1のテーブルにおいて主キー(のカラム)である。したがって、第1のテーブルを構成する「従業員番号」カラムが対象カラムである場合には、外部キーの入力値の候補は取得されない。   In this case, “◯” is set in the item of the primary key in the “employee number” column included in the first table definition information 221a included in the first table information 221 shown in FIG. Therefore, the “employee number” column is the primary key (column) in the first table. Therefore, when the “employee number” column constituting the first table is the target column, the input value candidate of the foreign key is not acquired.

次に、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「氏名」カラムが対象カラムである場合を想定する。   Next, it is assumed that the “name” column of the plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is the target column.

この場合、図3に示す第1のテーブル情報221に含まれる第1のテーブル定義情報221aに含まれる「氏名」カラムの主キーの項目および排他制御の項目はnullである。したがって、「氏名」カラムは第1のテーブルにおいて主キーのカラムでなく、かつ、排他制御用のカラムでない。   In this case, the primary key item and the exclusive control item in the “name” column included in the first table definition information 221a included in the first table information 221 illustrated in FIG. 3 are null. Therefore, the “name” column is not the primary key column and the exclusive control column in the first table.

ここで、対象カラムである「氏名」カラムから構成される第1のテーブルにおいては上記したように「従業員番号」カラムが主キーである。このため、上記した第1の外部キー候補特定処理においては、「従業員番号」カラムが第1のテーブルにおける外部キーの候補として特定される。   Here, in the first table including the “name” column as the target column, the “employee number” column is the primary key as described above. Therefore, in the first foreign key candidate specifying process described above, the “employee number” column is specified as a foreign key candidate in the first table.

一方、図3に示す第1のテーブル定義情報221aによれば、「氏名」カラムの物理名は、「ename」である。また、「氏名」カラムから構成される第1のテーブル以外のテーブル(ここでは、第2のテーブル)において主キーであるカラムは、図4に示す第2のテーブル定義情報222aによれば、主キーの項目に「○」が設定されている「部署番号」カラムである。更に、図4に示す第2のテーブル定義情報222aによれば、この「部署番号」カラムの物理名は、「deptno」である。   On the other hand, according to the first table definition information 221a shown in FIG. 3, the physical name of the “name” column is “ename”. Further, according to the second table definition information 222a shown in FIG. 4, the main key column in the table (here, the second table) other than the first table composed of the “name” column is the main table. This is a “department number” column in which “◯” is set in the key item. Further, according to the second table definition information 222 a shown in FIG. 4, the physical name of the “department number” column is “deptno”.

ここで、対象カラムである「氏名」カラムの物理名(ここでは、「ename」)および第2のテーブル(第1のテーブル以外の他のテーブル)において主キーである「部署番号」カラムの物理名(ここでは、「deptno」)は同一ではない。したがって、上記した第2の外部キー候補特定処理においては、第1のテーブルにおける外部キーの候補は特定されない。   Here, the physical name in the “name” column, which is the target column (here, “ename”) and the physical name in the “department number” column, which is the primary key in the second table (the table other than the first table) The names (here “deptno”) are not identical. Therefore, in the second foreign key candidate specifying process described above, the foreign key candidates in the first table are not specified.

つまり、上記したように第1のテーブルを構成する「氏名」カラムが対象カラムである場合には、第1の外部キー候補特定処理において特定された「従業員番号」カラムが外部キーの入力値の候補として取得される。   That is, when the “name” column constituting the first table is the target column as described above, the “employee number” column specified in the first foreign key candidate specifying process is the input value of the foreign key. Obtained as a candidate.

なお、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「職種」カラム、「上長」カラム、「入社年月日」カラム、「給料」カラムおよび「手当」カラムが対象カラムである場合も同様に、「従業員番号」カラムが外部キーの入力値の候補として取得される。   It should be noted that the “job title” column, the “superior” column, the “employment date” column, and “salary” among the plurality of columns constituting the first table shown by the first table information 221 shown in FIG. Similarly, when the column and the “allowance” column are the target columns, the “employee number” column is acquired as a candidate for the input value of the foreign key.

次に、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「部署番号」カラムが対象カラムである場合を想定する。   Next, it is assumed that the “department number” column among the plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is the target column.

この場合、図3に示す第1のテーブル情報221に含まれる第1のテーブル定義情報221aに含まれる「部署番号」カラムの主キーの項目および排他制御の項目はnullである。したがって、「部署番号」カラムは第1のテーブルにおいて主キーのカラムでなく、かつ、排他制御用のカラムでない。   In this case, the item of the main key and the item of exclusive control in the “department number” column included in the first table definition information 221a included in the first table information 221 shown in FIG. 3 are null. Therefore, the “department number” column is not the primary key column and the exclusive control column in the first table.

ここで、対象カラムである「部署番号」カラムから構成される第1のテーブルにおいては上記したように「従業員番号」カラムが主キーである。このため、上記した第1の外部キー候補特定処理においては、「従業員番号」カラムが第1のテーブルにおける外部キーの候補として特定される。   Here, in the first table including the “department number” column that is the target column, the “employee number” column is the primary key as described above. Therefore, in the first foreign key candidate specifying process described above, the “employee number” column is specified as a foreign key candidate in the first table.

一方、図3に示す第1のテーブル定義情報221aによれば、第1のテーブルを構成する「部署番号」カラムの物理名は、「deptno」である。また、「部署番号」カラムから構成される第1のテーブル以外のテーブル(ここでは、第2のテーブル)において主キーであるカラムは、図4に示す第2のテーブル定義情報222aによれば、主キーの項目に「○」が設定されている「部署番号」カラムである。更に、図4に示す第2のテーブル定義情報222aによれば、この第2のテーブルを構成する「部署番号」カラムの物理名は、「deptno」である。   On the other hand, according to the first table definition information 221a shown in FIG. 3, the physical name of the “department number” column constituting the first table is “deptno”. Further, according to the second table definition information 222a shown in FIG. 4, the column that is the primary key in the table (here, the second table) other than the first table composed of the “department number” column is This is a “department number” column in which “◯” is set as the primary key item. Furthermore, according to the second table definition information 222a shown in FIG. 4, the physical name of the “department number” column constituting the second table is “deptno”.

ここで、対象カラムである「部署番号」カラムの物理名および第2のテーブルにおいて主キーである「部署番号」カラムの物理名は「deptno」で同一である。したがって、上記した第2の外部キー候補特定処理においては、第2のテーブルにおいて主キーである「部署番号」カラムが第1のテーブルにおける外部キーの候補として特定される。   Here, the physical name of the “department number” column that is the target column and the physical name of the “department number” column that is the primary key in the second table are the same as “deptno”. Therefore, in the second foreign key candidate specifying process described above, the “department number” column, which is the primary key in the second table, is specified as a foreign key candidate in the first table.

つまり、上記したように第1のテーブルを構成する「部署番号」カラムが対象カラムである場合には、第1の外部キー候補特定処理において特定された「従業員番号」カラムおよび第2の外部キー候補特定処理において特定された「部署番号」カラム(第2のテーブルにおいて主キーであるカラム)が外部キーの入力値の候補として取得される。   That is, as described above, when the “department number” column constituting the first table is the target column, the “employee number” column and the second external number specified in the first foreign key candidate specifying process The “department number” column (column that is the primary key in the second table) specified in the key candidate specifying process is acquired as a candidate for the input value of the foreign key.

次に、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「バージョン」カラムが対象カラムである場合を想定する。   Next, it is assumed that the “version” column among the plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is the target column.

この場合、図3に示す第1のテーブル情報221に含まれる第1のテーブル定義情報221aに含まれる「バージョン」カラムの排他制御の項目には「○」が設定されている。このため、「バージョン」カラムは第1のテーブルにおいて排他制御用のカラムである。したがって、第1のテーブルを構成する「バージョン」カラムが対象カラムである場合には、外部キーの入力値の候補は取得されない。   In this case, “O” is set in the exclusive control item of the “version” column included in the first table definition information 221a included in the first table information 221 shown in FIG. For this reason, the “version” column is a column for exclusive control in the first table. Therefore, when the “version” column constituting the first table is the target column, the input value candidate of the foreign key is not acquired.

上記したように入力値候補取得部32によって取得された外部キーの入力値の候補(つまり、外部キーとして設定すべきカラムの候補)は、入力値決定部33に対して出力される。   As described above, the input value candidate of the foreign key acquired by the input value candidate acquiring unit 32 (that is, the column candidate to be set as the foreign key) is output to the input value determining unit 33.

ここで、図15は、入力値決定部33に対して出力される外部キーの入力値の候補のデータ構造の一例を示す。   Here, FIG. 15 shows an example of the data structure of the input value candidate of the foreign key output to the input value determining unit 33.

図15に示すように、入力値決定部33に対して出力される外部キーの入力値の候補(外部キー入力値候補)には、入力値候補取得部32によって外部キーの入力値の候補として取得されたカラム(第1および第2の外部キー候補特定処理において外部キーの候補として特定されたカラム)の物理名が参照先テーブル主キーとして含まれる。また、外部キーの入力値の候補には、参照先テーブル主キーに加えて、対象カラム名、テーブル名、テーブルID、参照先テーブル名および参照先テーブルIDが含まれる。   As shown in FIG. 15, the input value candidate (foreign key input value candidate) output to the input value determination unit 33 is input as a foreign key input value candidate by the input value candidate acquisition unit 32. The physical name of the acquired column (the column identified as a foreign key candidate in the first and second foreign key candidate identification processing) is included as the reference table primary key. In addition to the reference table primary key, candidates for input values of foreign keys include the target column name, table name, table ID, reference table name, and reference table ID.

対象カラム名は、外部キーの入力値の候補が取得された際における対象カラムのカラム名(物理名)である。テーブル名は、対象カラムから構成されるテーブルのテーブル名である。テーブルIDは、対象カラムから構成されるテーブルを識別するための識別子である。   The target column name is the column name (physical name) of the target column when the input value candidate of the foreign key is acquired. The table name is a table name of a table configured from the target column. The table ID is an identifier for identifying a table composed of target columns.

参照先テーブル名は、外部キーの入力値の候補であるカラム(つまり、外部キーの入力値の候補として入力値候補取得部32によって取得されたカラム)を外部キーとした場合に当該外部キーによって参照されるテーブルであって、当該カラムが主キーとして設定されているテーブルのテーブル名である。参照先テーブルIDは、外部キーの入力値の候補であるカラムを外部キーとして場合に当該外部キーによって参照されるテーブルであって、当該カラムが主キーとして設定されているテーブルを識別するためのテーブルIDである。   The reference table name is determined by the foreign key when a column that is a candidate for the input value of the foreign key (that is, a column acquired by the input value candidate acquisition unit 32 as a candidate for the input value of the foreign key) is used as the foreign key. This is the table name of the table that is referred to and for which the column is set as the primary key. The reference table ID is a table that is referred to by the foreign key when a column that is a candidate for the input value of the foreign key is used as the foreign key, and for identifying the table in which the column is set as the primary key. Table ID.

入力値決定部33に対して出力される外部キーの入力値の候補に含まれる対象カラム名、テーブル名、テーブルID、参照先テーブル名および参照先テーブルIDは、上記した第1の入力値候補取得処理において取得されたテーブル情報(第1および第2のテーブル情報)から取得される。   The target column name, table name, table ID, reference destination table name, and reference destination table ID included in the input value candidates of the foreign key output to the input value determination unit 33 are the first input value candidates described above. It is acquired from the table information (first and second table information) acquired in the acquisition process.

図15に示す例では、外部キーの入力値の候補には、外部キー入力値候補1および2が含まれる。   In the example shown in FIG. 15, the foreign key input value candidates 1 and 2 are included in the foreign key input value candidates.

なお、図15に示す外部キー入力候補1および2は、上記した図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「部署番号」カラムが対象カラムである場合に第1の入力値候補取得処理において出力される外部キーの入力値の候補の一例を示す。   Note that the foreign key input candidates 1 and 2 shown in FIG. 15 are targeted for the “department number” column among the plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. An example of a foreign key input value candidate output in the first input value candidate acquisition process in the case of a column is shown.

外部キー入力値候補1には、対象カラム名「deptno」、テーブル名「従業員テーブル」、テーブルID「emp」、参照先テーブル名「従業員テーブル」、参照先テーブルID「emp」および参照先テーブル主キー「empno」が含まれている。これによれば、外部キー入力値候補1は、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する「部署番号」カラム(物理名が「deptno」であるカラム)が対象カラムである場合における外部キーの入力値の候補が「従業員番号」カラム(の物理名)であることを示している。なお、この外部キーの入力値の候補である「従業員番号」カラムは、上記した第1の外部キー候補特定処理において特定されたカラムである。   The external key input value candidate 1 includes a target column name “deptno”, a table name “employee table”, a table ID “emp”, a reference table name “employee table”, a reference table ID “emp”, and a reference destination Contains the table primary key "empno". According to this, the foreign key input value candidate 1 has a “department number” column (a column whose physical name is “deptno”) constituting the first table indicated by the first table information 221 shown in FIG. This indicates that the input value candidate of the foreign key in the case of the target column is the “employee number” column (its physical name). The “employee number” column, which is a candidate for the input value of the foreign key, is a column specified in the first foreign key candidate specifying process described above.

また、外部キー入力値候補2には、対象カラム名「deptno」、テーブル名「従業員テーブル」、テーブルID「emp」、参照先テーブル名「部署テーブル」、参照先テーブルID「dept」および参照先テーブル主キー「deptno」が含まれている。これによれば、外部キー入力値候補2は、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する「部署番号」カラム(物理名が「deptno」であるカラム)が対象カラムである場合における外部キーの入力値の候補が「部署番号」カラム(の物理名)であることを示している。なお、この外部キーの入力値の候補である「部署番号」カラムは、上記した第2の外部キー候補特定処理において特定されたカラムである。   The foreign key input value candidate 2 includes a target column name “deptno”, a table name “employee table”, a table ID “emp”, a reference table name “department table”, a reference table ID “dept”, and a reference. The destination table primary key “deptno” is included. According to this, the foreign key input value candidate 2 has a “department number” column (a column whose physical name is “deptno”) constituting the first table indicated by the first table information 221 shown in FIG. This indicates that the input value candidate of the foreign key in the case of the target column is the “department number” column (its physical name). The “department number” column, which is a candidate for the input value of the foreign key, is a column specified in the second foreign key candidate specifying process described above.

ここでは、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「部署番号」カラムが対象カラムである場合に出力される外部キーの入力値の候補について説明したが、他のカラムが対象カラムである場合に出力される外部キーの入力値の候補についても同様である。   Here, the input value of the foreign key output when the “department number” column among the plurality of columns constituting the first table indicated by the first table information 221 shown in FIG. 3 is the target column. Although the candidates have been described, the same applies to the foreign key input value candidates that are output when the other column is the target column.

なお、図15に示す外部キーの入力値の候補においては、対象カラム名として対象カラムの物理名のみが含まれているが、当該物理名に加えて対象カラムの論理名が含まれていても構わない。   Note that the foreign key input value candidate shown in FIG. 15 includes only the physical name of the target column as the target column name, but may include the logical name of the target column in addition to the physical name. I do not care.

上記した図15に示す形式の外部キーの入力値の候補が入力値決定部33に対して出力されると、入力値決定部33は、当該外部キーの入力値の候補を選択するための画面(以下、第1の入力値候補選択画面と表記)を表示する。   When the input value candidate of the external key in the format shown in FIG. 15 is output to the input value determining unit 33, the input value determining unit 33 is a screen for selecting the input value candidate of the external key. (Hereinafter referred to as a first input value candidate selection screen) is displayed.

ここで、図16は、第1の入力値候補選択画面(外部キー入力値候補選択画面)の一例を示す。第1の入力値候補選択画面400には、例えばテーブル名およびテーブルIDが表示される。この第1の入力値候補選択画面400に表示されるテーブル名およびテーブルIDは、上記した図15に示す入力値決定部33に対して出力された外部キーの入力値の候補に含まれるテーブル名およびテーブルIDである。   Here, FIG. 16 shows an example of a first input value candidate selection screen (foreign key input value candidate selection screen). On the first input value candidate selection screen 400, for example, a table name and a table ID are displayed. The table name and table ID displayed on the first input value candidate selection screen 400 are the table names included in the input value candidates for the external key output to the input value determination unit 33 shown in FIG. And the table ID.

また、第1の入力値候補選択画面400には、図15に示す入力値決定部33に対して出力された外部キーの入力値の候補に含まれる対象カラム名(ここでは、論理名および物理名)が表示されている。   Further, the first input value candidate selection screen 400 includes target column names (here, logical name and physical) included in the foreign key input value candidates output to the input value determination unit 33 shown in FIG. Name) is displayed.

更に、第1の入力値候補選択画面400においては、対象カラム名に対応づけてプルダウン401が設けられている。この第1の入力値候補選択画面400に設けられているプルダウン401には、例えば図17に示すように外部キーの入力値の候補(ここでは、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。なお、図17は、論理名「部署番号」および物理名「deptno」に対応づけられているプルダウン401の表示(つまり、対象カラムが「部署番号」カラムである場合における外部キーの入力値の候補)の例を示す。つまり、図17に示すように、論理名「部署番号」および物理名「deptno」に対応づけられているプルダウン401においては、上記した図15に示す外部キー入力値候補1および2の各々に含まれる参照先テーブルIDおよび参照先テーブル主キーの組(つまり、外部キーの入力値の候補)が表示される。   Further, in the first input value candidate selection screen 400, a pull-down 401 is provided in association with the target column name. In the pull-down 401 provided on the first input value candidate selection screen 400, for example, as shown in FIG. 17, a candidate for an input value of a foreign key (here, a set of a reference destination table ID and a reference destination table main key). ) Is set. Note that FIG. 17 shows the display of the pull-down 401 associated with the logical name “department number” and the physical name “deptno” (that is, the input value candidate of the foreign key when the target column is the “department number” column). ). That is, as shown in FIG. 17, the pull-down 401 associated with the logical name “department number” and the physical name “deptno” is included in each of the external key input value candidates 1 and 2 shown in FIG. The set of the reference table ID and the reference table primary key (that is, the candidate input value of the foreign key) is displayed.

これにより、ユーザは、第1の入力値候補選択画面400を介して、外部キーの入力値の候補(つまり、外部キーとして設定すべきカラムの候補)の中から実際に入力値とすべき候補を選択することができる。なお、図17に示すように、外部キーに関しては「(空欄)」が設定されており、ユーザは、当該「(空欄)」を選択することも可能である。   As a result, the user can actually select an input value from among the input value candidates for the external key (that is, the column candidates to be set as the external key) via the first input value candidate selection screen 400. Can be selected. As shown in FIG. 17, “(blank)” is set for the external key, and the user can also select “(blank)”.

また、第1の入力値候補選択画面400には、設定ボタン402が設けられている。ユーザが第1の入力値候補選択画面400に設けられているプルダウン401において所望の外部キーの入力値の候補を選択し、設定ボタン402を指定(押下)すると、当該選択された外部キーの入力値の候補が入力値(外部キーとして設定すべきカラム)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。   In addition, a setting button 402 is provided on the first input value candidate selection screen 400. When the user selects an input value candidate of a desired external key on the pull-down 401 provided on the first input value candidate selection screen 400 and designates (presses) the setting button 402, the input of the selected external key is performed. A value candidate is determined as an input value (a column to be set as an external key), and the input value is reflected in the input information file 22 by the input information reflecting unit 34.

この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キーの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)に含まれるテーブル定義情報において、入力値として決定されたカラム(外部キーの入力値の候補であるカラム)の外部キーの項目に「○」を設定する。これにより、入力値として決定されたカラムが外部キーとして設定される。   In this case, the input information reflecting unit 34 is a table included in the table information set in the input information file 22 (table information indicating a table identified by the table ID included in the input value candidate of the foreign key described above). In the definition information, “◯” is set in the item of the foreign key of the column determined as the input value (the column that is a candidate for the foreign key input value). Thereby, the column determined as the input value is set as the foreign key.

また、入力情報反映部34は、外部キーとして設定されたカラムの物理名(外部キーの入力値の候補に参照先テーブル主キーとして含まれるカラムの物理名)を、当該外部キーの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報の参照先テーブル定義情報に含まれる外部キー名の項目に設定する。   Further, the input information reflection unit 34 uses the physical name of the column set as the foreign key (the physical name of the column included as the reference table primary key in the input value candidate of the foreign key) as the input value of the foreign key. It is set in the item of foreign key name included in the reference table definition information of the table information indicating the table identified by the table ID included in the candidate.

また、入力情報反映部34は、外部キーとして設定されたカラムの物理名が設定された外部キー名の項目を含む参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に、当該外部キーによって参照されるテーブル(外部キー参照先テーブル)を設定する。この場合、入力情報反映部34は、外部キー参照先テーブルのテーブル名(外部キーの入力値の候補に含まれる参照先テーブル名)を、外部キー参照先テーブルの項目に含まれる名称の項目に設定する。また、入力情報反映部34は、外部キー参照先テーブルのテーブルID(外部キーの入力値の候補に含まれる参照先テーブルID)を、外部キー参照先テーブルの項目に含まれるIDの項目に設定する。   Further, the input information reflecting unit 34 adds the foreign key reference item to the item of the foreign key reference destination table included in the reference table definition information including the item of the foreign key name in which the physical name of the column set as the foreign key is set. Set the table (foreign key reference table) referenced by. In this case, the input information reflecting unit 34 converts the table name of the foreign key reference destination table (the reference table name included in the candidate input value of the foreign key) into the item of the name included in the item of the foreign key reference destination table. Set. Further, the input information reflection unit 34 sets the table ID of the foreign key reference destination table (reference destination table ID included in the candidate input value of the foreign key) to the item of ID included in the item of the foreign key reference destination table. To do.

更に、入力情報反映部34は、外部キー参照先テーブルの項目に設定されたテーブル(外部キー参照先テーブル)において主キーであるカラムの物理名(外部キーの入力値の候補に含まれる参照先テーブル主キー)を、外部キーとして設定されたカラムの物理名が設定された外部キー名の項目を含む参照先テーブル定義情報に含まれる外部キー参照先構成列の項目に設定する。   Further, the input information reflecting unit 34 has the physical name of the column that is the primary key (the reference destination included in the input value candidate of the foreign key) in the table (foreign key reference destination table) set in the item of the foreign key reference destination table. Table primary key) is set to the item of the foreign key reference destination configuration column included in the reference table definition information including the item of the foreign key name in which the physical name of the column set as the foreign key is set.

つまり、第1の入力値候補取得処理において外部キーの入力値の候補が取得され、当該外部キーの入力値の候補(であるカラム)の中から外部キーが設定された場合には、参照先テーブル定義情報に含まれる当該外部キーの外部キー名、外部キー参照先テーブルおよび外部キー参照先構成列の項目についても適切な入力値が自動的に設定される。   That is, when a foreign key input value candidate is acquired in the first input value candidate acquisition process and a foreign key is set from the input key candidates (that is, the column), the reference destination Appropriate input values are automatically set for the items of the foreign key name, foreign key reference destination table, and foreign key reference destination configuration column of the foreign key included in the table definition information.

次に、図18のフローチャートを参照して、第2の入力値候補取得処理の処理手順について説明する。   Next, the processing procedure of the second input value candidate acquisition process will be described with reference to the flowchart of FIG.

第2の入力値候補取得処理は、上記したように第2のルール(外部キー参照先テーブル候補取得ルール)を用いた場合の入力値候補取得処理である。この第2の入力値候補取得処理においては、第2のルールに基づいて、入力情報ファイル22に設定されているテーブル情報の参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に設定すべき値の候補(外部キー参照先テーブルの入力値の候補)が取得される。   The second input value candidate acquisition process is an input value candidate acquisition process when the second rule (foreign key reference destination table candidate acquisition rule) is used as described above. In this second input value candidate acquisition process, based on the second rule, it is set in the item of the foreign key reference destination table included in the reference destination table definition information of the table information set in the input information file 22. A power value candidate (a candidate for an input value in the foreign key reference table) is acquired.

なお、第2の入力値候補取得処理が実行される際、入力情報ファイル22に設定されているテーブル情報によって示されるテーブルにおいて外部キーが設定されている場合には当該テーブル情報の参照先テーブル定義情報に含まれる少なくとも外部キー名の項目に値が設定されているものとする。   When the second input value candidate acquisition process is executed, if a foreign key is set in the table indicated by the table information set in the input information file 22, the reference destination table definition of the table information is set. It is assumed that a value is set in at least the foreign key name item included in the information.

まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS31)。   First, the input value candidate acquisition unit 32 acquires the first and second table information acquired by the input information acquisition unit 31 from the input information acquisition unit 31 (step S31).

入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第2のルール(外部キー参照先テーブル候補取得ルール)を取得する(ステップS32)。以下に説明するステップS33〜S36の処理は、この第2のルールに基づいて実行される。なお、第2のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。   The input value candidate acquisition unit 32 acquires a second rule (foreign key reference destination table candidate acquisition rule) included in the rules held in the input value candidate acquisition rule holding unit 23 (step S32). The processes of steps S33 to S36 described below are executed based on the second rule. Since the contents of the second rule are as described in FIG. 11 described above, detailed description thereof is omitted here.

次に、入力値候補取得部32は、ステップS31において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS33以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。   Next, the input value candidate acquisition unit 32 stores the foreign key (the first and second table information of the first and second table information) in the table indicated by the table information (here, the first and second table information) acquired in step S31. The following processing from step S33 onward is executed for each of the foreign key names included in the reference table definition information. Hereinafter, the foreign key that is the target of this processing is the target foreign key. Here, it is assumed that the target foreign key is a foreign key in the first table.

入力値候補取得部32は、ステップS31において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの外部キー参照先テーブルの項目に含まれるID(の項目)がnullであるか否かを判定する(ステップS33)。   The input value candidate acquisition unit 32 refers to the reference destination table definition information (first reference destination table definition information) included in the first table information acquired in step S31, and refers to the external key reference destination of the target external key. It is determined whether or not the ID (item) included in the table item is null (step S33).

IDがnullであると判定された場合(ステップS33のYES)、入力値候補取得部32は、第1および第2のテーブル情報に基づいて、当該第2のテーブル情報によって示される第2のテーブルが該当テーブルであるか否かを判定する(ステップS34)。入力値候補取得部32は、対象外部キーとして設定されているカラムから構成されるテーブル(ここでは、第1のテーブル)以外のテーブルが該当テーブルであるか否かを判定する。   When it is determined that the ID is null (YES in step S33), the input value candidate acquisition unit 32 uses the second table information indicated by the second table information based on the first and second table information. Is a corresponding table (step S34). The input value candidate acquisition unit 32 determines whether a table other than the table (here, the first table) configured from the columns set as the target foreign key is the corresponding table.

ここで、該当テーブルとは、第1のテーブル情報の第1の参照先テーブル情報に含まれる対象外部キーの外部キー名(の項目に設定されている物理名)を物理名とするカラムから構成されるテーブルをいう。換言すれば、該当テーブルは、対象外部キーの外部キー名と同一のカラム名(物理名)を持つテーブルである。   Here, the corresponding table is composed of a column whose physical name is the foreign key name (the physical name set in the item) of the target foreign key included in the first reference table information of the first table information. Refers to the table to be played. In other words, the corresponding table is a table having the same column name (physical name) as the foreign key name of the target foreign key.

第2のテーブルが該当テーブルであると判定された場合(ステップS34のYES)、入力値候補取得部32は、当該第2のテーブルを構成する複数のカラムのうちの対象外部キーの外部キー名(の項目に設定されている物理名)を物理名とするカラムが当該第2のテーブルにおいて主キーであるか否かを判定する(ステップS35)。この場合、入力値候補取得部32は、第2のテーブルを示す第2のテーブル情報のテーブル定義情報(第2のテーブル定義情報)に含まれる主キーの項目を参照して判定処理を実行する。   When it is determined that the second table is the corresponding table (YES in step S34), the input value candidate acquisition unit 32 is the external key name of the target foreign key among the plurality of columns constituting the second table. It is determined whether or not a column whose physical name is (physical name set in the item) is a primary key in the second table (step S35). In this case, the input value candidate acquisition unit 32 executes a determination process with reference to the item of the primary key included in the table definition information (second table definition information) of the second table information indicating the second table. .

対象外部キーの外部キー名を物理名とするカラムが第2のテーブルにおいて主キーであると判定された場合(ステップS35のYES)、入力値候補取得部32は、当該第2のテーブル(のテーブル名およびテーブルID)を対象外部キーの外部キー参照先テーブルの入力値の候補として取得する(ステップS36)。第2のテーブルのテーブル名およびテーブルIDは、第2のテーブル情報(に含まれる第2のテーブル定義情報)から取得される。   When it is determined that the column whose physical name is the foreign key name of the target foreign key is the primary key in the second table (YES in step S35), the input value candidate acquisition unit 32 selects the second table ( (Table name and table ID) are acquired as input value candidates in the foreign key reference table of the target foreign key (step S36). The table name and table ID of the second table are acquired from the second table information (second table definition information included in the second table information).

次に、入力値候補取得部32は、ステップS31において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS33以降の処理が実行されたか否かを判定する(ステップS37)。   Next, the input value candidate acquisition unit 32 performs all the foreign keys (that is, the first and second table information) in the table indicated by the table information (first and second table information) acquired in step S31. In step S37, it is determined whether or not the processing from step S33 onward is executed for all the external keys set in step S37.

全ての外部キーについて処理が実行されていないと判定された場合(ステップS37のNO)、上記したステップS33に戻って処理が繰り返される。この場合、ステップS33以降の処理が実行されていない外部キーを対象外部キーとして処理が実行される。   If it is determined that the processing has not been executed for all the external keys (NO in step S37), the process returns to the above step S33 and the processing is repeated. In this case, the processing is executed with the foreign key that has not been subjected to the processing after step S33 as the target foreign key.

一方、全ての外部キーについて処理が実行されたと判定された場合(ステップS37のYES)、入力値候補取得部32は、上記したステップS36の処理において取得された外部キー参照先テーブルの入力値の候補があるか否かを判定する(ステップS38)。   On the other hand, when it is determined that the process has been executed for all the foreign keys (YES in step S37), the input value candidate acquisition unit 32 stores the input values of the foreign key reference destination table acquired in the process of step S36 described above. It is determined whether there is a candidate (step S38).

外部キー参照先テーブルの入力値の候補があると判定された場合(ステップS38のYES)、入力値候補取得部32は、当該外部キー参照先テーブルの入力値の候補を入力値決定部33に対して出力する(ステップS39)。なお、入力値決定部33に対して出力される外部キー参照先テーブルの入力値の候補には、外部キー参照先テーブルの項目に設定すべき値の候補となるテーブルのテーブル名およびテーブルID等が含まれる。   When it is determined that there are input value candidates in the foreign key reference destination table (YES in step S38), the input value candidate acquisition unit 32 sets the input value candidates in the foreign key reference destination table to the input value determination unit 33. The data is output (step S39). The input value candidates of the foreign key reference destination table output to the input value determining unit 33 include table names and table IDs of tables that are candidates for values to be set in the items of the foreign key reference destination table. Is included.

一方、外部キー参照先テーブルの入力値の候補がないと判定された場合(ステップS38のNO)、ステップS39の処理は実行されない。   On the other hand, if it is determined that there is no input value candidate in the foreign key reference table (NO in step S38), the process in step S39 is not executed.

なお、上述したように図18に示す第2の入力値候補取得処理の前には、図13および図14に示す第1の入力値候補取得処理が実行される。この第1の入力値候補取得処理において外部キーの入力値の候補が取得され、当該外部キーの入力値の候補の中から外部キーが設定された場合には、上記したように参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目(に含まれる名称およびIDの項目)にも値が設定される。   As described above, the first input value candidate acquisition process shown in FIGS. 13 and 14 is executed before the second input value candidate acquisition process shown in FIG. In this first input value candidate acquisition process, when a foreign key input value candidate is acquired and a foreign key is set from among the input value candidates of the foreign key, the reference table definition is made as described above. Values are also set for items in the foreign key reference table included in the information (name and ID items included therein).

したがって、このような場合には、上記したステップS33においてIDがnullでないと判定され、外部キー参照先テーブルの入力値の候補は取得されず、ステップS37の処理が実行される。   Therefore, in such a case, it is determined in step S33 described above that the ID is not null, input value candidates in the foreign key reference table are not acquired, and the process of step S37 is executed.

また、上記したステップS34において第2のテーブルが該当テーブルでないと判定された場合およびステップS35において対象外部キーの外部キー名を物理名とするカラムが第2のテーブル(該当テーブル)において主キーでないと判定された場合、ステップS37の処理が実行される。   If it is determined in step S34 that the second table is not the corresponding table, and the column whose physical name is the foreign key name of the target foreign key is not the primary key in the second table (corresponding table) in step S35. Is determined, the process of step S37 is executed.

上記したように第2の入力値候補取得処理においては、対象外部キーの外部キー名を物理名とするカラムから構成されるテーブルにおいて当該カラムが主キーである場合には、当該テーブルのテーブル名およびテーブルIDが外部キー参照先テーブルの入力値の候補として取得される。   As described above, in the second input value candidate acquisition process, if the column is a primary key in a table composed of columns having the physical name of the foreign key name of the target foreign key, the table name of the table The table ID is acquired as a candidate for the input value of the foreign key reference table.

例えば、上述した図14に示すステップS23の処理によって図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー名の項目に「deptno」が設定されている場合を想定する。この場合には、この外部キー名「deptno」を物理名とするカラムが図4に示す第2のテーブル情報222によって示される第2のテーブルを構成する複数のカラムの中に存在する。また、この複数のカラムの中の物理名が「deptno」であるカラム(「部署番号」カラム)は、第2のテーブルにおける主キーである。したがって、外部キー名が「deptno」である外部キーが対象外部キーである場合には、第2のテーブルのテーブル名およびテーブルIDが外部キー参照先テーブルの入力値の候補として取得される。   For example, “deptno” is set in the item of the foreign key name included in the first reference table definition information 221b of the first table information 221 shown in FIG. 3 by the process of step S23 shown in FIG. Assume a case. In this case, a column whose physical name is the foreign key name “deptno” is present in a plurality of columns constituting the second table indicated by the second table information 222 shown in FIG. In addition, a column (“department number” column) whose physical name is “deptno” among the plurality of columns is a primary key in the second table. Therefore, when the foreign key whose foreign key name is “deptno” is the target foreign key, the table name and table ID of the second table are acquired as input value candidates of the foreign key reference table.

このように入力値候補取得部32によって取得された外部キー参照先テーブルの入力値の候補は、入力値決定部33に対して出力される。   In this way, the input value candidates in the foreign key reference table acquired by the input value candidate acquisition unit 32 are output to the input value determination unit 33.

ここで、図19は、入力値決定部33に対して出力される外部キー参照先テーブルの入力値の候補のデータ構造の一例を示す。   Here, FIG. 19 shows an example of the data structure of input value candidates in the foreign key reference table output to the input value determining unit 33.

図19に示すように、入力値決定部33に対して出力される外部キー参照先テーブルの入力値の候補(外部キー参照先テーブル入力値候補)には、上記した図18に示すステップS36において取得されたテーブル名およびテーブルID(ここでは、第2のテーブルのテーブル名およびテーブルID)が参照先テーブル名および参照先テーブルIDとして含まれる。また、外部キー参照先テーブルの入力値の候補には、参照先テーブル名および参照先テーブルIDに加えて、テーブル名、テーブルID、外部キー名および参照先テーブル主キーが含まれる。   As shown in FIG. 19, the input value candidate (foreign key reference destination table input value candidate) of the foreign key reference destination table that is output to the input value determining unit 33 is used in step S36 shown in FIG. The acquired table name and table ID (here, the table name and table ID of the second table) are included as the reference table name and reference table ID. In addition to the reference destination table name and the reference destination table ID, candidates for input values in the foreign key reference destination table include a table name, a table ID, an external key name, and a reference destination table primary key.

テーブル名は、対象外部キーとして設定されているカラム(対象外部キーのカラム)から構成されるテーブル(つまり、当該対象外部キーが設定されているテーブル)のテーブル名である。テーブルIDは、対象外部キーのカラムから構成されるテーブルを識別するための識別子である。外部キー名は、対象外部キーの外部キー名(対象外部キーのカラムの物理名)である。参照先テーブル主キーは、外部キー参照先テーブルの入力値の候補に含まれる参照先テーブルIDによって識別されるテーブルにおいて主キーであるカラムの物理名である。つまり、参照先テーブル主キーは、対象外部キーによって参照されるテーブル(外部キー参照先テーブル)において主キーであるカラムの物理名である。   The table name is a table name of a table (that is, a table in which the target foreign key is set) including columns set as target foreign keys (target foreign key columns). The table ID is an identifier for identifying a table composed of columns of the target foreign key. The foreign key name is the foreign key name of the target foreign key (the physical name of the column of the target foreign key). The reference destination table primary key is the physical name of the column that is the primary key in the table identified by the reference destination table ID included in the input value candidates of the foreign key reference destination table. That is, the reference table primary key is the physical name of the column that is the primary key in the table (foreign key reference table) referenced by the target foreign key.

外部キー参照先テーブルの入力値の候補に含まれるテーブル名、テーブルID、外部キー名および参照先テーブル主キーは、上記した第2の入力値候補取得処理において取得されたテーブル情報(第1および第2のテーブル情報)から取得される。   The table name, table ID, foreign key name, and reference table primary key included in the input value candidates of the foreign key reference table are the table information (first and second) acquired in the second input value candidate acquisition process described above. Obtained from the second table information).

図19に示す例では、外部キー参照先テーブルの入力値の候補には、外部キー参照先テーブル入力値候補1が含まれる。   In the example shown in FIG. 19, the foreign key reference destination table input value candidate 1 is included in the input value candidates in the foreign key reference destination table.

なお、図19に示す外部キー参照先テーブル入力値候補1は、上記した図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー名の項目に例えば「deptno」が設定されていた場合に第2の入力値候補取得処理において出力される外部キー参照先テーブルの入力値の候補の一例である。   Note that the foreign key reference destination table input value candidate 1 shown in FIG. 19 includes, for example, “Foreign key name” included in the first reference destination table definition information 221b of the first table information 221 shown in FIG. This is an example of input value candidates in the foreign key reference table output in the second input value candidate acquisition process when “deptno” is set.

この外部キー参照先テーブル入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」、参照先テーブル名「部署テーブル」、参照先テーブルID「dept」および参照先テーブル主キー「deptno」が含まれている。これによれば、外部キー参照先テーブル入力値候補1は、上記したように図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー名に例えば「deptno」が設定されていた場合における外部キー参照先テーブルの入力値の候補が図4に示す第2のテーブル情報222によって示される第2のテーブル(のテーブル名「部署テーブル」およびテーブルID「dept」)であることを示している。   The foreign key reference destination table input value candidate 1 includes table name “employee table”, table ID “emp”, foreign key name “deptno”, reference destination table name “department table”, reference destination table ID “dept”. And the referenced table primary key "deptno". According to this, the foreign key reference destination table input value candidate 1 is, for example, “deptno” in the foreign key name included in the first reference destination table definition information 221b of the first table information 221 shown in FIG. "Is the second table (table name" department table "and table ID" dept ") indicated by the second table information 222 shown in FIG. ).

上記した図19に示す形式の外部キー参照先テーブルの入力値の候補が入力値決定部33に対して出力されると、入力値決定部33は、当該外部キー参照先テーブルの入力値の候補を選択するための画面(以下、第2の入力値候補選択画面と表記)を表示する。   When the input value candidates of the foreign key reference table in the format shown in FIG. 19 are output to the input value determining unit 33, the input value determining unit 33 selects the input value candidates of the foreign key reference table. Is displayed (hereinafter referred to as a second input value candidate selection screen).

ここで、図20は、第2の入力値候補選択画面(外部キー参照先テーブル入力値候補選択画面)の一例を示す。第2の入力値候補選択画面410には、例えばテーブル名およびテーブルIDが表示される。この第2の入力値候補選択画面410に表示されるテーブル名およびテーブルIDは、上記した図19に示す入力値決定部33に対して出力された外部キー参照先テーブルの入力値の候補に含まれるテーブル名およびテーブルIDである。   Here, FIG. 20 shows an example of a second input value candidate selection screen (foreign key reference destination table input value candidate selection screen). On the second input value candidate selection screen 410, for example, a table name and a table ID are displayed. The table name and table ID displayed on the second input value candidate selection screen 410 are included in the input value candidates of the foreign key reference table output to the input value determination unit 33 shown in FIG. Table name and table ID.

また、第2の入力値候補選択画面410においては、対象外部キーの外部キー名に対応づけてプルダウン411が設けられている。この第2の入力値候補選択画面410に設けられているプルダウン411には、例えば図21に示すように外部キー参照先テーブルの入力値の候補(ここでは、参照先テーブル名、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。   Further, in the second input value candidate selection screen 410, a pull-down 411 is provided in association with the external key name of the target external key. In the pull-down 411 provided in the second input value candidate selection screen 410, for example, as shown in FIG. 21, the input value candidates of the foreign key reference destination table (here, the reference destination table name and the reference destination table ID) are displayed. And a reference table primary key set).

これにより、ユーザは、第2の入力値候補選択画面410を介して、外部キー参照先テーブルの入力値の候補(つまり、外部キー参照先テーブルの項目に設定すべきテーブル名およびテーブルIDの候補)の中から実際に入力値とすべき候補を選択することができる。   As a result, the user can select input value candidates in the foreign key reference table (that is, table name and table ID candidates to be set in the items of the foreign key reference table via the second input value candidate selection screen 410). ) Can be selected from among the candidates that should actually be input values.

また、第2の入力値候補選択画面410には、設定ボタン412が設けられている。ユーザが第2の入力値候補選択画面410に設けられているプルダウン411において所望の外部キー参照先テーブルの入力値の候補を選択し、設定ボタン412を指定(押下)すると、当該選択された外部キー参照先テーブルの入力値の候補が入力値(外部キー参照先テーブルの項目に設定すべきテーブル名およびテーブルID)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。   The second input value candidate selection screen 410 is provided with a setting button 412. When the user selects an input value candidate in a desired external key reference destination table in the pull-down 411 provided on the second input value candidate selection screen 410 and designates (presses) the setting button 412, the selected external key Input value candidates in the key reference table are determined as input values (table name and table ID to be set in the external key reference table items), and the input values are reflected in the input information file 22 by the input information reflection unit 34. Is done.

この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キー参照先テーブルの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目(に含まれる名称およびIDの項目)に、入力値として決定されたテーブル名およびテーブルID(外部キー参照先テーブルの入力値の候補に含まれる参照先テーブル名および参照先テーブルID)を設定する。これにより、入力情報反映部34は、参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に対象外部キーによって参照されるテーブルを設定する。   In this case, the input information reflecting unit 34 stores the table information set in the input information file 22 (table information indicating a table identified by the table ID included in the input value candidates of the foreign key reference destination table described above). The table name and table ID determined as input values (candidates for input values in the foreign key reference table) are entered in the foreign key reference table items (name and ID fields included) included in the reference table definition information. The reference destination table name and reference destination table ID included) are set. Thereby, the input information reflection unit 34 sets a table referred to by the target external key in the item of the foreign key reference destination table included in the reference destination table definition information.

また、入力情報反映部34は、外部キー参照先テーブルの項目に設定されたテーブルにおいて主キーであるカラムの物理名(外部キー参照先テーブルの入力値の候補に含まれる参照先テーブル主キー)を、当該外部キー参照先テーブルの項目を含む参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先構成列の項目に設定する。   Further, the input information reflecting unit 34 has a physical name of a column that is a primary key in a table set as an item of the foreign key reference destination table (a reference destination table primary key included in an input value candidate of the foreign key reference destination table). Is set to the item of the foreign key reference destination configuration column of the target foreign key included in the reference destination table definition information including the item of the foreign key reference destination table.

つまり、第2の入力値候補取得処理において外部キー参照先テーブルの入力値の候補が取得され、当該外部キー参照先テーブルの入力値の候補の中から外部キー参照先テーブルの項目に値が設定された場合には、当該外部キー参照先テーブルの項目を含む参照先テーブル定義情報に含まれる外部キー参照先構成列の項目についても適切な入力値が自動的に設定される。   That is, input value candidates in the foreign key reference table are acquired in the second input value candidate acquisition process, and values are set in the items in the foreign key reference table from among the input value candidates in the foreign key reference table. In such a case, an appropriate input value is automatically set for the item of the foreign key reference destination configuration column included in the reference destination table definition information including the item of the foreign key reference destination table.

次に、図22のフローチャートを参照して、第3の入力値候補取得処理の処理手順について説明する。   Next, the processing procedure of the third input value candidate acquisition process will be described with reference to the flowchart of FIG.

第3の入力値候補取得処理は、上記したように第3のルール(外部キー参照先構成列候補取得ルール)を用いた場合の入力値候補取得処理である。この第3の入力値候補取得処理においては、第3のルールに基づいて、入力情報ファイル22に設定されているテーブル情報の参照先テーブル定義情報に含まれる外部キー参照先構成列の項目に設定すべき値の候補(外部キー参照先構成列の入力値の候補)が取得される。   The third input value candidate acquisition process is an input value candidate acquisition process when the third rule (foreign key reference destination constituent column candidate acquisition rule) is used as described above. In the third input value candidate acquisition process, based on the third rule, the item is set in the item of the foreign key reference destination configuration column included in the reference destination table definition information of the table information set in the input information file 22 A candidate for a value to be obtained (a candidate for an input value in a foreign key reference destination constituent column) is acquired.

なお、第3の入力値候補取得処理が実行される際、入力情報ファイル22に設定されているテーブル情報によって示されるテーブルにおいて外部キーが設定されている場合には当該テーブル情報の参照先テーブル定義情報に含まれる少なくとも外部キー名および外部キー参照先テーブルの項目に値が設定されているものとする。   When the third input value candidate acquisition process is executed, if a foreign key is set in the table indicated by the table information set in the input information file 22, the reference destination table definition of the table information is set. It is assumed that values are set in at least the foreign key name and foreign key reference table items included in the information.

まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS41)。   First, the input value candidate acquisition unit 32 acquires the first and second table information acquired by the input information acquisition unit 31 from the input information acquisition unit 31 (step S41).

入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第3のルール(外部キー参照先構成列候補取得ルール)を取得する(ステップS42)。以下に説明するステップS43〜S45の処理は、この第3のルールに基づいて実行される。なお、第3のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。   The input value candidate acquisition unit 32 acquires a third rule (foreign key reference destination constituent column candidate acquisition rule) included in the rules held in the input value candidate acquisition rule holding unit 23 (step S42). The processes in steps S43 to S45 described below are executed based on the third rule. The contents of the third rule are as described with reference to FIG. 11 described above, and thus detailed description thereof is omitted here.

次に、入力値候補取得部32は、ステップS41において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS43以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。   Next, the input value candidate acquisition unit 32 stores the foreign key (the first and second table information of the first and second table information) in the table indicated by the table information (here, the first and second table information) acquired in step S41. For each of the foreign key names included in the reference table definition information), the following processing from step S43 is executed. Hereinafter, the foreign key that is the target of this processing is the target foreign key. Here, it is assumed that the target foreign key is a foreign key in the first table.

入力値候補取得部32は、ステップS41において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの外部キー参照先構成列(の項目)がnullであるか否かを判定する(ステップS43)。   The input value candidate acquisition unit 32 refers to the reference destination table definition information (first reference destination table definition information) included in the first table information acquired in step S41, and refers to the external key reference destination of the target external key. It is determined whether the configuration column (item) is null (step S43).

外部キー参照先構成列がnullであると判定された場合(ステップS43のYES)、入力値候補取得部32は、第1の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先テーブル(に含まれる名称およびID)の項目にテーブル名およびテーブルIDが設定されているテーブル(つまり、当該外部キー参照先テーブルの項目に設定されているテーブル)において主キーであるカラムを特定する(ステップS44)。   When it is determined that the foreign key reference destination configuration column is null (YES in step S43), the input value candidate acquisition unit 32 stores the foreign key reference destination table of the target foreign key included in the first reference destination table definition information. The column that is the primary key in the table in which the table name and the table ID are set in the item (name and ID included in (in other words, the table set in the item of the foreign key reference table) is specified ( Step S44).

なお、対象外部キーの外部キー参照先テーブルの項目にテーブル名およびテーブルIDが設定されている外部キー参照先テーブルとは、当該テーブルIDによって識別されるテーブルであり、対象外部キーによって参照されるテーブルである。以下、対象外部キーの外部キー参照先テーブルの項目にテーブル名およびテーブルIDが設定されている外部キー参照先テーブルを、単に対象外部キー参照先テーブルと称する。ここでは、対象外部キー参照先テーブルは、第2のテーブルであるものとする。   The foreign key reference table in which the table name and the table ID are set in the item of the foreign key reference table of the target foreign key is a table identified by the table ID, and is referenced by the target foreign key. It is a table. Hereinafter, the foreign key reference destination table in which the table name and the table ID are set in the item of the foreign key reference destination table of the target foreign key is simply referred to as a target foreign key reference destination table. Here, it is assumed that the target foreign key reference table is the second table.

この場合、入力値候補取得部32は、対象外部キー参照先テーブルである第2のテーブルを示す第2のテーブル情報の第2のテーブル定義情報に含まれる主キーの項目を参照してステップS44の処理を実行する。   In this case, the input value candidate acquisition unit 32 refers to the item of the primary key included in the second table definition information of the second table information indicating the second table which is the target foreign key reference table, step S44. Execute the process.

入力値候補取得部32は、特定されたカラム(ここでは、第2のテーブルにおいて主キーであるカラム)の物理名を第1の参照先テーブル定義情報に含まれる外部キー参照先構成列の入力値の候補として取得する(ステップ45)。なお、第2のテーブルにおいて主キーであるカラムの物理名は、第2のテーブル情報から取得される。   The input value candidate acquisition unit 32 inputs the physical name of the identified column (here, the column that is the primary key in the second table) into the foreign key reference destination configuration column included in the first reference destination table definition information. Obtained as a value candidate (step 45). Note that the physical name of the column that is the primary key in the second table is acquired from the second table information.

なお、例えば上述した図13および図14に示す第1の入力値候補取得処理および図18に示す第2の入力値候補取得処理が実行されることによって外部キー参照先構成列の項目に値が設定されている場合には、上記したステップS43において外部キー参照先構成列がnullでないと判定され、ステップS44およびS45の処理は実行されない。   For example, when the first input value candidate acquisition process shown in FIG. 13 and FIG. 14 and the second input value candidate acquisition process shown in FIG. If it is set, it is determined in step S43 described above that the foreign key reference destination configuration column is not null, and the processing in steps S44 and S45 is not executed.

次に、入力値候補取得部32は、ステップS41において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS43以降の処理が実行されたか否かを判定する(ステップS46)。   Next, the input value candidate acquisition unit 32 selects all the foreign keys (that is, the first and second table information) in the table indicated by the table information (first and second table information) acquired in step S41. In step S46, it is determined whether or not the processing in step S43 and subsequent steps has been executed for all the external keys set in step S46.

全ての外部キーについて処理が実行されていないと判定された場合(ステップS46のNO)、上記したステップS43に戻って処理が繰り返される。この場合、ステップS43以降の処理が実行されていない外部キーを対象外部キーとして処理が実行される。   If it is determined that the processing has not been executed for all the external keys (NO in step S46), the processing returns to the above-described step S43 and is repeated. In this case, the processing is executed using the foreign key that has not been processed in step S43 and subsequent steps as the target foreign key.

一方、全ての外部キーについて処理が実行されたと判定された場合(ステップS46のYES)、入力値候補取得部32は、上記したステップS45の処理において取得された外部キー参照先構成列の入力値の候補があるか否かを判定する(ステップS47)。   On the other hand, when it is determined that the processing has been executed for all the foreign keys (YES in step S46), the input value candidate acquisition unit 32 receives the input values of the foreign key reference destination constituent columns acquired in the processing in step S45 described above. It is determined whether or not there is a candidate (step S47).

外部キー参照先構成列の入力値の候補があると判定された場合(ステップS47のYES)、入力値候補取得部32は、当該外部キー参照先構成列の入力値の候補を入力値決定部33に対して出力する(ステップS48)。なお、入力値決定部33に対して出力される外部キー参照先構成列の入力値の候補には、外部キー参照先構成列の項目に設定すべき値の候補となるカラムの物理名等が含まれる。   When it is determined that there is an input value candidate for the foreign key reference destination constituent column (YES in step S47), the input value candidate acquisition unit 32 sets the input value candidate for the foreign key reference destination constituent column as an input value determination unit. It outputs to 33 (step S48). The input value candidates of the foreign key reference destination configuration column output to the input value determination unit 33 include the physical names of columns that are candidates for values to be set in the items of the foreign key reference destination configuration column. included.

一方、外部キー参照先構成列の入力値の候補がないと判定された場合(ステップS47のNO)、ステップS48の処理は実行されない。   On the other hand, when it is determined that there is no input value candidate in the foreign key reference destination configuration column (NO in step S47), the process in step S48 is not executed.

上記したように第3の入力値候補取得処理においては、対象外部キー参照先テーブルにおいて主キーであるカラムの物理名が外部キー参照先構成列の入力値の候補として取得される。   As described above, in the third input value candidate acquisition process, the physical name of the column that is the primary key in the target foreign key reference destination table is acquired as the input value candidate of the foreign key reference destination constituent column.

例えば、対象外部キー参照先テーブルが図4に示す第2のテーブル情報222によって示される第2のテーブルである場合、つまり、対象外部キーの外部キー参照先テーブルの項目に含まれる名称の項目に「部署テーブル」、IDの項目に「dept」が設定されている場合を想定する。この場合には、対象外部キー参照先テーブルである第2のテーブルにおいて主キーである「部署番号」カラムの物理名(ここでは、「deptno」)が外部キー参照先構成例の入力値の候補として取得される。   For example, if the target foreign key reference destination table is the second table indicated by the second table information 222 shown in FIG. 4, that is, the name item included in the item of the foreign key reference destination table of the target foreign key Assume that “dept” is set in the “department table” and the ID item. In this case, the physical name (in this case, “deptno”) as the primary key in the second table that is the target foreign key reference table is the input value candidate of the foreign key reference destination configuration example. Get as.

このように入力値候補取得部32によって取得された外部キー参照先構成列の入力値の候補は、入力値決定部33に対して出力される。   In this way, the input value candidates of the foreign key reference destination configuration column acquired by the input value candidate acquisition unit 32 are output to the input value determination unit 33.

ここで、図23は、入力値決定部33に対して出力される外部キー参照先構成列の入力値の候補のデータ構造の一例を示す。   Here, FIG. 23 shows an example of the data structure of the candidate input value of the foreign key reference destination constituent column output to the input value determining unit 33.

図23に示すように、入力値決定部33に対して出力される外部キー参照先構成列の入力値の候補(外部キー参照先構成列入力値候補)には、上記した図22に示すステップS45の処理において取得された対象外部キー参照先テーブルにおいて主キーであるカラムの物理名が参照先テーブル主キー(外部キー参照先構成列)として含まれる。また、外部キー参照先構成列の入力値の候補には、参照先テーブル主キーに加えて、テーブル名、テーブルID、外部キー名、参照先テーブル名および参照先テーブルIDが含まれる。   As shown in FIG. 23, the input value candidate of the foreign key reference destination constituent column output to the input value determining unit 33 (foreign key reference destination constituent column input value candidate) includes the steps shown in FIG. The physical name of the column that is the primary key in the target foreign key reference destination table acquired in the process of S45 is included as the reference destination table primary key (foreign key reference destination constituent column). In addition to the reference destination table primary key, candidates for input values in the foreign key reference destination configuration column include a table name, a table ID, a foreign key name, a reference destination table name, and a reference destination table ID.

テーブル名は、対象外部キーのカラムから構成されるテーブルのテーブル名である。テーブルIDは、対象外部キーのカラムから構成されるテーブルを識別するための識別子である。外部キー名は、対象外部キーの外部キー名である。参照先テーブル名は、対象外部キー参照先テーブルのテーブル名である。参照先テーブルIDは、対象外部キー参照先テーブルを識別するためのテーブルIDである。   The table name is a table name of a table composed of columns of the target foreign key. The table ID is an identifier for identifying a table composed of columns of the target foreign key. The foreign key name is the foreign key name of the target foreign key. The reference destination table name is the table name of the target foreign key reference destination table. The reference destination table ID is a table ID for identifying the target foreign key reference destination table.

外部キー参照先構成列の入力値の候補に含まれるテーブル名、テーブルID、外部キー名、参照先テーブル名および参照先テーブルIDは、上記した第3の入力値候補取得処理において取得されたテーブル情報(第1および第2のテーブル情報)から取得される。   The table name, table ID, foreign key name, reference destination table name, and reference destination table ID included in the input value candidates of the foreign key reference destination constituent column are the tables acquired in the third input value candidate acquisition process described above. It is acquired from information (first and second table information).

図23に示す例では、外部キー参照先構成列の入力値の候補には、外部キー参照先構成列入力値候補1が含まれる。   In the example shown in FIG. 23, the foreign key reference destination constituent column input value candidate 1 is included in the input value candidates of the foreign key reference destination constituent column.

なお、図23に示す外部キー参照先構成列入力値候補1は、上記した図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に、図4に示す第2のテーブル情報222に含まれるテーブル名およびテーブルIDが設定されていた場合に第3の入力値候補取得処理において出力される外部キー参照先構成列の入力値の候補の一例である。   Note that the foreign key reference destination configuration column input value candidate 1 shown in FIG. 23 is an item of the foreign key reference destination table included in the first reference destination table definition information 221b of the first table information 221 shown in FIG. In addition, when the table name and the table ID included in the second table information 222 shown in FIG. 4 are set, the input value candidates of the foreign key reference destination constituent columns that are output in the third input value candidate acquisition process It is an example.

この外部キー参照先構成列入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」、参照先テーブル名「部署テーブル」、参照先テーブルID「dept」および参照先テーブル主キー「deptno」が含まれている。これによれば、外部キー参照先構成列入力値候補1は、上記したように図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に第2のテーブル(図4に示す第2のテーブル情報222に含まれるテーブル名およびテーブルID)が設定されていた場合における外部キー参照先構成列の入力値の候補が当該第2のテーブルにおいて主キーである「部署番号」カラムの物理名「deptno」であることを示している。   The foreign key reference destination component column input value candidate 1 includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, a reference destination table name “department table”, and a reference destination table ID “dept”. ”And the referenced table primary key“ deptno ”. According to this, the foreign key reference destination configuration column input value candidate 1 is stored in the foreign key reference destination table included in the first reference destination table definition information 221b of the first table information 221 shown in FIG. When the second table (table name and table ID included in the second table information 222 shown in FIG. 4) is set in the item, the input value candidates of the foreign key reference destination constituent column are the second table. Indicates the physical name “deptno” in the “department number” column which is the primary key.

上記した図23に示す形式の外部キー参照先構成列の入力値の候補が入力値決定部33に対して出力されると、入力値決定部33は、当該外部キー参照先構成列の入力値の候補を選択するための画面(以下、第3の入力値候補選択画面と表記)を表示する。   When the input value candidates of the foreign key reference destination constituent column in the format shown in FIG. 23 are output to the input value determining unit 33, the input value determining unit 33 inputs the input value of the foreign key reference destination constituent column. A screen for selecting a candidate (hereinafter referred to as a third input value candidate selection screen) is displayed.

ここで、図24は、第3の入力値候補選択画面(外部キー参照先構成列入力値候補選択画面)の一例を示す。第3の入力値候補選択画面420には、例えばテーブル名およびテーブルIDが表示される。この第3の入力値候補選択画面420に表示されるテーブル名およびテーブルIDは、上記した図23に示す入力値決定部33に対して出力された外部キー参照先構成列の入力値の候補に含まれるテーブル名およびテーブルIDである。   FIG. 24 shows an example of a third input value candidate selection screen (foreign key reference destination configuration column input value candidate selection screen). On the third input value candidate selection screen 420, for example, a table name and a table ID are displayed. The table name and table ID displayed on the third input value candidate selection screen 420 are candidates for the input values of the external key reference destination configuration column output to the input value determination unit 33 shown in FIG. Table name and table ID included.

また、第3の入力値候補選択画面420においては、対象外部キーの外部キー名に対応づけてプルダウン421が設けられている。この第3の入力値候補選択画面420に設けられているプルダウン421には、例えば図25に示すように外部キー参照先構成列の入力値の候補(ここでは、参照先テーブル名、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。   In the third input value candidate selection screen 420, a pull-down 421 is provided in association with the external key name of the target external key. In the pull-down 421 provided in the third input value candidate selection screen 420, for example, as shown in FIG. 25, input value candidates in the external key reference destination configuration column (here, reference destination table name, reference destination table). ID and reference table primary key set) are set.

これにより、ユーザは、第3の入力値候補選択画面420を介して、外部キー参照先構成列の入力値の候補(つまり、外部キー参照先構成列の項目に設定すべきカラムの物理名)の中から実際に入力値とすべき候補を選択することができる。   As a result, the user can input the input value candidate of the foreign key reference destination constituent column (that is, the physical name of the column to be set in the item of the foreign key reference destination constituent column) via the third input value candidate selection screen 420. Candidates that should actually be input values can be selected from among the above.

また、第3の入力値候補選択画面420には、設定ボタン422が設けられている。ユーザが第3の入力値候補選択画面420に設けられているプルダウン421において所望の外部キー参照先構成列の入力値の候補を選択し、設定ボタン422を指定(押下)すると、当該選択された外部キー参照先構成列の入力値の候補が入力値(外部キー参照先構成列に設定すべきカラムの物理名)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。   In addition, a setting button 422 is provided on the third input value candidate selection screen 420. When the user selects an input value candidate of a desired external key reference destination configuration column in the pull-down 421 provided on the third input value candidate selection screen 420 and designates (presses) the setting button 422, the selected item is selected. Candidates for input values in the foreign key reference destination constituent column are determined as input values (physical names of columns to be set in the foreign key reference destination constituent column), and the input information is reflected in the input information file 22 by the input information reflecting unit 34. Is done.

この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キー参照先構成列の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先構成列の項目に、入力値として決定されたカラムの物理名(外部キー参照先構成列の入力値の候補に含まれる参照先テーブル主キー)を設定する。   In this case, the input information reflecting unit 34 sets the table information set in the input information file 22 (table information indicating the table identified by the table ID included in the input value candidates of the above-described foreign key reference destination configuration column). The physical name of the column determined as the input value in the item of the foreign key reference destination component column of the target foreign key included in the reference table definition information of the target (reference destination included in the candidate input value of the foreign key reference destination component column Table primary key).

次に、図26のフローチャートを参照して、第4の入力値候補取得処理の処理手順について説明する。   Next, the procedure of the fourth input value candidate acquisition process will be described with reference to the flowchart of FIG.

第4の入力値候補取得処理は、上記したように第4のルール(参照時の表示形式候補取得ルール)を用いた場合の入力値候補取得処理である。この第4の入力値候補取得処理においては、第4のルールに基づいて、入力情報ファイル22に設定されているテーブル情報の参照先テーブル定義情報に含まれる参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)が取得される。なお、参照先テーブル定義情報に含まれる参照時の表示形式の項目には、当該参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に設定されているテーブル(外部キー参照先テーブル)の参照時における表示形式が設定される。   The fourth input value candidate acquisition process is an input value candidate acquisition process when the fourth rule (display format candidate acquisition rule at the time of reference) is used as described above. In the fourth input value candidate acquisition process, based on the fourth rule, the display format item at the time of reference included in the reference table definition information of the table information set in the input information file 22 is set. A power value candidate (a candidate for an input value in a display format at the time of reference) is acquired. In addition, the item of the display format at the time of reference included in the reference destination table definition information includes the table (foreign key reference destination table) set in the item of the foreign key reference destination table included in the reference destination table definition information. The display format at the time of reference is set.

なお、第4の入力値候補取得処理が実行される際、入力情報ファイル22に設定されているテーブル情報によって示されるテーブルにおいて外部キーが設定されている場合には当該テーブル情報の参照先テーブル定義情報に含まれる少なくとも外部キー名、外部キー参照先テーブルおよび外部キー参照先構成列の項目に値が設定されているものとする。   When the fourth input value candidate acquisition process is executed, if a foreign key is set in the table indicated by the table information set in the input information file 22, the reference destination table definition of the table information is set. It is assumed that values are set in at least the items of the foreign key name, the foreign key reference destination table, and the foreign key reference destination configuration column included in the information.

まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS51)。   First, the input value candidate acquisition unit 32 acquires the first and second table information acquired by the input information acquisition unit 31 from the input information acquisition unit 31 (step S51).

入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第4のルール(参照時の表示形式候補取得ルール)を取得する(ステップS52)。以下に説明するステップS53〜S56の処理は、この第4のルールに基づいて実行される。なお、第4のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。   The input value candidate acquisition unit 32 acquires a fourth rule (display format candidate acquisition rule at the time of reference) included in the rules held in the input value candidate acquisition rule holding unit 23 (step S52). The processes in steps S53 to S56 described below are executed based on the fourth rule. The contents of the fourth rule are as described with reference to FIG. 11 described above, and thus detailed description thereof is omitted here.

次に、入力値候補取得部32は、ステップS51において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS53以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。   Next, the input value candidate acquisition unit 32 stores the foreign key (the first and second table information of the first and second table information) in the table indicated by the table information (here, the first and second table information) acquired in step S51. The following processing from step S53 onward is executed for each of the external key names included in the reference table definition information. Hereinafter, the foreign key that is the target of this processing is the target foreign key. Here, it is assumed that the target foreign key is a foreign key in the first table.

入力値候補取得部32は、ステップS51において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの参照時の表示形式(の項目)がnullであるか否かを判定する(ステップS53)。   The input value candidate acquisition unit 32 refers to the reference destination table definition information (first reference destination table definition information) included in the first table information acquired in step S51, and displays when the target external key is referred to. It is determined whether or not the format (item) is null (step S53).

参照時の表示形式がnullであると判定された場合(ステップS53のYES)、入力値候補取得部32は、第1の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先構成列の項目に物理名が設定されているカラムを特定する。ここで、入力値候補取得部32によって特定されたカラムは、第1の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先テーブルの項目に設定されているテーブル(つまり、対象外部キー参照先テーブル)において主キーであるカラムである。以下、対象外部キー参照先テーブルは、第2のテーブルであるものとする。   When it is determined that the display format at the time of reference is null (YES in step S53), the input value candidate acquisition unit 32 includes the foreign key reference destination configuration column of the target foreign key included in the first reference destination table definition information. Identify the column where the physical name is set in the item. Here, the column specified by the input value candidate acquisition unit 32 is a table (that is, the target external key) set in the item of the foreign key reference destination table of the target foreign key included in the first reference destination table definition information. This is a column that is a primary key in the reference table. Hereinafter, it is assumed that the target foreign key reference table is the second table.

次に、入力値候補取得部32は、特定されたカラムから構成されるテーブルを示すテーブル情報(ここでは、第2のテーブル情報)に含まれるテーブル定義情報に含まれる当該カラムの桁(の項目に設定されている値)が2以上であるか否かを判定する(ステップS54)。   Next, the input value candidate acquisition unit 32 displays the column digit (item of the column included in the table definition information included in the table information (here, the second table information) indicating the table configured from the identified columns. It is determined whether or not the value set in (2) is 2 or more (step S54).

カラムの桁が2以上でない、つまり、1であると判定された場合(ステップS54のNO)、入力値候補取得部32は、チェックボックス、ラジオボタン、コンボボックスおよびリストボックスを参照時の表示形式の入力値の候補として取得する(ステップS55)。   When it is determined that the column digit is not 2 or more, that is, 1 (NO in step S54), the input value candidate acquisition unit 32 displays a check box, a radio button, a combo box, and a list box at the time of reference. As an input value candidate (step S55).

一方、カラムの桁が2以上であると判定された場合(ステップS54のYES)、入力値候補取得部32は、ポップアップを参照時の表示形式の入力値の候補として取得する(ステップS56)。   On the other hand, when it is determined that the column digit is 2 or more (YES in step S54), the input value candidate acquisition unit 32 acquires the pop-up as the input value candidate of the display format at the time of reference (step S56).

ステップS55またはS56の処理が実行されると、入力値候補取得部32は、ステップS51において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS53以降の処理が実行されたか否かを判定する(ステップS57)。   When the process of step S55 or S56 is executed, the input value candidate acquisition unit 32 executes all the foreign keys (that is, the first and second table information) in the table indicated by the table information (first and second table information) acquired in step S51. It is determined whether or not the processing after step S53 described above has been executed for all the foreign keys set in the first and second table information (step S57).

全ての外部キーについて処理が実行されていないと判定された場合(ステップS57のNO)、上記したステップS53に戻って処理が繰り返される。この場合、ステップS53以降の処理が実行されていない外部キーを対象外部キーとして処理が実行される。   If it is determined that processing has not been executed for all foreign keys (NO in step S57), the process returns to step S53 described above and the processing is repeated. In this case, the processing is executed using the foreign key that has not been processed in step S53 and subsequent steps as the target foreign key.

一方、全ての外部キーについて処理が実行されたと判定された場合(ステップS57のYES)、入力値候補取得部32は、上記したステップS55およびS56において取得された参照時の表示形式の入力値の候補があるか否かを判定する(ステップS58)。   On the other hand, when it is determined that the processing has been executed for all the foreign keys (YES in step S57), the input value candidate acquisition unit 32 displays the input values in the display format at the time of reference acquired in steps S55 and S56 described above. It is determined whether there is a candidate (step S58).

参照時の表示形式の入力値の候補があると判定された場合(ステップS58のYES)、入力値候補取得部32は、当該参照時の表示形式の入力値の候補を入力値決定部33に対して出力する(ステップS59)。   When it is determined that there is an input value candidate in the display format at the time of reference (YES in step S58), the input value candidate acquisition unit 32 sends the input value candidate in the display format at the time of reference to the input value determination unit 33. The data is output (step S59).

一方、参照時の表示形式の入力値の候補がないと判定された場合(ステップS58のNO)、ステップS59の処理は実行されない。   On the other hand, if it is determined that there is no input value candidate in the display format at the time of reference (NO in step S58), the process in step S59 is not executed.

また、上記したステップS53において参照時の表示形式がnullでないと判定された場合、ステップS54〜S56の処理は実行されず、ステップS57の処理が実行される。   If it is determined in step S53 that the display format at the time of reference is not null, the processing in steps S54 to S56 is not executed, and the processing in step S57 is executed.

上記したように第4の入力値候補取得処理においては、対象外部キーの外部キー参照先構成列のカラム(当該外部キー参照先構成列の項目に物理名が設定されているカラム)の桁数に基づいて参照時の表示形式の入力値の候補が取得される。   As described above, in the fourth input value candidate acquisition process, the number of digits in the column of the foreign key reference destination constituent column of the target foreign key (the column in which the physical name is set in the item of the foreign key reference destination constituent column) Based on, the input value candidates in the display format at the time of reference are acquired.

例えば、対象外部キー参照先テーブルが図4に示す第2のテーブル情報222によって示される第2のテーブルであり、対象外部キーの外部キー参照先構成列の項目に「deptno」が設定されていた場合には、当該第2のテーブル情報222の第2のテーブル定義情報222aに含まれる物理名が「deptno」であるカラム(つまり、「部署番号」カラム)の桁数は2以上であるため、ポップアップが参照時の表示形式の入力値の候補として取得される。   For example, the target foreign key reference destination table is the second table indicated by the second table information 222 shown in FIG. 4, and “deptno” is set in the item of the foreign key reference destination configuration column of the target foreign key. In this case, the number of digits in the column whose physical name is “deptno” (that is, the “department number” column) included in the second table definition information 222a of the second table information 222 is 2 or more. Pop-ups are acquired as input value candidates for the display format at the time of reference.

このように入力値候補取得部32によって取得された参照時の表示形式の入力値の候補は、入力値決定部33に対して出力される。   In this way, the input value candidates in the display format at the time of reference acquired by the input value candidate acquisition unit 32 are output to the input value determination unit 33.

ここで、図27は、入力値決定部33に対して出力される参照時の表示形式の入力値の候補のデータ構造の一例を示す。   Here, FIG. 27 shows an example of the data structure of the input value candidates in the display format at the time of reference output to the input value determining unit 33.

図27に示すように、入力値決定部33に対して出力される参照時の表示形式の入力値の候補(参照時の表示形式入力値候補)には、上記した図26に示すステップS55またはS56において取得された参照時の表示形式の候補(チェックボックス、ラジオボタン、コンボボックス、リストボックスまたはポップアップ)が表示形式として含まれる。また、入力値決定部33に対して出力される参照時の表示形式の入力値の候補には、表示形式に加えて、テーブル名、テーブルIDおよび外部キー名が含まれる。   As shown in FIG. 27, the input value candidate of the display format at the time of reference output to the input value determining unit 33 (display format input value candidate at the time of reference) is set to step S55 shown in FIG. The display format candidates (check boxes, radio buttons, combo boxes, list boxes, or pop-ups) at the time of reference acquired in S56 are included as display formats. In addition to the display format, the input value candidates in the display format at the time of reference output to the input value determination unit 33 include a table name, a table ID, and a foreign key name.

テーブル名は、対象外部キーのカラムから構成されるテーブルのテーブル名である。テーブルIDは、対象外部キーのカラムから構成されるテーブルを識別するための識別子である。外部キー名は、対象外部キーの外部キー名である。   The table name is a table name of a table composed of columns of the target foreign key. The table ID is an identifier for identifying a table composed of columns of the target foreign key. The foreign key name is the foreign key name of the target foreign key.

参照時の表示形式の入力値の候補に含まれるテーブル名、テーブルIDおよび外部キー名は、上記した第4の入力値候補取得処理において取得されたテーブル情報(第1および第2のテーブル情報)から取得される。   The table name, table ID, and foreign key name included in the input value candidates in the display format at the time of reference are the table information (first and second table information) acquired in the fourth input value candidate acquisition process described above. Obtained from.

図27に示す例では、入力値決定部33に対して出力される参照時の表示形式の入力値の候補には、参照時の表示形式入力値候補1〜4が含まれる。   In the example shown in FIG. 27, the input value candidates for the display format at the time of reference output to the input value determination unit 33 include display format input value candidates 1 to 4 at the time of reference.

なお、図27に示す参照時の表示形式入力値候補1〜4は、例えば図3に示す第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に第2のテーブルが設定されており、外部キー参照先構成列の項目に図4に示す第2のテーブル定義情報222aに含まれる「部署番号」カラムの物理名「deptno」が設定されている場合に第4の入力値候補取得処理において出力される参照時の表示形式の入力値の候補(ここでは、ポップアップ、チェックボックス、ラジオボタン、コンボボックスおよびリストボックス)の一例である。   For example, the display format input value candidates 1 to 4 at the time of reference shown in FIG. 27 are set in the second table as items of the foreign key reference destination table included in the first reference destination table definition information 221b shown in FIG. The fourth input value when the physical name “deptno” of the “department number” column included in the second table definition information 222a shown in FIG. 4 is set in the item of the foreign key reference destination configuration column. It is an example of a display format input value candidate (here, popup, check box, radio button, combo box, and list box) that is output in the candidate acquisition process.

図27に示す例では、参照時の表示形式入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。   In the example shown in FIG. 27, the display format input value candidate 1 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display format “pop-up”. . According to this, the display format input value candidate 1 at the time of reference is a value candidate to be set in the item of the display format at the time of referring to the target foreign key (here, the foreign key whose foreign key name is “deptno”). It indicates that (candidate input value of display format at the time of reference) is a popup.

また、参照時の表示形式入力値候補2には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。   Further, the display format input value candidate 2 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display format “pop-up”. According to this, the display format input value candidate 1 at the time of reference is a value candidate to be set in the item of the display format at the time of referring to the target foreign key (here, the foreign key whose foreign key name is “deptno”). It indicates that (candidate input value of display format at the time of reference) is a popup.

また、参照時の表示形式入力値候補3には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。   Further, the display format input value candidate 3 at the time of reference includes a table name “employee table”, a table ID “emp”, an external key name “deptno”, and a display format “pop-up”. According to this, the display format input value candidate 1 at the time of reference is a value candidate to be set in the item of the display format at the time of referring to the target foreign key (here, the foreign key whose foreign key name is “deptno”). It indicates that (candidate input value of display format at the time of reference) is a popup.

また、参照時の表示形式入力値候補4には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。   The display format input value candidate 4 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display format “pop-up”. According to this, the display format input value candidate 1 at the time of reference is a value candidate to be set in the item of the display format at the time of referring to the target foreign key (here, the foreign key whose foreign key name is “deptno”). It indicates that (candidate input value of display format at the time of reference) is a popup.

これらの例では、外部キー名が「deptno」であるため参照時の表示形式の候補は「ポップアップ」であるが、外部キー名が他のものであれば、参照時の表示形式の候補として、ポップアップ以外のチェックボックス、ラジオボタン、コンボボックスおよびリストボックスも示されることになる。   In these examples, because the foreign key name is “deptno”, the display format candidate at the time of reference is “pop-up”, but if the foreign key name is something else, as the display format candidate at the time of reference, Check boxes, radio buttons, combo boxes and list boxes other than popups will also be shown.

上記した図27に示す形式の参照時の表示形式の入力値の候補が入力値決定部33に対して出力されると、入力値決定部33は、当該参照時の表示形式の入力値の候補を選択するための画面(以下、第4の入力値選択画面と表記)を表示する。   When the input value candidate of the display format at the time of reference in the format shown in FIG. 27 is output to the input value determining unit 33, the input value determining unit 33 selects the input value candidate of the display format at the time of reference. Is displayed (hereinafter referred to as a fourth input value selection screen).

ここで、図28は、第4の入力値候補選択画面(参照時の表示形式入力値候補選択画面)の一例を示す。第4の入力値候補選択画面430には、例えばテーブル名およびテーブルIDが表示される。この第4の入力値候補選択画面430に表示されるテーブル名およびテーブルIDは、上記した図27に示す入力値決定部33に対して出力された参照時の表示形式の入力値の候補に含まれるテーブル名およびテーブルIDである。   Here, FIG. 28 shows an example of a fourth input value candidate selection screen (display format input value candidate selection screen for reference). For example, a table name and a table ID are displayed on the fourth input value candidate selection screen 430. The table name and table ID displayed on the fourth input value candidate selection screen 430 are included in the input value candidates in the display format at the time of reference output to the input value determination unit 33 shown in FIG. Table name and table ID.

また、第4の入力値候補選択画面430においては、対象外部キーの外部キー名に対応づけてプルダウン431が設けられている。この第4の入力値候補選択画面430に設けられているプルダウン431には、例えば図29に示すように参照時の表示形式の入力値の候補(ここでは、ポップアップ)が設定されている。   In the fourth input value candidate selection screen 430, a pull-down 431 is provided in association with the external key name of the target external key. In the pull-down 431 provided on the fourth input value candidate selection screen 430, for example, input value candidates (here, pop-up) in the display format at the time of reference are set as shown in FIG.

これにより、ユーザは、第4の入力値候補選択画面430を介して、参照時の表示形式の入力値の候補(つまり、参照時の表示形式の項目に設定すべき値の候補)の中から実際に入力値とすべき候補を選択することができる。   Thereby, the user can select from the input value candidates in the display format at the time of reference (that is, candidates of values to be set in the items of the display format at the time of reference) via the fourth input value candidate selection screen 430. Candidates that should actually be input values can be selected.

また、第4の入力値候補選択画面430には、設定ボタン432が設けられている。ユーザが第4の入力値候補選択画面430に設けられているプルダウン431において所望の参照時の表示形式の入力値の候補を選択し、設定ボタン432を指定(押下)すると、当該選択された参照時の表示形式の入力値の候補が入力値として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。   In addition, a setting button 432 is provided on the fourth input value candidate selection screen 430. When the user selects an input value candidate in a display format at the time of reference in the pull-down 431 provided on the fourth input value candidate selection screen 430 and designates (presses) the setting button 432, the selected reference is selected. The input value candidate in the display format at that time is determined as the input value, and the input value is reflected in the input information file 22 by the input information reflecting unit 34.

この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した参照時の表示形式の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる対象外部キーの参照時の表示形式の項目に、入力値として決定された表示形式(ここでは、ポップアップ)を設定する。   In this case, the input information reflecting unit 34 stores the table information set in the input information file 22 (table information indicating the table identified by the table ID included in the input value candidates of the display format at the time of reference described above). The display format (here, pop-up) determined as the input value is set in the item of the display format when referring to the target foreign key included in the reference table definition information.

次に、図30のフローチャートを参照して、第5の入力値候補取得処理の処理手順について説明する。   Next, the procedure of the fifth input value candidate acquisition process will be described with reference to the flowchart of FIG.

第5の入力値候補取得処理は、上記したように第5のルール(参照時の表示項目候補取得ルール)を用いた場合の入力値候補取得処理である。この第5の入力値候補取得処理においては、第5のルールに基づいて、入力情報ファイル22に設定されているテーブル情報の参照先テーブル定義情報に含まれる参照時の表示項目の項目に設定すべき値の候補(参照時の表示項目の入力値の候補)が取得される。なお、参照先テーブル定義情報に含まれる参照時の表示項目の項目には、当該参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に設定されているテーブル(外部キー参照先テーブル)の参照時に表示される項目(表示項目)が設定される。   The fifth input value candidate acquisition process is an input value candidate acquisition process when the fifth rule (display item candidate acquisition rule at the time of reference) is used as described above. In this fifth input value candidate acquisition process, based on the fifth rule, it is set in the item of the display item at the time of reference included in the reference table definition information of the table information set in the input information file 22. A power value candidate (a candidate for an input value of a display item at the time of reference) is acquired. The item of the display item at the time of reference included in the reference destination table definition information includes the table (foreign key reference destination table) set in the item of the foreign key reference destination table included in the reference destination table definition information. An item (display item) displayed at the time of reference is set.

なお、第5の入力値候補取得処理が実行される際、入力情報ファイル22に設定されているテーブル情報によって示されるテーブルにおいて外部キーが設定されている場合には当該テーブル情報の参照先テーブルテーブル定義情報に含まれる外部キー名、外部キー参照先テーブル、外部キー参照先構成列および参照時の表示形式の項目に値が設定されているものとする。   When the fifth input value candidate acquisition process is executed, if a foreign key is set in the table indicated by the table information set in the input information file 22, the reference table table of the table information It is assumed that values are set in the external key name, foreign key reference table, foreign key reference destination configuration column, and display format items at the time of reference included in the definition information.

まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS61)。   First, the input value candidate acquisition unit 32 acquires the first and second table information acquired by the input information acquisition unit 31 from the input information acquisition unit 31 (step S61).

入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第5のルール(参照時の表示項目候補取得ルール)を取得する(ステップS62)。以下に説明するステップS63〜S67の処理は、この第5のルールに基づいて実行される。なお、第5のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。   The input value candidate acquisition unit 32 acquires the fifth rule (display item candidate acquisition rule at the time of reference) included in the rules held in the input value candidate acquisition rule holding unit 23 (step S62). The processes in steps S63 to S67 described below are executed based on the fifth rule. The contents of the fifth rule are as described in FIG. 11 described above, and therefore detailed description thereof is omitted here.

次に、入力値候補取得部32は、ステップS61において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS63以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。   Next, the input value candidate acquisition unit 32 acquires the foreign key (the first and second table information of the first and second table information) in the table indicated by the table information (here, the first and second table information) acquired in step S61. For each of the foreign key names included in the reference table definition information), the following processing from step S63 is executed. Hereinafter, the foreign key that is the target of this processing is the target foreign key. Here, it is assumed that the target foreign key is a foreign key in the first table.

入力値候補取得部32は、ステップS61において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの参照時の表示形式の項目にポップアップが設定されているか否かを判定する(ステップS63)。   The input value candidate acquisition unit 32 refers to the reference destination table definition information (first reference destination table definition information) included in the first table information acquired in step S61, and displays when the target external key is referred to. It is determined whether a pop-up is set for the format item (step S63).

参照時の表示形式の項目にポップアップが設定されていると判定された場合(ステップS63)、入力値候補取得部32は、第1の参照先テーブル定義情報を参照して、対象外部キーの参照時の表示項目(の項目)がnullであるか否かを判定する(ステップS64)。   When it is determined that a pop-up is set in the display format item at the time of reference (step S63), the input value candidate acquisition unit 32 refers to the first reference destination table definition information and refers to the target foreign key. It is determined whether or not the current display item is null (step S64).

参照時の表示項目がnullであると判定された場合(ステップS64のYES)、入力値候補取得部32は、第1の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先テーブルの項目に設定されているテーブル(対象外部キー参照先テーブル)を示すテーブル情報に基づいて、当該対象外部キー参照先テーブルを構成するカラムの中から排他制御用のカラムでないカラムを特定する(ステップS65)。以下、対象外部キー参照先テーブルは、第2のテーブルであるものとする。この場合、入力値候補取得部32は、対象外部キー参照先テーブルである第2のテーブルを示す第2のテーブル情報に含まれる当該第2のテーブルを構成するカラムの各々の排他制御の項目がnullであるか否かを判定することによって、排他制御用のカラムでないカラムを特定する。   When it is determined that the display item at the time of reference is null (YES in step S64), the input value candidate acquisition unit 32 stores the foreign key reference destination table of the target foreign key included in the first reference destination table definition information. Based on the table information indicating the table (target foreign key reference table) set in the item, a column that is not a column for exclusive control is specified from among the columns constituting the target foreign key reference table (step S65). ). Hereinafter, it is assumed that the target foreign key reference table is the second table. In this case, the input value candidate acquisition unit 32 stores the exclusive control items of the columns constituting the second table included in the second table information indicating the second table that is the target foreign key reference destination table. By determining whether or not it is null, a column that is not a column for exclusive control is specified.

入力値候補取得部32は、特定されたカラムの物理名を参照時の表示項目の入力値の候補として取得する(ステップS66)。入力値候補取得部32によって特定されたカラムの物理名は、第2のテーブルを示す第2のテーブル情報に含まれるテーブル定義情報(第2のテーブル定義情報)から取得される。   The input value candidate acquisition unit 32 acquires the physical name of the identified column as the input value candidate of the display item at the time of reference (step S66). The physical name of the column specified by the input value candidate acquisition unit 32 is acquired from the table definition information (second table definition information) included in the second table information indicating the second table.

入力値候補取得部32は、ステップS61において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS63以降の処理が実行されたか否かを判定する(ステップS67)。   The input value candidate acquisition unit 32 is set in all the foreign keys (that is, the first and second table information) in the table indicated by the table information (first and second table information) acquired in step S61. It is determined whether or not the processing after step S63 described above has been executed for all the external keys) (step S67).

全ての外部キーについて処理が実行されていないと判定された場合(ステップS67のNO)、上記したステップS63に戻って処理が繰り返される。この場合、ステップS63以降の処理が実行されていない外部キーを対象外部キーとして処理が実行される。   If it is determined that the processing has not been executed for all the external keys (NO in step S67), the processing returns to the above-described step S63 and is repeated. In this case, the processing is executed using the foreign key that has not been processed in step S63 and subsequent steps as the target foreign key.

一方、全ての外部キーについて処理が事項されたと判定された場合(ステップS67のYES)、入力値候補取得部32は、上記したステップS66において取得された参照時の表示項目の入力値の候補があるか否かを判定する(ステップS68)。   On the other hand, if it is determined that the processing has been performed for all the foreign keys (YES in step S67), the input value candidate acquisition unit 32 displays the input value candidates for the display items at the time of reference acquired in step S66 described above. It is determined whether or not there is (step S68).

参照時の表示項目の入力値の候補があると判定された場合(ステップS68のYES)、入力値候補取得部32は、当該参照時の表示項目の入力値の候補を入力値決定部33に対して出力する(ステップS69)。   When it is determined that there is an input value candidate for the display item at the time of reference (YES in step S68), the input value candidate acquisition unit 32 sets the input value candidate of the display item at the time of reference to the input value determination unit 33. In response, the data is output (step S69).

一方、参照時の表示項目の入力値の候補がないと判定された場合(ステップS68のNO)、ステップS69の処理は実行されない。   On the other hand, when it is determined that there is no input value candidate for the display item at the time of reference (NO in step S68), the process in step S69 is not executed.

また、上記したステップS63において参照時の表示形式の項目にポップアップが設定されていないと判定された場合およびステップS64において参照時の表示項目がnullでないと判定された場合、ステップS67の処理が実行される。   If it is determined in step S63 that the pop-up item is not set for the display format item at the time of reference, or if it is determined in step S64 that the display item at the time of reference is not null, the process of step S67 is executed. Is done.

上記したように第5の入力値候補取得処理においては、対象外部キーによって参照されるテーブル(対象外部キー参照先テーブル)を構成する複数のカラムのうちの排他制御用のカラムでないカラムの物理名が参照時の表示項目の入力値の候補として取得される。   As described above, in the fifth input value candidate acquisition process, the physical name of a column that is not a column for exclusive control among a plurality of columns constituting a table (target foreign key reference destination table) referenced by the target foreign key Is acquired as a candidate for the input value of the display item at the time of reference.

例えば、対象外部キー参照テーブルが図4に示す第2のテーブル情報222によって示される第2のテーブルである場合には、当該第2のテーブルを構成する複数のカラムのうちの当該第2のテーブル定義情報222aに含まれる排他制御の項目に「○」が設定されていないカラムの物理名「deptno」、「dname」および「loc」が参照時の表示項目の入力値の候補として取得される。   For example, when the target foreign key reference table is the second table indicated by the second table information 222 shown in FIG. 4, the second table of the plurality of columns constituting the second table. The physical names “deptno”, “dname”, and “loc” of columns for which “◯” is not set in the exclusive control item included in the definition information 222a are acquired as input value candidates for the display item at the time of reference.

このように入力値候補取得部32によって取得された参照時の表示項目の入力値の候補は、入力値決定部33に対して出力される。   Thus, the input value candidate of the display item at the time of reference acquired by the input value candidate acquisition unit 32 is output to the input value determination unit 33.

ここで、図31は、入力値決定部33に対して出力される参照時の表示項目の入力値の候補のデータ構造の一例を示す。   Here, FIG. 31 shows an example of the data structure of the input value candidate of the display item at the time of reference output to the input value determining unit 33.

図31に示すように、入力値決定部33に対して出力される参照時の表示項目の入力値の候補(参照時の表示項目入力値候補)には、上記した図30に示すステップS66において取得された参照時の表示項目の候補(対象外部キー参照先テーブルを構成する複数のカラムのうちの排他制御用のカラムでないカラムの物理名)が表示項目として含まれる。また、入力値決定部33に対して出力される参照時の表示項目の入力値の候補には、表示項目に加えて、テーブル名、テーブルIDおよび外部キー名が含まれる。   As shown in FIG. 31, the input value candidate of the display item at the time of reference output to the input value determining unit 33 (display item input value candidate at the time of reference) is displayed in step S66 shown in FIG. Display item candidates at the time of reference acquired (physical names of columns that are not exclusive control columns among a plurality of columns constituting the target foreign key reference destination table) are included as display items. In addition to the display items, candidates for input values of display items at the time of reference output to the input value determining unit 33 include a table name, a table ID, and a foreign key name.

テーブル名は、対象外部キーのカラムから構成されるテーブルのテーブル名である。テーブルIDは、対象外部キーのカラムから構成されるテーブルを識別するための識別子である。外部キー名は、対象外部キーの外部キー名である。   The table name is a table name of a table composed of columns of the target foreign key. The table ID is an identifier for identifying a table composed of columns of the target foreign key. The foreign key name is the foreign key name of the target foreign key.

参照時の表示形式の入力値の候補に含まれるテーブル名、テーブルIDおよび外部キー名は、上記した第5の入力値候補取得処理において取得されたテーブル情報(第1および第2のテーブル情報)から取得される。   The table name, table ID, and foreign key name included in the input value candidates in the display format at the time of reference are the table information (first and second table information) acquired in the fifth input value candidate acquisition process described above. Obtained from.

図31に示す例では、入力値決定部33に対して出力される参照時の表示項目の入力値の候補には、参照時の表示項目入力値候補1〜3が含まれる。   In the example illustrated in FIG. 31, the display item input value candidates at the time of reference output to the input value determination unit 33 include display item input value candidates 1 to 3 at the time of reference.

なお、図31に示す参照時の表示項目入力値候補1〜3は、例えば図3に示す第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に第2のテーブルが設定されている場合に第5の入力値候補取得処理において出力される参照時の表示形式の入力値の候補の一例である。   Note that the display item input value candidates 1 to 3 at the time of reference shown in FIG. 31 are set in the second table as items of the foreign key reference destination table included in the first reference destination table definition information 221b shown in FIG. It is an example of the input value candidate of the display format at the time of the reference output in the 5th input value candidate acquisition process in the case of being performed.

図31に示す例では、参照時の表示項目入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「deptno」が含まれている。これによれば、参照時の表示項目入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定すべき値の候補(参照時の表示項目の候補)が「deptno」であることを示している。   In the example shown in FIG. 31, the display item input value candidate 1 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display item “deptno”. . According to this, the display item input value candidate 1 at the time of reference is a value candidate (reference) to be set to the display item at the time of reference of the target foreign key (here, the foreign key whose foreign key name is “deptno”). The candidate for the display item at the time is “deptno”.

また、参照時の表示項目入力値候補2には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「dname」が含まれている。これによれば、参照時の表示項目入力値候補2は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定すべき値の候補(参照時の表示項目の候補)が「dname」であることを示している。   Further, the display item input value candidate 2 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display item “dname”. According to this, the display item input value candidate 2 at the time of reference is a value candidate (reference) to be set to the display item at the time of reference of the target foreign key (here, the foreign key whose foreign key name is “deptno”). The candidate for the display item at the time is “dname”.

また、参照時の表示項目入力値候補3には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「loc」が含まれている。これによれば、参照時の表示項目入力値候補3は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定される値の候補(参照時の表示項目の候補)が「loc」であることを示している。   The display item input value candidate 3 at the time of reference includes a table name “employee table”, a table ID “emp”, a foreign key name “deptno”, and a display item “loc”. According to this, the display item input value candidate 3 at the time of reference is a value candidate (reference) that is set to the display item at the time of reference of the target foreign key (here, the foreign key whose foreign key name is “deptno”). This indicates that the display item candidate) is “loc”.

上記した図31に示す形式の参照時の表示項目の入力値の候補が入力値決定部33に対して出力されると、入力値決定部33は、当該参照時の表示形式の入力値の候補を選択するための画面(以下、第5の入力値選択画面と表記)を表示する。   When the input value candidate of the display item at the time of reference in the format shown in FIG. 31 is output to the input value determining unit 33, the input value determining unit 33 selects the input value candidate of the display format at the reference time. Is displayed (hereinafter referred to as a fifth input value selection screen).

ここで、図32は、第5の入力値候補選択画面(参照時の表示項目入力値候補選択画面)の一例を示す。   Here, FIG. 32 shows an example of a fifth input value candidate selection screen (display item input value candidate selection screen at the time of reference).

第5の入力値候補選択画面440においては、対象外部キーの外部キー名に対応づけてプルダウン441が設けられている。なお、プルダウン441は、検索条件および一覧表示の各々について設けられている。この第5の入力値候補選択画面440に設けられているプルダウン441には、例えば図33に示すように参照時の表示項目の入力値の候補(ここでは、「deptno」、「dname」および「loc」)が設定されている。なお、図33に示すように、第5の入力値候補選択画面440に設けられているプルダウン441には、空欄が設定されており、検索条件のみには「なし」についても設定されている(一覧表示には「なし」は設定されていない)。   In the fifth input value candidate selection screen 440, a pull-down 441 is provided in association with the external key name of the target external key. The pull-down 441 is provided for each of the search conditions and the list display. In the pull-down 441 provided on the fifth input value candidate selection screen 440, for example, as shown in FIG. 33, input value candidates of display items at the time of reference (here, “deptno”, “dname”, and “ loc ") is set. As shown in FIG. 33, a blank is set in the pull-down 441 provided in the fifth input value candidate selection screen 440, and “none” is also set only in the search condition ( "None" is not set in the list display).

これにより、ユーザは、第5の入力値候補選択画面440を介して、参照時の表示項目の入力値の候補(つまり、参照時の表示項目の項目に設定すべき値の候補)の中から実際に入力値とすべき候補を選択することができる。   As a result, the user can select from the input value candidates for the display item at the time of reference (that is, the value candidates to be set in the item of the display item at the time of reference) via the fifth input value candidate selection screen 440. Candidates that should actually be input values can be selected.

第5の入力値候補選択画面440には、設定ボタン442が設けられている。ユーザが第5の入力値候補選択画面440に設けられているプルダウン441において所望の参照時の表示項目の入力値の候補を選択し、設定ボタン442を指定(押下)すると、当該選択された参照時の表示項目の入力値の候補が入力値として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。   A setting button 442 is provided on the fifth input value candidate selection screen 440. When a user selects an input value candidate of a display item at a desired reference time from a pull-down 441 provided on the fifth input value candidate selection screen 440 and designates (presses) a setting button 442, the selected reference is selected. The input value candidate of the display item at that time is determined as the input value, and the input value is reflected in the input information file 22 by the input information reflecting unit 34.

この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した参照時の表示項目の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル情報に含まれる対象外部キーの参照時の表示項目の項目(に含まれる検索条件および一覧表示の項目)に、入力値として決定された表示項目(ここでは、「(空欄)」、「なし」、「deptno」、「dname」または「loc」)を設定する。   In this case, the input information reflecting unit 34 stores the table information set in the input information file 22 (table information indicating a table identified by the table ID included in the input value candidate of the display item at the reference time described above). The display item (in this case, ((blank)) ”, which is determined as the input value for the item of the display item at the time of referencing the target foreign key included in the reference table information (the search condition and list display item included) "None", "deptno", "dname" or "loc").

なお、参照時の表示項目に関しては複数の値を設定することができる。このため、第5の入力値候補選択画面440においては、プルダウン追加ボタン443およびプルダウン削除ボタン444が設けられている。このプルダウン追加ボタン443がユーザによって指定(押下)されると、プルダウン441が1つ追加される。これにより、複数の参照時の表示項目に設定される値を複数選択することができる。一方、プルダウン削除ボタン444がユーザによって指定(押下)されると、プルダウン441が1つ削除される。   A plurality of values can be set for the display item at the time of reference. For this reason, a pull-down addition button 443 and a pull-down deletion button 444 are provided on the fifth input value candidate selection screen 440. When the pull-down addition button 443 is designated (pressed) by the user, one pull-down 441 is added. Thereby, it is possible to select a plurality of values to be set in a plurality of reference display items. On the other hand, when the pull-down delete button 444 is designated (pressed) by the user, one pull-down 441 is deleted.

上記したように本実施形態においては、入力情報ファイル22に設定されている複数のテーブル情報が取得され、当該複数のテーブル情報および入力値候補取得ルール保持部23に保持されているルール(例えば、第1のルール)に基づいて当該入力情報ファイル22に設定すべき値(入力値)の候補が取得される。   As described above, in the present embodiment, a plurality of table information set in the input information file 22 is acquired, and the plurality of table information and rules stored in the input value candidate acquisition rule storage unit 23 (for example, Based on the first rule, candidates for values (input values) to be set in the input information file 22 are acquired.

具体的には、本実施形態においては、入力情報ファイル22に設定されている複数のテーブル情報(例えば、第1および第2のテーブル情報)のうちの第1のテーブル情報によって示されるテーブル(第1のテーブル)を構成する複数のカラムのうちの1つである対象カラムが当該第1のテーブルにおいて主キーでない場合、当該第1のテーブルにおいて主キーであるカラムが当該第1のテーブルにおける外部キーの候補として取得される。   Specifically, in the present embodiment, a table (first table) indicated by first table information among a plurality of table information (for example, first and second table information) set in the input information file 22. If the target column that is one of a plurality of columns that constitute one table) is not the primary key in the first table, the column that is the primary key in the first table is the external in the first table. Obtained as a key candidate.

また、本実施形態においては、例えば第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つである対象カラムが当該第1のテーブルにおいて主キーでない場合、当該第1のテーブルとは異なるテーブル(例えば、第2のテーブル)を構成する複数のカラムのうち当該第2のテーブルにおいて主キーであるカラムが当該第2のテーブルを示す第2のテーブル情報に含まれる主キー情報(主キーの項目に設定されている値)に基づいて特定され、当該対象カラムのカラム名および当該特定されたカラムのカラム名が同一である場合には、当該第2のテーブルにおいて主キーであるカラムが第1のテーブルにおける外部キーの候補として取得される。   In the present embodiment, for example, if the target column that is one of the plurality of columns constituting the first table indicated by the first table information is not the primary key in the first table, the first table Among the plurality of columns constituting a table different from the one table (for example, the second table), the column that is the primary key in the second table is included in the second table information indicating the second table. If the column name of the target column and the column name of the specified column are the same as those specified based on the primary key information (value set in the primary key item), the second table The column that is the primary key is acquired as a foreign key candidate in the first table.

本実施形態においては、上記したように取得された外部キーの候補(外部キーの入力値の候補)がユーザに対して提示される。   In the present embodiment, the foreign key candidates (foreign key input value candidates) acquired as described above are presented to the user.

これにより、本実施形態においては、ユーザは提示された外部キーの候補の中から外部キー(実際に入力情報ファイル22に外部キーとして設定すべきカラム)を選択することが可能となるため、アプリケーションの自動生成に必要な情報の設定を支援することが可能となる。また、本実施形態においては、ユーザの操作に応じて決定された外部キー(を示す外部キー情報)を自動的に入力情報ファイル22に設定(反映)することができる。   Accordingly, in the present embodiment, the user can select a foreign key (a column to be actually set as a foreign key in the input information file 22) from the presented foreign key candidates. It is possible to support the setting of information necessary for automatic generation. In the present embodiment, a foreign key (indicating foreign key information) determined according to a user operation can be automatically set (reflected) in the input information file 22.

また、本実施形態においては、上記したように外部キーが入力情報ファイル22に設定された場合、外部キー名、外部キー参照先テーブルおよび外部キー参照先構成列の項目についても自動的に適切な値を入力情報ファイル22に設定することができる。   In the present embodiment, when the foreign key is set in the input information file 22 as described above, the items of the foreign key name, the foreign key reference destination table, and the foreign key reference destination configuration column are also automatically appropriate. A value can be set in the input information file 22.

また、本実施形態においては、外部キー参照先構成列として入力情報ファイル22に設定されたカラムの桁数に基づいて外部キー参照先テーブルとして入力情報ファイル22(の外部キー参照先テーブルの項目)に設定されたテーブルの表示形式の候補が取得され、当該取得された表示形式の候補がユーザに対して提示される。これにより、本実施形態においては、ユーザの操作に応じて、提示された表示形式の候補を、外部キー参照先テーブルの表示形式(入力情報ファイル22に設定すべき表示形式)として決定し、当該決定された表示形式を入力情報ファイル22に設定することができる。   Further, in the present embodiment, the input information file 22 (an item of the foreign key reference destination table) as the foreign key reference destination table based on the number of columns of the column set in the input information file 22 as the foreign key reference destination constituent column. The table display format candidates set in the table are acquired, and the acquired display format candidates are presented to the user. Thereby, in this embodiment, the presented display format candidate is determined as the display format of the foreign key reference table (display format to be set in the input information file 22) according to the user's operation, The determined display format can be set in the input information file 22.

また、本実施形態においては、外部キー参照先テーブルとして入力情報ファイル22(の外部キー参照先テーブルの項目)に設定されたテーブルを構成する複数のカラムのうちの排他制御用のカラムでないカラムが当該テーブルの表示項目の候補として取得され、当該取得された表示項目の候補がユーザに対して提示される。これにより、本実施形態においては、ユーザの操作に応じて、提示された表示項目の候補を、外部キー参照先テーブルの表示項目(入力情報ファイル22に設定すべき表示項目)として決定し、当該決定された表示項目を入力情報ファイル22に設定することができる。   In this embodiment, a column that is not a column for exclusive control among a plurality of columns constituting a table set in the input information file 22 (an item of the foreign key reference destination table) as the foreign key reference destination table is included. It is acquired as a display item candidate of the table, and the acquired display item candidate is presented to the user. Thereby, in this embodiment, according to a user's operation, the displayed display item candidate is determined as a display item (display item to be set in the input information file 22) of the foreign key reference table, and The determined display item can be set in the input information file 22.

なお、本願発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組合せてもよい。   Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

10…コンピュータ、20…外部記憶装置、22…入力情報ファイル、23…入力値候補取得ルール保持部、30…設定情報入力支援装置、31…入力情報取得部、32…入力値候補取得部、33…入力値決定部、34…入力情報反映部。   DESCRIPTION OF SYMBOLS 10 ... Computer, 20 ... External storage device, 22 ... Input information file, 23 ... Input value candidate acquisition rule holding | maintenance part, 30 ... Setting information input assistance apparatus, 31 ... Input information acquisition part, 32 ... Input value candidate acquisition part, 33 ... input value determination unit, 34 ... input information reflection unit.

Claims (6)

アプリケーションを自動生成するために必要な情報の設定を支援する設定情報入力支援装置において、
前記アプリケーションにおいて用いられる複数のカラムから構成される第1のテーブルを示す第1のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第1のテーブル情報と、前記アプリケーションにおいて用いられる複数のカラムから構成される第2のテーブルを示す第2のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第2のテーブル情報とを含む複数のテーブル情報が設定されている入力情報ファイルと、
前記入力情報ファイルに設定されている複数のテーブル情報を取得するテーブル情報取得手段と、
前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第1のテーブル情報に含まれる主キー情報に基づいて、当該第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つである対象カラムが主キーであるかを判定する第1の判定手段と、
前記対象カラムが主キーでないと前記第1の判定手段によって判定された場合、当該対象カラムから構成される第1のテーブルを構成する複数のカラムのうち当該第1のテーブルにおいて主キーであるカラムを、前記第1のテーブル情報に含まれる主キー情報に基づいて特定する第1の特定手段と、
前記第1の特定手段によって特定されたカラムを前記第1のテーブルにおける外部キーの候補として取得する第1の外部キー候補取得手段と、
前記対象カラムが主キーでないと前記第1の判定手段によって判定された場合、当該対象カラムから構成される第1のテーブル以外の第2のテーブルを構成する複数のカラムのうち当該第2のテーブルにおいて主キーであるカラムを、前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第2のテーブル情報に含まれる主キー情報に基づいて特定する第2の特定手段と、
前記第1のテーブル情報に含まれる前記対象カラムのカラム名および前記第2のテーブル情報に含まれる前記第2の特定手段によって特定されたカラムのカラム名が同一であるかを判定する第2の判定手段と、
前記対象カラムのカラム名および前記第2の特定手段によって特定されたカラムのカラム名が同一であると前記第2の判定手段によって判定された場合、当該第2の特定手段によって特定されたカラムを前記第1のテーブルにおける外部キーの候補として取得する第2の外部キー候補取得手段と、
前記第1および第2の外部キー候補取得手段によって外部キーの候補として取得されたカラムを提示する提示手段と
を具備することを特徴とする設定情報入力支援装置。
In a setting information input support device that supports setting of information necessary to automatically generate an application,
First key information indicating a first table composed of a plurality of columns used in the application, and indicating whether each of the columns is a primary key and each column of the columns First table information including a name and second table information indicating a second table composed of a plurality of columns used in the application, each column indicating whether or not each of the columns is a primary key An input information file in which a plurality of table information including primary key information and second table information including each column name of the column is set;
Table information acquisition means for acquiring a plurality of table information set in the input information file;
A plurality of columns constituting the first table indicated by the first table information based on the primary key information included in the first table information of the plurality of table information acquired by the table information acquisition means First determination means for determining whether the target column that is one of the primary keys is a primary key;
If the first determination unit determines that the target column is not the primary key, the column that is the primary key in the first table among the plurality of columns constituting the first table configured from the target column A first specifying means for specifying based on primary key information included in the first table information;
First foreign key candidate obtaining means for obtaining a column identified by the first identifying means as a foreign key candidate in the first table;
If the first determination unit determines that the target column is not a primary key, the second table among the plurality of columns constituting the second table other than the first table including the target column A second specifying means for specifying a column that is a primary key based on primary key information included in second table information of the plurality of table information acquired by the table information acquiring means;
A second determination unit that determines whether the column name of the target column included in the first table information and the column name of the column specified by the second specifying unit included in the second table information are the same; A determination means;
When the second determining unit determines that the column name of the target column and the column name of the column specified by the second specifying unit are the same, the column specified by the second specifying unit is Second foreign key candidate acquisition means for acquiring as a foreign key candidate in the first table;
A setting information input support device comprising: a presenting unit that presents a column acquired as a foreign key candidate by the first and second foreign key candidate acquiring unit.
ユーザの操作に応じて、前記提示されたカラムを前記第1のテーブルにおける外部キーとして決定する決定手段と、
前記決定されたカラムを外部キーとして前記入力情報ファイルに設定する設定手段と
を更に具備することを特徴とする請求項1記載の設定情報入力支援装置。
Determining means for determining the presented column as a foreign key in the first table in response to a user operation;
The setting information input support apparatus according to claim 1, further comprising setting means for setting the determined column in the input information file as an external key.
前記設定手段は、
前記提示されたカラムのうち前記第1の外部キー候補取得手段によって取得されたカラムが前記外部キーとして決定された場合、前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第1のテーブル情報に含まれる当該カラムのカラム名を外部キー名として前記入力情報ファイルに設定し、当該第1のテーブル情報によって示される第1のテーブルを当該外部キーによって参照される外部キー参照先テーブルとして前記入力情報ファイルに設定し、当該外部キー参照先テーブルとして前記入力情報ファイルに設定された第1のテーブルを構成する複数のカラムのうち当該第1のテーブルにおいて主キーであるカラムを外部キー参照先構成列として前記入力情報ファイルに設定し、
前記提示されたカラムのうち前記第2の外部キー候補取得手段によって取得されたカラムが前記外部キーとして決定された場合、前記テーブル情報取得手段によって取得された複数のテーブル情報のうちの第2のテーブル情報に含まれる当該カラムのカラム名を外部キー名として前記入力情報ファイルに設定し、当該第2のテーブル情報によって示される第2のテーブルを当該外部キーによって参照される外部キー参照先テーブルとして前記入力情報ファイルに設定し、当該外部キー参照先テーブルとして前記入力情報ファイルに設定された第2のテーブルを構成する複数のカラムのうち当該第2のテーブルにおいて主キーであるカラムを外部キー参照先構成列として前記入力情報ファイルに設定する
ことを特徴とする請求項2記載の設定情報入力支援装置。
The setting means includes
When the column acquired by the first foreign key candidate acquisition unit among the presented columns is determined as the foreign key, the first of the plurality of table information acquired by the table information acquisition unit The column name of the column included in the table information is set in the input information file as a foreign key name, and the first table indicated by the first table information is set as a foreign key reference table referenced by the foreign key. A column that is a primary key in the first table among a plurality of columns that constitute the first table set in the input information file and set in the input information file as the foreign key reference destination table is referred to the foreign key Set in the input information file as a destination configuration column,
When the column acquired by the second foreign key candidate acquisition unit among the presented columns is determined as the foreign key, the second of the plurality of table information acquired by the table information acquisition unit The column name of the column included in the table information is set in the input information file as a foreign key name, and the second table indicated by the second table information is set as a foreign key reference table referenced by the foreign key. The external key reference is made to the column that is the primary key in the second table among the plurality of columns that constitute the second table set in the input information file as the foreign key reference table set in the input information file. The setting information according to claim 2, wherein the setting information is set in the input information file as a destination configuration column. Information input support device.
表示形式候補取得手段を更に具備し、
前記入力情報ファイルに設定されている第1のテーブル情報は、当該第1のテーブル情報によって示される第1のテーブルを構成するカラムの各々の桁数を更に含み、
前記入力情報ファイルに設定されている第2のテーブル定義情報は、当該第2のテーブル情報によって示される第2のテーブルを構成するカラムの各々の桁数を更に含み、
前記表示形式候補取得手段は、前記第1または第2のテーブル情報に含まれる前記設定手段によって外部キー参照先構成列として前記入力情報ファイルに設定されたカラムの桁数に基づいて、前記設定手段によって外部キー参照先テーブルとして前記入力情報ファイルに設定された第1または第2のテーブルの表示形式の候補を取得し、
前記提示手段は、前記表示形式候補取得手段によって取得された表示形式の候補を更に提示し
前記決定手段は、前記ユーザの操作に応じて、前記表示形式の候補を、前記外部キー参照先テーブルとして前記入力情報ファイルに設定された前記第1または第2のテーブルの表示形式として決定し、
前記設定手段は、前記決定された表示形式を前記入力情報ファイルに設定する
ことを特徴とする請求項3記載の設定情報入力支援装置。
Further comprising a display format candidate acquisition means,
The first table information set in the input information file further includes the number of digits of each of the columns constituting the first table indicated by the first table information,
The second table definition information set in the input information file further includes the number of digits of each of the columns constituting the second table indicated by the second table information,
The display format candidate obtaining unit is configured to set the setting unit based on the number of columns of the column set in the input information file as a foreign key reference destination constituent column by the setting unit included in the first or second table information. To obtain a display format candidate of the first or second table set in the input information file as the foreign key reference destination table,
The presenting means further presents a display format candidate acquired by the display format candidate acquiring means,
The determining means determines the display format candidate as the display format of the first or second table set in the input information file as the foreign key reference table according to the operation of the user,
The setting information input support apparatus according to claim 3, wherein the setting unit sets the determined display format in the input information file.
表示項目候補取得手段を更に具備し、
前記入力情報ファイルに設定されている第1のテーブル情報は、当該第1のテーブル情報によって示される第1のテーブルを構成するカラムの各々が排他制御用のカラムであるか否かを示す排他制御情報を更に含み、
前記入力情報ファイルに設定されている第2のテーブル情報は、当該第2のテーブル情報によって示される第2のテーブルを構成するカラムの各々が排他制御用のカラムであるか否かを示す排他制御情報を更に含み、
前記表示項目候補取得手段は、前記第1または第2のテーブル情報に含まれる排他制御情報に基づいて、前記設定手段によって外部キー参照先テーブルとして前記入力情報ファイルに設定された第1または第2のテーブルを構成する複数のカラムのうち排他制御用のカラムでないカラムを当該第1または第2のテーブルの表示項目の候補として取得し、
前記提示手段は、前記表示項目候補取得手段によって取得された表示項目の候補を更に提示し
前記決定手段は、前記ユーザの操作に応じて、前記表示項目の候補を、前記外部キー参照先テーブルとして前記入力情報ファイルに設定された第1または第2のテーブルの表示項目として決定し、
前記設定手段は、前記決定された表示項目を前記入力情報ファイルに設定する
ことを特徴とする請求項4記載の設定情報入力支援装置。
It further comprises display item candidate acquisition means,
The first table information set in the input information file includes exclusive control indicating whether each of the columns constituting the first table indicated by the first table information is a column for exclusive control. Further including information,
The second table information set in the input information file includes exclusive control indicating whether or not each of the columns constituting the second table indicated by the second table information is a column for exclusive control. Further including information,
The display item candidate acquisition unit is configured to set the first or second set of the input information file as an external key reference destination table by the setting unit based on exclusive control information included in the first or second table information. A column that is not a column for exclusive control among a plurality of columns constituting the table is acquired as a display item candidate of the first or second table,
The presenting means further presents display item candidates acquired by the display item candidate acquiring means,
The determining means determines the display item candidates as display items of the first or second table set in the input information file as the foreign key reference table according to the operation of the user,
The setting information input support apparatus according to claim 4, wherein the setting unit sets the determined display item in the input information file.
アプリケーションにおいて用いられる複数のカラムから構成される第1のテーブルを示す第1のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第1のテーブル情報と、前記アプリケーションにおいて用いられる複数のカラムから構成される第2のテーブルを示す第2のテーブル情報であって当該カラムの各々が主キーであるか否かを示す主キー情報および当該カラムの各々のカラム名を含む第2のテーブル情報とを含む複数のテーブル情報が設定されている入力情報ファイルを有する外部記憶装置と、当該外部記憶装置を利用するコンピュータとから構成される設定情報入力支援装置において、前記コンピュータによって実行されるプログラムであって、
前記コンピュータに、
前記入力情報ファイルに設定されている複数のテーブル情報を取得するステップと、
前記取得された複数のテーブル情報のうちの第1のテーブル情報に含まれる主キー情報に基づいて、当該第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つである対象カラムが主キーであるかを判定するステップと、
前記対象カラムが主キーでないと判定された場合、当該対象カラムから構成される第1のテーブルを構成する複数のカラムのうち当該第1のテーブルにおいて主キーであるカラムを、前記第1のテーブル情報に含まれる第1の主キー情報に基づいて特定するステップと、
前記特定されたカラムを前記第1のテーブルにおける外部キーの候補として取得するステップと、
前記対象カラムが主キーでないと判定された場合、当該対象カラムから構成される第1のテーブル以外の第2のテーブルを構成する複数のカラムのうち当該第2のテーブルにおいて主キーであるカラムを、前記取得された複数のテーブル情報のうちの第2のテーブル情報に含まれる主キー情報に基づいて特定するステップと、
前記第1のテーブル情報に含まれる前記対象カラムのカラム名および第2のテーブル情報に含まれる前記特定された第2のテーブルにおいて主キーであるカラムのカラム名が同一であるかを判定するステップと、
前記対象カラムのカラム名および前記特定された第2のテーブルにおいて主キーであるカラムのカラム名が同一であると判定された場合、当該特定された第2のテーブルにおいて主キーであるカラムを前記第1のテーブルにおける外部キーの候補として取得するステップと、
前記外部キーの候補として取得されたカラムを提示するステップと
を実行させるためのプログラム。
1st table information which shows the 1st table comprised from the some column used in an application, Comprising: The primary key information which shows whether each of the said column is a primary key, and each column name of the said column And second table information indicating a second table composed of a plurality of columns used in the application, and a main key indicating whether each of the columns is a primary key. An external storage device having an input information file in which a plurality of table information including key information and second table information including each column name of the column is set, and a computer using the external storage device In the setting information input support device to be executed, a program executed by the computer,
In the computer,
Obtaining a plurality of table information set in the input information file;
One of the plurality of columns constituting the first table indicated by the first table information based on the primary key information included in the first table information among the plurality of acquired table information. Determining whether the target column is a primary key;
When it is determined that the target column is not a primary key, a column that is a primary key in the first table among a plurality of columns constituting the first table configured from the target column is determined as the first table. Identifying based on first primary key information included in the information;
Obtaining the identified column as a foreign key candidate in the first table;
If it is determined that the target column is not the primary key, the column that is the primary key in the second table among the plurality of columns constituting the second table other than the first table configured from the target column is determined. Identifying based on primary key information included in second table information of the plurality of acquired table information;
Determining whether the column name of the target column included in the first table information is the same as the column name of the column that is the primary key in the specified second table included in the second table information When,
When it is determined that the column name of the target column and the column name of the column that is the primary key in the specified second table are the same, the column that is the primary key in the specified second table is Obtaining as a foreign key candidate in the first table;
Presenting a column acquired as a candidate for the foreign key.
JP2011217615A 2011-09-30 2011-09-30 Setting information input support apparatus and program Active JP5487181B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011217615A JP5487181B2 (en) 2011-09-30 2011-09-30 Setting information input support apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011217615A JP5487181B2 (en) 2011-09-30 2011-09-30 Setting information input support apparatus and program

Publications (2)

Publication Number Publication Date
JP2013077218A JP2013077218A (en) 2013-04-25
JP5487181B2 true JP5487181B2 (en) 2014-05-07

Family

ID=48480621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011217615A Active JP5487181B2 (en) 2011-09-30 2011-09-30 Setting information input support apparatus and program

Country Status (1)

Country Link
JP (1) JP5487181B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6846554B1 (en) * 2020-03-06 2021-03-24 サイボウズ株式会社 Display control system, display control method, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08249338A (en) * 1995-03-08 1996-09-27 Nippon Telegr & Teleph Corp <Ntt> Database conceptual schema integration support device
JPH11296417A (en) * 1998-04-13 1999-10-29 Hitachi Ltd Method and apparatus for generating information management program
JP5023038B2 (en) * 2008-10-28 2012-09-12 株式会社東芝 Program generating program and program generating apparatus

Also Published As

Publication number Publication date
JP2013077218A (en) 2013-04-25

Similar Documents

Publication Publication Date Title
US10521191B1 (en) Multi-faceted search
TWI591496B (en) Generate, update the the pages of methods and equipment
US9208212B2 (en) Field extensibility in a multi-tenant environment with columnar database support
US9501474B2 (en) Enhanced use of tags when storing relationship information of enterprise objects
US8108360B2 (en) Database object update order determination
CN106940721B (en) Data processing method and system for user-defined selection box
US20010025287A1 (en) Document integrated management apparatus and method
US7827478B2 (en) Dynamic generation of form pages for accessing a database
CN108701121A (en) User&#39;s input is assigned to the multiple input domain in user interface
US20040044671A1 (en) Method for changing database construction information
JP5267732B2 (en) Web page control method, computer system, and program
US20130173521A1 (en) Knowledge base for service ticketing system
JP5487181B2 (en) Setting information input support apparatus and program
JP2018112919A (en) Test input information retrieval apparatus and method
US7610275B2 (en) Working with two different object types within the generic search tool
CN106372121B (en) Server and data processing method
JP2002073655A (en) Information search method, information search device, and program
JP5884925B2 (en) Management support apparatus, management support method, and management support program
JP4225384B2 (en) Data distribution system and method
JP6256079B2 (en) Search program, search method, and search device
JP2015095035A (en) Parameter setting support system, parameter setting support method, and parameter setting support program
JP5682452B2 (en) CHANGE MANAGEMENT SUPPORT DEVICE, CHANGE MANAGEMENT SUPPORT METHOD, AND CHANGE MANAGEMENT SUPPORT PROGRAM
JP2012038103A (en) Setting information input support program and setting information input support device
WO2004086272A1 (en) Project information providing system and project information providing method
JP5687918B2 (en) Business application component device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131202

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140224

R150 Certificate of patent or registration of utility model

Ref document number: 5487181

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350