JP5487181B2 - Setting information input support apparatus and program - Google Patents
Setting information input support apparatus and program Download PDFInfo
- 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
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.
上記したように、リレーショナルデータベースのテーブル間の参照関係に対応したアプリケーションを自動生成するためには、ユーザが多くの項目を設定する必要がある。 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.
以下、図面を参照して、実施形態について説明する。 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
この設定情報入力支援装置30は、例えばアプリケーションを自動生成するために必要な情報の設定を支援するために用いられる。
The setting information
図2は、図1に示す設定情報入力支援装置30の主として機能構成を示すブロック図である。
FIG. 2 is a block diagram mainly showing a functional configuration of the setting information
図2に示すように、設定情報入力支援装置30は、入力情報取得部31、入力値候補取得部32、入力値決定部33および入力情報反映部34を含む。本実施形態において、これらの各部31〜34は、図1に示すコンピュータ10が外部記憶装置20に格納されているプログラム21を実行することにより実現されるものとする。このプログラム21は、コンピュータ読み取り可能な記憶媒体に予め格納して頒布可能である。また、このプログラム21が、例えばネットワークを介してコンピュータ10にダウンロードされても構わない。
As illustrated in FIG. 2, the setting information
また、設定情報入力支援装置30は、入力情報ファイル22および入力値候補取得ルール保持部23を含む。本実施形態において、入力情報ファイル22および入力値候補取得ルール保持部23は、例えば外部記憶装置20に格納される。
The setting information
入力情報ファイル22には、例えばアプリケーションを自動生成するために必要な情報が設定される。この入力情報ファイル22に設定された情報は、例えばアプリケーションを自動生成する際に用いられる。
In the
入力情報ファイル22には、自動生成されるアプリケーションにおいて用いられる複数のカラムから構成されるテーブルを示すテーブル情報が当該テーブル毎に設定されている。入力情報ファイル22に設定されているテーブル情報には、当該テーブル情報によって示されるテーブルを構成するカラムの各々が主キーであるか否かを示す主キー情報および当該カラムのカラム名等が含まれる。なお、テーブル情報に含まれる主キー情報およびカラム名等の情報は、例えばユーザによって予め設定(入力)さている。
In the
なお、入力情報ファイル22には、予め設定されている情報以外に、テーブル情報によって示されるテーブルと例えば参照関係があるテーブル(以下、参照先テーブルと表記)についての情報等がアプリケーションを自動生成するために必要な情報として設定される。
In addition to the information set in advance, the
入力情報取得部31は、入力情報ファイル22に設定されているテーブル毎のテーブル情報(つまり、複数のテーブル情報)を、当該入力情報ファイル22から取得する。ここで、入力情報取得部31によって取得される複数のテーブル情報は、上記したようにユーザによって予め入力(設定)されている情報(入力情報)である。
The input
入力値候補取得ルール保持部23には、入力値候補取得部32によって用いられるルールが予め保持されている。この入力値候補取得ルール保持部23に保持されているルールの詳細については後述する。
The input value candidate acquisition rule holding unit 23 holds rules used by the input value
入力値候補取得部32は、入力情報取得部31によって取得された複数のテーブル情報(テーブル毎のテーブル情報)および入力値候補取得ルール保持部23に保持されているルールに基づいて、入力情報ファイル22に設定すべき値(入力値)の候補を取得する処理を実行する。
The input value
入力値決定部33は、入力値候補取得部32によって取得された入力値の候補を出力する。入力値決定部33は、ユーザの操作に応じて、出力された入力値の候補を入力情報ファイル22に設定すべき値(つまり、入力値)として決定する。
The input
入力情報反映部34は、入力値決定部33によって決定された入力値を入力情報ファイル22に設定(反映)する。
The input
図3および図4を参照して、図2に示す入力情報ファイル22のデータ構造について説明する。上述したように、入力情報ファイル22には、アプリケーションにおいて用いられるテーブル毎のテーブル情報(つまり、複数のテーブル情報)が設定される。
The data structure of the
入力情報ファイル22に設定されるテーブル情報の各々には、当該テーブル情報によって示されるテーブルの構造を定義するテーブル定義情報および当該テーブルと参照関係があるテーブル(参照先テーブル)についての情報(以下、参照先テーブル定義情報と表記)が含まれる。
Each piece of table information set in the
ここでは、入力情報ファイル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
図3は、入力情報ファイル22に設定されている第1のテーブル情報221のデータ構造の一例を示す。
FIG. 3 shows an example of the data structure of the
図3に示す第1のテーブル情報221は、第1のテーブル定義情報221aおよび第1の参照先テーブル定義情報221bを含む。
The
第1のテーブル定義情報221aには、テーブル名およびテーブルID(の項目)が含まれる。テーブル名の項目には、第1のテーブルのテーブル名が設定される。テーブルIDの項目には、第1のテーブルを識別するためのテーブルID(テーブル識別情報)が設定される。
The first
また、第1のテーブル定義情報221aには、第1のテーブルを構成するカラム毎に、当該カラムのカラム名(論理名、物理名)、型、桁、位取、Not Null、主キー、外部キー、検索条件、一覧表示および排他制御(の項目)が含まれる。
The first
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
図4は、入力情報ファイル22に設定されている第2のテーブル情報222のデータ構造の一例を示す。図4に示す第2のテーブル情報222は、第2のテーブル定義情報222aおよび第2の参照先テーブル定義情報222bを含む。
FIG. 4 shows an example of the data structure of the
第2のテーブル定義情報222aには、上記した第1のテーブル定義情報221aと同様に、テーブル名およびテーブルID(の項目)が含まれる。また、第2のテーブル定義情報222aには、第2のテーブルを構成するカラム毎に、当該カラムのカラム名(論理名、物理名)、型、桁、位取、Not Null、主キー、外部キー、検索条件、一覧表示および排他制御(の項目)が含まれる。なお、これらの項目については、上記した第1のテーブル定義情報221aにおいて説明した通りであるため、その詳しい説明を省略する。
The second
第2の参照先テーブル定義情報222bには、上記した第1の参照先テーブル定義情報221bと同様に、第2のテーブルにおける外部キー毎に、当該外部キーの外部キー名、外部キー参照先テーブル、外部キー参照先構成列、参照時の表示形式および参照時の表示項目(の項目)が含まれる。なお、これらの項目については、上記した第1の参照先テーブル定義情報222bにおいて説明した通りであるため、その詳しい説明を省略する。
The second reference destination
また、図3に示す第1のテーブル情報221と同様に、図4に示す第2のテーブル情報222において、点線枠101に該当する項目はユーザが設定する項目であり、太線枠102は設定情報入力支援装置30において入力支援が行われる項目である。
Similarly to the
本実施形態においては、図3に示す第1のテーブル情報221および図4に示す第2のテーブル情報222(を含む複数のテーブル情報)の点線枠101に該当する項目には、予めユーザによって値が設定(入力)されていることを前提としている。
In the present embodiment, items corresponding to the
なお、上記したように入力情報ファイル22に設定されるテーブル情報に含まれる参照先テーブル定義情報において、参照時の表示項目に含まれる検索条件および一覧表示の項目には例えばカラム名等が設定(指定)されるが、当該設定の仕方によって外部キー参照先テーブルについて複数通りの内容を表示させることが可能となる。
In the reference table definition information included in the table information set in the
ここで、図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
まず、図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
また、図6に示すように、参照画面300に設けられている一覧表示領域302には、上記した図4に示す第2のテーブル定義情報222aに含まれる一覧表示の項目において「表示」が設定されているカラムの論理名(カラム名)がラベルとして表示される。ここでは、参照画面300に設けられている一覧表示領域302には、一覧表示の項目に「表示」が設定されているカラムの論理名である「部署番号」、「部署名」および「所在地」がラベルとして表示されている。
Further, as shown in FIG. 6, “display” is set in the
次に、図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
また、図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
次に、図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
図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
入力値候補取得部32は、上述した入力値候補取得ルール保持部23に保持されているルールに含まれる第1〜第5のルールの各々を順に対象ルールとして以下のステップS1以降の処理を実行する。
The input value
入力情報取得部31は、入力情報ファイル22に設定されている複数のテーブル情報(の各項目に設定されている入力情報)を、当該入力情報ファイル22から取得する(ステップS1)。
The input
次に、入力値候補取得部32は、対象ルール(例えば、第1のルール)を用いて、入力情報ファイル22に設定すべき値(入力値)の候補を取得する処理(以下、入力値候補取得処理と表記)を実行する(ステップS2)。なお、ステップS2において実行される入力値候補取得処理の詳細については後述する。
Next, the input value
次に、ステップ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
入力値決定部33は、ユーザの操作に応じて、ユーザに対して提示された入力値の候補の中から入力値を決定する(ステップS4)。換言すれば、入力値決定部33は、ユーザに対して提示された入力値の候補のうち、当該ユーザによって指定された入力値の候補を入力値として決定する。
The input
入力情報反映部34は、入力値決定部33によって決定された入力値を入力情報ファイル22に反映(設定)する(ステップS5)。
The input
次に、第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
なお、第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
ここで、第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
なお、入力情報ファイル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
まず、図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
まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報(の各項目に設定されている値)を、当該入力情報取得部31から取得する(ステップS11)。この第1および第2のテーブル情報の各々には、上述したようにテーブル定義情報および参照先テーブル定義情報が含まれる。以下、第1のテーブル情報に含まれるテーブル定義情報を第1のテーブル定義情報、当該第1のテーブル情報に含まれる参照先テーブル定義情報を第1の参照先テーブル定義情報と称する。また、第2のテーブル情報に含まれるテーブル定義情報を第2のテーブル定義情報、当該第2のテーブル情報に含まれる参照先テーブル定義情報を第2の参照先テーブル定義情報と称する。
First, the input value
入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第1のルール(外部キー候補取得ルール)を取得する(ステップS12)。以下に説明するステップS13〜S18の処理は、この第1のルールに基づいて実行される。なお、第1のルールの内容については上述した図11において説明した通りであるため、ここでは詳しい説明を省略する。
The input value
次に、入力値候補取得部32は、ステップS11において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルを構成するカラムの各々について以下のステップS13以降の処理を実行する。以下、この処理の対象となるカラムを対象カラムとする。つまり、対象カラムとは、ステップS1において取得されたテーブル情報によって示されるテーブルを構成する複数のカラムのうちの1つのカラムである。ここでは、ステップS11において取得された第1および第2のテーブル情報のうちの第1のテーブル情報によって示される第1のテーブルを構成する複数のカラムのうちの1つが対象カラムであるものとする。
Next, the input value
入力値候補取得部32は、第1のテーブル情報に含まれる第1のテーブル定義情報に含まれる対象カラムの外部キー(の項目)がnullであるか否かを判定する(ステップS13)。
The input value
対象カラムの外部キーが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
対象カラムが主キーでないと判定された場合(ステップ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
対象カラムが排他制御用のカラムでないと判定された場合(ステップ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
この第1の外部キー候補特定処理では、入力値候補取得部32は、第1のテーブル定義情報に含まれる主キーの項目に設定されている値(主キー情報)に基づいて、対象カラムから構成される第1のテーブルにおいて主キーであるカラムを検索する。この場合、入力値候補取得部32は、第1のテーブル定義情報に含まれる主キーの項目を参照して第1のテーブルを構成するカラムの各々が主キーであるか否かを判定することによって、検索処理を実行する。入力値候補取得部32は、検索されたカラムを第1のテーブルにおける外部キーの候補として特定する。
In the first foreign key candidate specifying process, the input value
次に、入力値候補取得部32は、第1および第2のテーブル情報に含まれる第1および第2のテーブル定義情報に基づいて、第2の外部キー候補特定処理を実行する(ステップS17)。
Next, the input value
この第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
上記したように第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
なお、上記したステップ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
全てのカラムについて処理が実行されていないと判定された場合(ステップ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
外部キーの入力値の候補があると判定された場合(ステップ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
一方、外部キーの入力値の候補がないと判定された場合(ステップ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
外部キー名に対象カラムの物理名が設定されていないと判定された場合(ステップ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
一方、外部キー名に対象カラムの物理名が設定されていると判定された場合(ステップ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
まず、図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
この場合、図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
次に、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「氏名」カラムが対象カラムである場合を想定する。
Next, it is assumed that the “name” column of the plurality of columns constituting the first table indicated by the
この場合、図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
ここで、対象カラムである「氏名」カラムから構成される第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
ここで、対象カラムである「氏名」カラムの物理名(ここでは、「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
次に、図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
この場合、図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
ここで、対象カラムである「部署番号」カラムから構成される第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
ここで、対象カラムである「部署番号」カラムの物理名および第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
この場合、図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
上記したように入力値候補取得部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
ここで、図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
図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
対象カラム名は、外部キーの入力値の候補が取得された際における対象カラムのカラム名(物理名)である。テーブル名は、対象カラムから構成されるテーブルのテーブル名である。テーブル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
入力値決定部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
図15に示す例では、外部キーの入力値の候補には、外部キー入力値候補1および2が含まれる。
In the example shown in FIG. 15, the foreign key
なお、図15に示す外部キー入力候補1および2は、上記した図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する複数のカラムのうちの「部署番号」カラムが対象カラムである場合に第1の入力値候補取得処理において出力される外部キーの入力値の候補の一例を示す。
Note that the foreign
外部キー入力値候補1には、対象カラム名「deptno」、テーブル名「従業員テーブル」、テーブルID「emp」、参照先テーブル名「従業員テーブル」、参照先テーブルID「emp」および参照先テーブル主キー「empno」が含まれている。これによれば、外部キー入力値候補1は、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する「部署番号」カラム(物理名が「deptno」であるカラム)が対象カラムである場合における外部キーの入力値の候補が「従業員番号」カラム(の物理名)であることを示している。なお、この外部キーの入力値の候補である「従業員番号」カラムは、上記した第1の外部キー候補特定処理において特定されたカラムである。
The external key
また、外部キー入力値候補2には、対象カラム名「deptno」、テーブル名「従業員テーブル」、テーブルID「emp」、参照先テーブル名「部署テーブル」、参照先テーブルID「dept」および参照先テーブル主キー「deptno」が含まれている。これによれば、外部キー入力値候補2は、図3に示す第1のテーブル情報221によって示される第1のテーブルを構成する「部署番号」カラム(物理名が「deptno」であるカラム)が対象カラムである場合における外部キーの入力値の候補が「部署番号」カラム(の物理名)であることを示している。なお、この外部キーの入力値の候補である「部署番号」カラムは、上記した第2の外部キー候補特定処理において特定されたカラムである。
The foreign key
ここでは、図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
なお、図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
ここで、図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
また、第1の入力値候補選択画面400には、図15に示す入力値決定部33に対して出力された外部キーの入力値の候補に含まれる対象カラム名(ここでは、論理名および物理名)が表示されている。
Further, the first input value
更に、第1の入力値候補選択画面400においては、対象カラム名に対応づけてプルダウン401が設けられている。この第1の入力値候補選択画面400に設けられているプルダウン401には、例えば図17に示すように外部キーの入力値の候補(ここでは、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。なお、図17は、論理名「部署番号」および物理名「deptno」に対応づけられているプルダウン401の表示(つまり、対象カラムが「部署番号」カラムである場合における外部キーの入力値の候補)の例を示す。つまり、図17に示すように、論理名「部署番号」および物理名「deptno」に対応づけられているプルダウン401においては、上記した図15に示す外部キー入力値候補1および2の各々に含まれる参照先テーブルIDおよび参照先テーブル主キーの組(つまり、外部キーの入力値の候補)が表示される。
Further, in the first input value
これにより、ユーザは、第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
また、第1の入力値候補選択画面400には、設定ボタン402が設けられている。ユーザが第1の入力値候補選択画面400に設けられているプルダウン401において所望の外部キーの入力値の候補を選択し、設定ボタン402を指定(押下)すると、当該選択された外部キーの入力値の候補が入力値(外部キーとして設定すべきカラム)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。
In addition, a
この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キーの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)に含まれるテーブル定義情報において、入力値として決定されたカラム(外部キーの入力値の候補であるカラム)の外部キーの項目に「○」を設定する。これにより、入力値として決定されたカラムが外部キーとして設定される。
In this case, the input
また、入力情報反映部34は、外部キーとして設定されたカラムの物理名(外部キーの入力値の候補に参照先テーブル主キーとして含まれるカラムの物理名)を、当該外部キーの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報の参照先テーブル定義情報に含まれる外部キー名の項目に設定する。
Further, the input
また、入力情報反映部34は、外部キーとして設定されたカラムの物理名が設定された外部キー名の項目を含む参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に、当該外部キーによって参照されるテーブル(外部キー参照先テーブル)を設定する。この場合、入力情報反映部34は、外部キー参照先テーブルのテーブル名(外部キーの入力値の候補に含まれる参照先テーブル名)を、外部キー参照先テーブルの項目に含まれる名称の項目に設定する。また、入力情報反映部34は、外部キー参照先テーブルのテーブルID(外部キーの入力値の候補に含まれる参照先テーブルID)を、外部キー参照先テーブルの項目に含まれるIDの項目に設定する。
Further, the input
更に、入力情報反映部34は、外部キー参照先テーブルの項目に設定されたテーブル(外部キー参照先テーブル)において主キーであるカラムの物理名(外部キーの入力値の候補に含まれる参照先テーブル主キー)を、外部キーとして設定されたカラムの物理名が設定された外部キー名の項目を含む参照先テーブル定義情報に含まれる外部キー参照先構成列の項目に設定する。
Further, the input
つまり、第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
なお、第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
まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS31)。
First, the input value
入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第2のルール(外部キー参照先テーブル候補取得ルール)を取得する(ステップS32)。以下に説明するステップS33〜S36の処理は、この第2のルールに基づいて実行される。なお、第2のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。
The input value
次に、入力値候補取得部32は、ステップS31において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS33以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。
Next, the input value
入力値候補取得部32は、ステップS31において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの外部キー参照先テーブルの項目に含まれるID(の項目)がnullであるか否かを判定する(ステップS33)。
The input value
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
ここで、該当テーブルとは、第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
対象外部キーの外部キー名を物理名とするカラムが第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
次に、入力値候補取得部32は、ステップS31において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS33以降の処理が実行されたか否かを判定する(ステップS37)。
Next, the input value
全ての外部キーについて処理が実行されていないと判定された場合(ステップ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
外部キー参照先テーブルの入力値の候補があると判定された場合(ステップ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
一方、外部キー参照先テーブルの入力値の候補がないと判定された場合(ステップ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
このように入力値候補取得部32によって取得された外部キー参照先テーブルの入力値の候補は、入力値決定部33に対して出力される。
In this way, the input value candidates in the foreign key reference table acquired by the input value
ここで、図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
図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
テーブル名は、対象外部キーとして設定されているカラム(対象外部キーのカラム)から構成されるテーブル(つまり、当該対象外部キーが設定されているテーブル)のテーブル名である。テーブル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
なお、図19に示す外部キー参照先テーブル入力値候補1は、上記した図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー名の項目に例えば「deptno」が設定されていた場合に第2の入力値候補取得処理において出力される外部キー参照先テーブルの入力値の候補の一例である。
Note that the foreign key reference destination table
この外部キー参照先テーブル入力値候補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
上記した図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
ここで、図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
また、第2の入力値候補選択画面410においては、対象外部キーの外部キー名に対応づけてプルダウン411が設けられている。この第2の入力値候補選択画面410に設けられているプルダウン411には、例えば図21に示すように外部キー参照先テーブルの入力値の候補(ここでは、参照先テーブル名、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。
Further, in the second input value
これにより、ユーザは、第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
また、第2の入力値候補選択画面410には、設定ボタン412が設けられている。ユーザが第2の入力値候補選択画面410に設けられているプルダウン411において所望の外部キー参照先テーブルの入力値の候補を選択し、設定ボタン412を指定(押下)すると、当該選択された外部キー参照先テーブルの入力値の候補が入力値(外部キー参照先テーブルの項目に設定すべきテーブル名およびテーブルID)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。
The second input value
この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キー参照先テーブルの入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目(に含まれる名称およびIDの項目)に、入力値として決定されたテーブル名およびテーブルID(外部キー参照先テーブルの入力値の候補に含まれる参照先テーブル名および参照先テーブルID)を設定する。これにより、入力情報反映部34は、参照先テーブル定義情報に含まれる外部キー参照先テーブルの項目に対象外部キーによって参照されるテーブルを設定する。
In this case, the input
また、入力情報反映部34は、外部キー参照先テーブルの項目に設定されたテーブルにおいて主キーであるカラムの物理名(外部キー参照先テーブルの入力値の候補に含まれる参照先テーブル主キー)を、当該外部キー参照先テーブルの項目を含む参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先構成列の項目に設定する。
Further, the input
つまり、第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
まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS41)。
First, the input value
入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第3のルール(外部キー参照先構成列候補取得ルール)を取得する(ステップS42)。以下に説明するステップS43〜S45の処理は、この第3のルールに基づいて実行される。なお、第3のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。
The input value
次に、入力値候補取得部32は、ステップS41において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS43以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。
Next, the input value
入力値候補取得部32は、ステップS41において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの外部キー参照先構成列(の項目)がnullであるか否かを判定する(ステップS43)。
The input value
外部キー参照先構成列が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
なお、対象外部キーの外部キー参照先テーブルの項目にテーブル名およびテーブル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
入力値候補取得部32は、特定されたカラム(ここでは、第2のテーブルにおいて主キーであるカラム)の物理名を第1の参照先テーブル定義情報に含まれる外部キー参照先構成列の入力値の候補として取得する(ステップ45)。なお、第2のテーブルにおいて主キーであるカラムの物理名は、第2のテーブル情報から取得される。
The input value
なお、例えば上述した図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
全ての外部キーについて処理が実行されていないと判定された場合(ステップ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
外部キー参照先構成列の入力値の候補があると判定された場合(ステップ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
一方、外部キー参照先構成列の入力値の候補がないと判定された場合(ステップ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
このように入力値候補取得部32によって取得された外部キー参照先構成列の入力値の候補は、入力値決定部33に対して出力される。
In this way, the input value candidates of the foreign key reference destination configuration column acquired by the input value
ここで、図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
図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
なお、図23に示す外部キー参照先構成列入力値候補1は、上記した図3に示す第1のテーブル情報221の第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に、図4に示す第2のテーブル情報222に含まれるテーブル名およびテーブルIDが設定されていた場合に第3の入力値候補取得処理において出力される外部キー参照先構成列の入力値の候補の一例である。
Note that the foreign key reference destination configuration column
この外部キー参照先構成列入力値候補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
上記した図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
ここで、図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
また、第3の入力値候補選択画面420においては、対象外部キーの外部キー名に対応づけてプルダウン421が設けられている。この第3の入力値候補選択画面420に設けられているプルダウン421には、例えば図25に示すように外部キー参照先構成列の入力値の候補(ここでは、参照先テーブル名、参照先テーブルIDおよび参照先テーブル主キーの組)が設定されている。
In the third input value
これにより、ユーザは、第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
また、第3の入力値候補選択画面420には、設定ボタン422が設けられている。ユーザが第3の入力値候補選択画面420に設けられているプルダウン421において所望の外部キー参照先構成列の入力値の候補を選択し、設定ボタン422を指定(押下)すると、当該選択された外部キー参照先構成列の入力値の候補が入力値(外部キー参照先構成列に設定すべきカラムの物理名)として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。
In addition, a
この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した外部キー参照先構成列の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる対象外部キーの外部キー参照先構成列の項目に、入力値として決定されたカラムの物理名(外部キー参照先構成列の入力値の候補に含まれる参照先テーブル主キー)を設定する。
In this case, the input
次に、図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
なお、第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
まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS51)。
First, the input value
入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第4のルール(参照時の表示形式候補取得ルール)を取得する(ステップS52)。以下に説明するステップS53〜S56の処理は、この第4のルールに基づいて実行される。なお、第4のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。
The input value
次に、入力値候補取得部32は、ステップS51において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS53以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。
Next, the input value
入力値候補取得部32は、ステップS51において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの参照時の表示形式(の項目)がnullであるか否かを判定する(ステップS53)。
The input value
参照時の表示形式が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
次に、入力値候補取得部32は、特定されたカラムから構成されるテーブルを示すテーブル情報(ここでは、第2のテーブル情報)に含まれるテーブル定義情報に含まれる当該カラムの桁(の項目に設定されている値)が2以上であるか否かを判定する(ステップS54)。
Next, the input value
カラムの桁が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
一方、カラムの桁が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
ステップS55またはS56の処理が実行されると、入力値候補取得部32は、ステップS51において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS53以降の処理が実行されたか否かを判定する(ステップS57)。
When the process of step S55 or S56 is executed, the input value
全ての外部キーについて処理が実行されていないと判定された場合(ステップ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
参照時の表示形式の入力値の候補があると判定された場合(ステップ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
一方、参照時の表示形式の入力値の候補がないと判定された場合(ステップ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
このように入力値候補取得部32によって取得された参照時の表示形式の入力値の候補は、入力値決定部33に対して出力される。
In this way, the input value candidates in the display format at the time of reference acquired by the input value
ここで、図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
図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
テーブル名は、対象外部キーのカラムから構成されるテーブルのテーブル名である。テーブル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
なお、図27に示す参照時の表示形式入力値候補1〜4は、例えば図3に示す第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に第2のテーブルが設定されており、外部キー参照先構成列の項目に図4に示す第2のテーブル定義情報222aに含まれる「部署番号」カラムの物理名「deptno」が設定されている場合に第4の入力値候補取得処理において出力される参照時の表示形式の入力値の候補(ここでは、ポップアップ、チェックボックス、ラジオボタン、コンボボックスおよびリストボックス)の一例である。
For example, the display format
図27に示す例では、参照時の表示形式入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。
In the example shown in FIG. 27, the display format
また、参照時の表示形式入力値候補2には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。
Further, the display format
また、参照時の表示形式入力値候補3には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。
Further, the display format
また、参照時の表示形式入力値候補4には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示形式「ポップアップ」が含まれている。これによれば、参照時の表示形式入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示形式の項目に設定すべき値の候補(参照時の表示形式の入力値の候補)がポップアップであることを示している。
The display format
これらの例では、外部キー名が「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
ここで、図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
また、第4の入力値候補選択画面430においては、対象外部キーの外部キー名に対応づけてプルダウン431が設けられている。この第4の入力値候補選択画面430に設けられているプルダウン431には、例えば図29に示すように参照時の表示形式の入力値の候補(ここでは、ポップアップ)が設定されている。
In the fourth input value
これにより、ユーザは、第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
また、第4の入力値候補選択画面430には、設定ボタン432が設けられている。ユーザが第4の入力値候補選択画面430に設けられているプルダウン431において所望の参照時の表示形式の入力値の候補を選択し、設定ボタン432を指定(押下)すると、当該選択された参照時の表示形式の入力値の候補が入力値として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。
In addition, a
この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した参照時の表示形式の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル定義情報に含まれる対象外部キーの参照時の表示形式の項目に、入力値として決定された表示形式(ここでは、ポップアップ)を設定する。
In this case, the input
次に、図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
なお、第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
まず、入力値候補取得部32は、入力情報取得部31によって取得された第1および第2のテーブル情報を、当該入力情報取得部31から取得する(ステップS61)。
First, the input value
入力値候補取得部32は、入力値候補取得ルール保持部23に保持されているルールに含まれる第5のルール(参照時の表示項目候補取得ルール)を取得する(ステップS62)。以下に説明するステップS63〜S67の処理は、この第5のルールに基づいて実行される。なお、第5のルールの内容は上述した図11において説明した通りであるため、ここではその詳しい説明を省略する。
The input value
次に、入力値候補取得部32は、ステップS61において取得されたテーブル情報(ここでは、第1および第2のテーブル情報)によって示されるテーブルにおける外部キー(当該第1および第2のテーブル情報の参照先テーブル定義情報に含まれる外部キー名)の各々について以下のステップS63以降の処理を実行する。以下、この処理の対象となる外部キーを対象外部キーとする。ここでは、対象外部キーは、第1のテーブルにおける外部キーであるものとする。
Next, the input value
入力値候補取得部32は、ステップS61において取得された第1のテーブル情報に含まれる参照先テーブル定義情報(第1の参照先テーブル定義情報)を参照して、対象外部キーの参照時の表示形式の項目にポップアップが設定されているか否かを判定する(ステップS63)。
The input value
参照時の表示形式の項目にポップアップが設定されていると判定された場合(ステップ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
参照時の表示項目が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
入力値候補取得部32は、特定されたカラムの物理名を参照時の表示項目の入力値の候補として取得する(ステップS66)。入力値候補取得部32によって特定されたカラムの物理名は、第2のテーブルを示す第2のテーブル情報に含まれるテーブル定義情報(第2のテーブル定義情報)から取得される。
The input value
入力値候補取得部32は、ステップS61において取得されたテーブル情報(第1および第2のテーブル情報)によって示されるテーブルにおける全ての外部キー(つまり、当該第1および第2のテーブル情報において設定されている全ての外部キー)について上記したステップS63以降の処理が実行されたか否かを判定する(ステップS67)。
The input value
全ての外部キーについて処理が実行されていないと判定された場合(ステップ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
参照時の表示項目の入力値の候補があると判定された場合(ステップ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
一方、参照時の表示項目の入力値の候補がないと判定された場合(ステップ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
このように入力値候補取得部32によって取得された参照時の表示項目の入力値の候補は、入力値決定部33に対して出力される。
Thus, the input value candidate of the display item at the time of reference acquired by the input value
ここで、図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
図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
テーブル名は、対象外部キーのカラムから構成されるテーブルのテーブル名である。テーブル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
なお、図31に示す参照時の表示項目入力値候補1〜3は、例えば図3に示す第1の参照先テーブル定義情報221bに含まれる外部キー参照先テーブルの項目に第2のテーブルが設定されている場合に第5の入力値候補取得処理において出力される参照時の表示形式の入力値の候補の一例である。
Note that the display item
図31に示す例では、参照時の表示項目入力値候補1には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「deptno」が含まれている。これによれば、参照時の表示項目入力値候補1は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定すべき値の候補(参照時の表示項目の候補)が「deptno」であることを示している。
In the example shown in FIG. 31, the display item
また、参照時の表示項目入力値候補2には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「dname」が含まれている。これによれば、参照時の表示項目入力値候補2は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定すべき値の候補(参照時の表示項目の候補)が「dname」であることを示している。
Further, the display item
また、参照時の表示項目入力値候補3には、テーブル名「従業員テーブル」、テーブルID「emp」、外部キー名「deptno」および表示項目「loc」が含まれている。これによれば、参照時の表示項目入力値候補3は、対象外部キー(ここでは、外部キー名が「deptno」である外部キー)の参照時の表示項目に設定される値の候補(参照時の表示項目の候補)が「loc」であることを示している。
The display item
上記した図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
ここで、図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
これにより、ユーザは、第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
第5の入力値候補選択画面440には、設定ボタン442が設けられている。ユーザが第5の入力値候補選択画面440に設けられているプルダウン441において所望の参照時の表示項目の入力値の候補を選択し、設定ボタン442を指定(押下)すると、当該選択された参照時の表示項目の入力値の候補が入力値として決定され、当該入力値が入力情報反映部34によって入力情報ファイル22に反映される。
A
この場合、入力情報反映部34は、入力情報ファイル22に設定されているテーブル情報(上記した参照時の表示項目の入力値の候補に含まれるテーブルIDによって識別されるテーブルを示すテーブル情報)の参照先テーブル情報に含まれる対象外部キーの参照時の表示項目の項目(に含まれる検索条件および一覧表示の項目)に、入力値として決定された表示項目(ここでは、「(空欄)」、「なし」、「deptno」、「dname」または「loc」)を設定する。
In this case, the input
なお、参照時の表示項目に関しては複数の値を設定することができる。このため、第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-
上記したように本実施形態においては、入力情報ファイル22に設定されている複数のテーブル情報が取得され、当該複数のテーブル情報および入力値候補取得ルール保持部23に保持されているルール(例えば、第1のルール)に基づいて当該入力情報ファイル22に設定すべき値(入力値)の候補が取得される。
As described above, in the present embodiment, a plurality of table information set in the
具体的には、本実施形態においては、入力情報ファイル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
また、本実施形態においては、例えば第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
また、本実施形態においては、上記したように外部キーが入力情報ファイル22に設定された場合、外部キー名、外部キー参照先テーブルおよび外部キー参照先構成列の項目についても自動的に適切な値を入力情報ファイル22に設定することができる。
In the present embodiment, when the foreign key is set in the
また、本実施形態においては、外部キー参照先構成列として入力情報ファイル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
また、本実施形態においては、外部キー参照先テーブルとして入力情報ファイル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
なお、本願発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組合せてもよい。 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
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記載の設定情報入力支援装置。 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のテーブルを構成する複数のカラムのうちの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.
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)
| 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)
| 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 |
-
2011
- 2011-09-30 JP JP2011217615A patent/JP5487181B2/en active Active
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'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 |