JP6677809B2 - Adapter generation apparatus and method - Google Patents

Adapter generation apparatus and method Download PDF

Info

Publication number
JP6677809B2
JP6677809B2 JP2018523222A JP2018523222A JP6677809B2 JP 6677809 B2 JP6677809 B2 JP 6677809B2 JP 2018523222 A JP2018523222 A JP 2018523222A JP 2018523222 A JP2018523222 A JP 2018523222A JP 6677809 B2 JP6677809 B2 JP 6677809B2
Authority
JP
Japan
Prior art keywords
data
adapter
cim
information
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018523222A
Other languages
Japanese (ja)
Other versions
JPWO2017221364A1 (en
Inventor
出射 英臣
英臣 出射
陽介 石井
陽介 石井
康志 宮田
康志 宮田
聡 家坂
聡 家坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Publication of JPWO2017221364A1 publication Critical patent/JPWO2017221364A1/en
Application granted granted Critical
Publication of JP6677809B2 publication Critical patent/JP6677809B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Description

本発明は、アダプタ生成装置及び方法に関し、例えば、CIM(Common Information Model)のようなデータモデルのデータをリレーショナルデータベース(RDB:Relational Data Base)形式のデータに変換するアダプタを生成するアダプタ生成装置に適用して好適なものである。   The present invention relates to an adapter generation apparatus and method, for example, an adapter generation apparatus that generates an adapter that converts data of a data model such as a CIM (Common Information Model) into data of a relational database (RDB: Relational Data Base) format. It is suitable for application.

近年、例えばビッグデータ分析のように、多種多様なデータを収集及び蓄積し、蓄積したデータを統合的に分析することで新たな付加価値を提供することが求められている。このような状況のもと、データ形式の混在はデータ分析のための準備作業に時間がかかり、利便性を損なうため、標準データモデルCIM(Common Information Model)の国際規格化(標準化)が進められている。   In recent years, there has been a demand for collecting and accumulating various kinds of data and providing new added value by analyzing the accumulated data in an integrated manner, for example, as in big data analysis. Under such circumstances, if data formats are mixed, preparation work for data analysis takes time and the convenience is impaired. Therefore, international standardization (standardization) of a standard data model CIM (Common Information Model) is promoted. ing.

CIMで表現されたデータ(以下、これをCIMデータと呼ぶ)を取り扱う方法の1つとして、当該CIMデータをリレーショナルデータベースのデータとして管理する方法がある。CIMデータをリレーショナルデータベースのデータとして蓄積することにより、CIMデータをRDBMS(RDB Management System)の機能によって容易に蓄積することができ、またこれらCIMデータの分析もRDBMSの機能によって容易に実現可能となる。   As one of methods for handling data expressed in CIM (hereinafter referred to as CIM data), there is a method of managing the CIM data as data of a relational database. By accumulating the CIM data as data of the relational database, the CIM data can be easily accumulated by the function of the RDBMS (RDBMS), and the analysis of the CIM data can be easily realized by the function of the RDBMS. .

ただし、CIMデータをリレーショナルデータベースで管理するためには、CIMデータを外部システム(例えば、クライアント計算機)とデータ交換するためのアダプタ(以下、これをCIMアダプタと呼ぶ)が必要となる。   However, in order to manage the CIM data in the relational database, an adapter for exchanging the CIM data with an external system (for example, a client computer) (hereinafter referred to as a CIM adapter) is required.

CIMアダプタは、CIMのオブジェクト表現とリレーショナルデータベースのリレーショナルモデルとの変換、及び、CIMデータ交換のためのCIM/XML(Extensible Markup Language)との変換を行う機能を有するが、アプリが取り扱うCIMデータモデルの内容やバージョンが変われば(つまり、CIMプロファイルが変われば)、その都度CIMアダプタもそれに合ったものを用意しなければならない。このためCIMアダプタの開発コストは非常に大きい。   The CIM adapter has a function of converting between a CIM object representation and a relational model of a relational database, and a conversion between CIM / XML (Extensible Markup Language) for exchanging CIM data. If the content or version of the CIM changes (that is, if the CIM profile changes), the CIM adapter must be prepared each time. For this reason, the development cost of the CIM adapter is very large.

特許文献1には、複数バージョンのオントロジを含むインスタンスを作成することが可能なデータ処理装置及び方法が開示されている。この特許文献1に開示されたデータ処理装置及び方法によれば、バージョンの異なるCIMプロファイルに対して、所定クラスのインスタンスを入力するためのデータシートを自動生成する装置及び方法を提供し、開発コストを低減することが可能である。   Patent Literature 1 discloses a data processing device and method capable of creating an instance including a plurality of versions of an ontology. According to the data processing apparatus and method disclosed in Patent Document 1, there is provided an apparatus and method for automatically generating a data sheet for inputting an instance of a predetermined class for CIM profiles having different versions, and the development cost is reduced. Can be reduced.

国際公開第2014/189056号International Publication No. 2014/189056 特開2010−249924号公報JP 2010-249924 A

ところが、特許文献1で開示された技術では、1つのインスタンス作成部は1つのデータ出力部を持つのみであり、例えば複数のCIMプロファイルを組み合わせた出力結果を得たい場合には引用文献1に開示された技術では対応できない問題がある。   However, in the technology disclosed in Patent Literature 1, one instance creation unit has only one data output unit. For example, when it is desired to obtain an output result obtained by combining a plurality of CIM profiles, the technology is disclosed in Patent Literature 1. There is a problem that cannot be dealt with by the technology.

また特許文献2には、効率的なシステム開発を支援することを目的に、複数のデータアクセス部品を自動生成する装置及び方法が開示されている。ただし、これら装置及び方法は、CIMデータモデルのような階層構造の複数クラスの集合には未対応である。   Patent Document 2 discloses an apparatus and a method for automatically generating a plurality of data access components for the purpose of supporting efficient system development. However, these apparatuses and methods do not support a set of a plurality of classes having a hierarchical structure such as a CIM data model.

また、これら特許文献1及び特許文献2の発明を組み合わせることによって、CIMデータモデルに対応した複数のデータ出力形式を有するデータアクセス部品を自動生成することは可能かもしれないが、CIMデータモデルのバージョンアップや顧客開発、CIMプロファイルの種類、1つのCIMプロファイル当りのクラス数(最大数百クラス)、SQLのパターンの全ての組合せでデータアクセス部品が必要となり、その数は膨大なものとなる。   Also, by combining the inventions of Patent Document 1 and Patent Document 2, it may be possible to automatically generate a data access component having a plurality of data output formats corresponding to the CIM data model. Data access components are required for all combinations of upgrades, customer development, types of CIM profiles, the number of classes per CIM profile (maximum several hundred classes), and SQL patterns, and the number is enormous.

本発明は以上の点を考慮してなされたもので、データ形式を変換するアダプタを容易かつ短時間に作成し得るアダプタ生成装置及び方法を提案しようとするものである。   The present invention has been made in view of the above points, and an object of the present invention is to propose an adapter generating apparatus and method capable of easily and quickly creating an adapter for converting a data format.

かかる課題を解決するため本発明においては、第1のデータ形式を有する所定のデータモデルのデータのデータ形式をリレーショナルデータベースに応じた第2のデータ形式に変換し、又は、前記第2のデータ形式のデータを前記第1のデータ形式に変換するアダプタを生成するアダプタ生成装置において、当該アダプタを生成するアダプタ生成部と、前記アダプタ生成部により生成された1又は複数の前記アダプタを記憶する記憶部とを設け、前記アダプタ生成部が、データ出力形式ごとの出力用のサブセットに対して、前記データモデルのプロファイル及びバージョンと、前記リレーショナルデータベースのテーブルと、前記リレーショナルデータベースに対するクエリとをそれぞれ紐付けるマッピング情報と、前記アダプタを生成する際に用いるデータ変換のツール及びルールに関する各情報と、データ変換処理を行うスクリプトに関する情報と、定義のフォーマットに関する情報とを含む管理情報とを保持し、前記マッピング情報及び前記管理情報に基づいて、指定された前記データ出力形式に応じた前記アダプタを生成するようにした。   In order to solve such a problem, in the present invention, a data format of data of a predetermined data model having a first data format is converted into a second data format according to a relational database, or the second data format is used. An adapter generation device that generates an adapter that converts the data of the first data format into the first data format, and a storage unit that stores one or a plurality of the adapters generated by the adapter generation unit Mapping, wherein the adapter generation unit associates a profile and a version of the data model, a table of the relational database, and a query to the relational database with respect to a subset for output for each data output format. Generate information and the adapter Holds management information including information on a tool and rules for data conversion used for data, information on a script for performing data conversion processing, and information on a format of a definition, and specifies, based on the mapping information and the management information, The adapter is generated in accordance with the specified data output format.

また本発明においては、第1のデータ形式を有する所定のデータモデルのデータのデータ形式をリレーショナルデータベースに応じた第2のデータ形式に変換し、又は、前記第2のデータ形式のデータを前記第1のデータ形式に変換するアダプタを生成するアダプタ生成装置において実行されるアダプタ生成方法であって、前記アダプタ生成装置に、データ出力形式ごとの出力用のサブセットに対して、前記データモデルのプロファイル及びバージョンと、前記リレーショナルデータベースのテーブルと、前記リレーショナルデータベースに対するクエリとをそれぞれ紐付けるマッピング情報と、前記アダプタを生成する際に用いるデータ変換のツール及びルールに関する各情報と、データ変換処理を行うスクリプトに関する情報と、定義のフォーマットに関する情報とを含む管理情報とを設定する第1のステップと、前記アダプタ生成装置が、前記マッピング情報及び前記管理情報に基づいて、指定された前記データ出力形式に応じた前記アダプタを生成する第2のステップとを設けるようにした。   Further, in the present invention, the data format of the data of the predetermined data model having the first data format is converted into a second data format corresponding to a relational database, or the data of the second data format is converted to the second data format. 1. An adapter generation method executed in an adapter generation device that generates an adapter that converts data into one data format, wherein the adapter generation device includes a data model profile and an output subset for each data output format. Versions, mapping information for associating tables in the relational database, queries to the relational database, respectively, information on tools and rules for data conversion used when generating the adapter, and scripts for performing data conversion processing Information and definition A first step of setting management information including information about a format, and the adapter generation device generates the adapter according to the specified data output format based on the mapping information and the management information. The second step is provided.

本発明によれば、アダプタを容易かつ短時間に作成し得る情報処理装置及び方法を実現できる。   ADVANTAGE OF THE INVENTION According to this invention, the information processing apparatus and method which can produce an adapter easily and in a short time can be implement | achieved.

本実施の形態によるシステムの全体構成例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of an overall configuration of a system according to an embodiment. CIMアダプタ共通部の構成例を示す概念図である。FIG. 3 is a conceptual diagram illustrating a configuration example of a CIM adapter common unit. CIMアダプタ相違部の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of a CIM adapter different part. マッピング情報の構成例を示す概念図である。FIG. 4 is a conceptual diagram illustrating a configuration example of mapping information. S−Pマッピング情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of SP mapping information. P−C−Tマッピング情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of PCT mapping information. T−SIマッピング情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of T-SI mapping information. SI−SQLマッピング情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of SI-SQL mapping information. 管理情報の構成例を示す概念図である。FIG. 4 is a conceptual diagram illustrating a configuration example of management information. 利用ツール情報の構成例を示す概念図である。FIG. 4 is a conceptual diagram illustrating a configuration example of use tool information. Java(登録商標)変換ルール情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of Java (trademark) conversion rule information. O/Rマップ定義情報の構成例を示す概念図である。FIG. 4 is a conceptual diagram illustrating a configuration example of O / R map definition information. 取得関数定義情報の構成例を示す概念図である。It is a conceptual diagram which shows the example of a structure of acquisition function definition information. マッピング情報/管理情報画面の構成例を略線的に示す略線図である。FIG. 4 is a schematic diagram schematically illustrating a configuration example of a mapping information / management information screen. CIMアダプタ相違部生成作業の作業手順例を示すフローチャートである。It is a flowchart which shows the example of the operation | work procedure of CIM adapter difference part production | generation work. CIMインタフェース生成処理の処理手順を示すフローチャートである。It is a flowchart which shows the processing procedure of CIM interface generation processing. コード出力処理の処理手順を示すフローチャートである。It is a flowchart which shows the processing procedure of a code output process. CIMプロファイルのRDF形式データ例を示す図である。It is a figure showing the example of RDF format data of a CIM profile. 出力用プロファイルの一例を示す図である。FIG. 6 is a diagram illustrating an example of an output profile. XMLスキーマデータの一例を示す図である。FIG. 4 is a diagram illustrating an example of XML schema data. RDBテーブル作成用SQLの一例を示す図である。FIG. 4 is a diagram illustrating an example of an RDB table creation SQL. Javaクラスファイルの一例を示す図である。FIG. 4 is a diagram illustrating an example of a Java class file. Java変換ルール適用後のCIM/XML対応Javaクラスファイルの一例を示す図である。FIG. 10 is a diagram illustrating an example of a CIM / XML-compatible Java class file after Java conversion rules are applied. データ取得SQLの出力例を示す図である。It is a figure showing an example of output of data acquisition SQL. O/Rマップ定義の出力例を示す図である。It is a figure showing an example of an output of an O / R map definition. 取得関数定義の出力例を示す図である。FIG. 14 is a diagram illustrating an output example of an acquisition function definition. サーブレットプログラムの出力例を示す図である。It is a figure showing an example of an output of a servlet program.

以下図面について、本発明の一実施の形態を詳述する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

以下図面について、本発明の一実施の形態を詳述する。なお、これにより、本発明が限定されるものではない。また、以下の説明では、「プログラム」を主語として処理を説明する場合があるが、プログラムは、計算機、ストレージ装置等に含まれるプロセッサ(例えばCPUによって実行されることで、定められた処理を、適宜に記憶資源(例えばメモリ)及び/又は通信インターフェースデバイス(例えば通信ポート)等を用いながら行うため、処理の主語がプロセッサとされてもよい。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In addition, this does not limit the present invention. Further, in the following description, processing may be described with “program” as a subject. However, a program executes a predetermined process by executing a processor (for example, a CPU) included in a computer, a storage device, or the like. The processing may be performed by using a processor as the subject of the processing because the processing is appropriately performed using a storage resource (for example, a memory) and / or a communication interface device (for example, a communication port).

プログラムを主語として説明された処理は、プロセッサ或いはそのプロセッサを有する装置(計算機、ストレージ装置等)が行う処理としてもよい。また、プロセッサは、処理の一部又は全部を行うハードウエア回路を含んでもよい。プログラムは、プログラムソースから各コントローラにインストールされてもよい。プログラムソースは、例えば、プログラム配布計算機又は記憶メディアであってもよい。   The processing described with the program as the subject may be processing performed by a processor or a device (a computer, a storage device, or the like) having the processor. Further, the processor may include a hardware circuit that performs part or all of the processing. The program may be installed in each controller from a program source. The program source may be, for example, a program distribution computer or a storage medium.

また、以下の説明では、要素の識別情報として、識別子、番号又は名称が使用されるが、それに代えて又は加えて、識別情報は、他種の情報を含んでもよい。   In the following description, an identifier, a number, or a name is used as element identification information, but the identification information may include other types of information instead or in addition thereto.

(1)本実施の形態による計算機ステムの構成
図1において、1は全体として本実施の形態の計算機システムを示す。この計算機システム1は、1又は複数のクライアント計算機2が第1の通信ネットワーク3を介してサーバ装置4及びデータベースサーバ装置5と接続され、データベースサーバ装置5が第2の通信ネットワーク6を介して1又は複数のストレージ装置7と接続されて構成される。
(1) Configuration of Computer System According to the Present Embodiment In FIG. 1, reference numeral 1 denotes a computer system according to the present embodiment as a whole. In this computer system 1, one or a plurality of client computers 2 are connected to a server device 4 and a database server device 5 via a first communication network 3, and the database server device 5 is connected to a server device 1 via a second communication network 6. Alternatively, it is configured to be connected to a plurality of storage devices 7.

クライアント計算機2は、内部バス10を介して接続されたCPU(Central Processing Unit)11、入出力部12、記憶部13、インタフェース14を備えて構成される。   The client computer 2 includes a CPU (Central Processing Unit) 11, an input / output unit 12, a storage unit 13, and an interface 14 connected via an internal bus 10.

CPU11は、クライアント計算機2全体の動作制御を司るプロセッサである。また入出力部12は、各種情報やGUI(Graphical User Interface)などを表示する液晶ディスプレイなどから構成される出力部と、ユーザが指示や情報を入力するためのキーボード及びマウスなどから構成される入力部とから構成される。   The CPU 11 is a processor that controls the operation of the entire client computer 2. The input / output unit 12 includes an output unit including a liquid crystal display for displaying various information and a GUI (Graphical User Interface), and an input unit including a keyboard and a mouse for the user to input instructions and information. And a part.

記憶部13は、半導体メモリ若しくはハードディスク装置(HDD:Hard Disk Drive)又はその両方から構成され、各種プログラムやデータを記憶保持するために使用される。記憶部13に格納されたプログラムをCPU11が実行することにより、クライアント計算機2全体としての各種処理が実行される。なお、記憶部13が内部バス10を介さないで直接CPU11に接続されても良い。   The storage unit 13 includes a semiconductor memory and / or a hard disk drive (HDD: Hard Disk Drive), and is used to store various programs and data. When the CPU 11 executes the program stored in the storage unit 13, various processes of the entire client computer 2 are executed. The storage unit 13 may be directly connected to the CPU 11 without passing through the internal bus 10.

記憶部13には、アプリケーション15及びクライアントプログラム16が格納される。アプリケーション15は、クライアント計算機2を利用するユーザの業務に応じた各種処理を実行する機能を有するプログラムであり、クライアントプログラム16を介してサーバ装置4との間でCIMデータをXML形式でやり取りする。   The storage unit 13 stores an application 15 and a client program 16. The application 15 is a program having a function of executing various processes according to the work of the user using the client computer 2, and exchanges CIM data with the server device 4 via the client program 16 in the XML format.

インタフェース14は、クライアント計算機2が第1の通信ネットワーク3を介してサーバ装置4などと通信を行う際のプロトコル制御を行う機能を有するハードウェアデバイスであり、例えばNIC(Network Interface Card)から構成される。   The interface 14 is a hardware device having a function of performing a protocol control when the client computer 2 communicates with the server device 4 or the like via the first communication network 3, and is configured by, for example, a NIC (Network Interface Card). You.

サーバ装置4は、クライアント計算機2からの要求に応じたクエリ(以下、適宜、これをSQL(Structured Query Language)と呼ぶ)を生成してデータベースサーバ装置5に送信し、データベースサーバ装置5から与えられるそのSQLの実行結果をクライアント計算機2に送信したり、クライアント計算機2から与えられたCIMデータをリレーショナルデータベースのデータ形式に変換してデータベースサーバ装置5に送信し又はデータベースサーバ装置5から取得したリレーショナルデータベースのデータをCIMデータのデータ形式に変換してクライアント計算機2に送信する機能を有する計算機である。   The server device 4 generates a query (hereinafter, appropriately referred to as SQL (Structured Query Language)) according to the request from the client computer 2, transmits the generated query to the database server device 5, and is provided from the database server device 5. The execution result of the SQL is transmitted to the client computer 2, the CIM data provided from the client computer 2 is converted into a data format of a relational database and transmitted to the database server device 5, or the relational database acquired from the database server device 5 Is a computer having a function of converting the data of the above into a data format of CIM data and transmitting the data to the client computer 2.

このサーバ装置4は、内部バス20を介して接続されたインタフェース21、CPU22、入出力部23及び記憶部24を備えて構成される。これらインタフェース21、CPU22、入出力部23及び記憶部24は、クライアント計算機2の対応部位(インタフェース14、CPU11、入出力部12又は記憶部13)と同様の機能及び構成を有するものであるため、ここでの詳細説明は省略する。   The server device 4 includes an interface 21, a CPU 22, an input / output unit 23, and a storage unit 24 connected via an internal bus 20. The interface 21, the CPU 22, the input / output unit 23, and the storage unit 24 have the same functions and configurations as the corresponding parts of the client computer 2 (the interface 14, the CPU 11, the input / output unit 12, or the storage unit 13). The detailed description here is omitted.

サーバ装置4の記憶部24には、後述するCIMアダプタ共通部25と、1又は複数のCIMアダプタ相違部26と、CIMアダプタ生成部27とが格納される。CIMアダプタ共通部25は、記憶部24に格納された図示しないプログラムをCPU22が実行することにより具現化される機能ブロックであり、予め登録されたデータ変換ツール等の各種ツールや、Java変換ルール等のルール、及び、O/Rマップ定義情報及び取得関数定義情報といった各種定義情報を管理する。   The storage unit 24 of the server device 4 stores a CIM adapter common unit 25 described later, one or more CIM adapter different units 26, and a CIM adapter generation unit 27. The CIM adapter common unit 25 is a functional block embodied by the CPU 22 executing a program (not shown) stored in the storage unit 24, and includes various tools such as data conversion tools registered in advance, Java conversion rules, and the like. And various definition information such as O / R map definition information and acquisition function definition information.

またCIMアダプタ相違部26は、CIMアダプタ共通部25と同様に、記憶部24に格納された図示しないプログラムをCPU22が実行することにより具現化される機能ブロックであり、CIMプロファイルに対する1又は複数種類のデータ出力形式に対応させて生成され、対応するデータ出力形式のCIMデータをリレーショナルデータベースのデータ形式に変換し、又はその逆のデータ変換を行うデータ変換部である。   Like the CIM adapter common unit 25, the CIM adapter different unit 26 is a functional block embodied by the CPU 22 executing a program (not shown) stored in the storage unit 24, and includes one or more types of CIM profiles. Is a data conversion unit that generates CIM data corresponding to the data output format of the above and converts the CIM data of the corresponding data output format into the data format of the relational database or vice versa.

CIMアダプタ生成部27は、記憶部24に格納された図示しないプログラムをCPU22が実行することにより具現化される機能ブロックであり、予め与えられたマッピング情報28及び管理情報29を保持し、これらマッピング情報28及び管理情報29に基づいて、CIMアダプタ共通部25に登録されている各種ツール、ルール及び定義情報の中からCIMアダプタ開発者等により指定されたツール、ルール及び定義情報を用いて、例えば新たなCIMプロファイルのデータ出力形式として指定された出力用サブセットに応じたCIMアダプタ相違部26を生成する。   The CIM adapter generation unit 27 is a functional block embodied by the CPU 22 executing a program (not shown) stored in the storage unit 24. The CIM adapter generation unit 27 holds mapping information 28 and management information 29 given in advance. Based on the information 28 and the management information 29, for example, by using a tool, rule, and definition information designated by a CIM adapter developer or the like from among various tools, rules, and definition information registered in the CIM adapter common unit 25, The CIM adapter difference unit 26 is generated according to the output subset specified as the data output format of the new CIM profile.

データベースサーバ装置5は、クライアント計算機2から送信されサーバ装置4においてリレーショナルデータベースのデータ形式に変換されたCIMデータを、ストレージ装置7に格納されたリレーショナルデータベース42に登録して管理する機能を有するサーバ装置である。   The database server device 5 has a function of registering and managing the CIM data transmitted from the client computer 2 and converted into the data format of the relational database in the server device 4 in the relational database 42 stored in the storage device 7. It is.

データベースサーバ装置5は、内部バス30を介して接続された第1のインタフェース31、CPU32、入出力部33、記憶部34及び第2のインタフェース35を備えて構成される。第1のインタフェース31、CPU32、入出力部33及び記憶部34は、クライアント計算機2の対応部位(インタフェース14、CPU11、入出力部12又は記憶部13)と同様の機能及び構成を有するものであるため、ここでの詳細説明は省略する。   The database server device 5 includes a first interface 31, a CPU 32, an input / output unit 33, a storage unit 34, and a second interface 35 connected via an internal bus 30. The first interface 31, the CPU 32, the input / output unit 33, and the storage unit 34 have the same functions and configurations as the corresponding parts (the interface 14, the CPU 11, the input / output unit 12, or the storage unit 13) of the client computer 2. Therefore, detailed description here is omitted.

第2のインタフェース35は、データベースサーバ装置5が第2の通信ネットワーク6を介してストレージ装置7と通信を行う際のプロトコル制御を行う機能を有するハードウェアデバイスであり、NICなどから構成される。   The second interface 35 is a hardware device having a function of performing a protocol control when the database server device 5 communicates with the storage device 7 via the second communication network 6, and includes a NIC or the like.

データベースサーバ装置5の記憶部34には、ストレージ装置7に格納されたリレーショナルデータベース42を管理するRDBMS(Relational Data Base Management System)36が格納される。RDBMS36は、サーバ装置4から与えられるSQLを実行し、その実行結果をサーバ装置4に送信する。   The storage unit 34 of the database server device 5 stores an RDBMS (Relational Data Base Management System) 36 that manages the relational database 42 stored in the storage device 7. The RDBMS 36 executes the SQL provided from the server device 4 and transmits the execution result to the server device 4.

ストレージ装置7は、大容量の記憶装置であり、1又は複数の記憶デバイスから形成される記憶部40と、記憶部40に対するデータの入出力を制御する制御部41とを備えて構成される。   The storage device 7 is a large-capacity storage device, and includes a storage unit 40 formed of one or a plurality of storage devices, and a control unit 41 that controls input and output of data to and from the storage unit 40.

記憶部40の記憶デバイスとしては、例えばSCSI(Small Computer System Interface)ディスク等の高価なディスクや、SATA(Serial AT Attachment)ディスク又は光ディスク等の安価なディスク、又は半導体メモリなどが適用される。この場合、複数種類の記憶デバイスを記憶部40に設けるようにしても良い。記憶部40が提供する記憶領域に上述のリレーショナルデータベース42のデータが格納される。   As a storage device of the storage unit 40, for example, an expensive disk such as a SCSI (Small Computer System Interface) disk, an inexpensive disk such as a SATA (Serial AT Attachment) disk or an optical disk, or a semiconductor memory is used. In this case, a plurality of types of storage devices may be provided in the storage unit 40. The data of the above-described relational database 42 is stored in a storage area provided by the storage unit 40.

また制御部41は、CPU及びメモリ等の情報処理資源を備えて構成され、通信ネットワーク6に接続される。制御部41は、第2の通信ネットワーク6を介してデータベースサーバ装置5のRDBMS36から与えられるSQLに従って、RDBMS36から与えられたデータをリレーショナルデータベース42に格納し、又は要求されたデータをリレーショナルデータベース42から読み出して第2の通信ネットワーク6を介してRDBMS36に転送する。   The control unit 41 includes an information processing resource such as a CPU and a memory, and is connected to the communication network 6. The control unit 41 stores data provided from the RDBMS 36 in the relational database 42 or stores requested data from the relational database 42 in accordance with the SQL provided from the RDBMS 36 of the database server device 5 via the second communication network 6. The data is read and transferred to the RDBMS 36 via the second communication network 6.

なお、第1の通信ネットワーク3としては、例えばLAN(Local Area Network)やWAN(Wide Area Network)等のネットワークを適用することができ、第2の通信ネットワーク6としては、ファイバチャネル等で構成されるネットワーク(例えばSAN(Storage Area Network))を適用することができる。   Note that a network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be applied as the first communication network 3, and the second communication network 6 is configured with a fiber channel or the like. Network (for example, SAN (Storage Area Network)) can be applied.

図2は、サーバ装置4の記憶部24に保持されるCIMアダプタ共通部25の構成例を示す。CIMアダプタ共通部25は、登録された1又は複数のXMLスキーマ変換ツールを記憶保持するための記憶領域50、登録された1又は複数のリレーショナルデータベーステーブル作成ツールを記憶保持するための記憶領域51、登録された1又は複数のJava変換ツールを記憶保持するための記憶領域52、登録された1又は複数のO/Rマップツールを記憶保持するための記憶領域53、及び、登録された1又は複数のJava変換スクリプトを記憶保持するための記憶領域54を備える。ただし、これらの記憶領域50〜54を当初からすべて設けるのではなく、対応するツールが登録された段階で対応する記憶領域50〜54を追加していくようにしても良い。   FIG. 2 shows a configuration example of the CIM adapter common unit 25 held in the storage unit 24 of the server device 4. The CIM adapter common unit 25 includes a storage area 50 for storing and holding one or more registered XML schema conversion tools, a storage area 51 for storing and holding one or more registered relational database table creation tools, A storage area 52 for storing and holding one or more registered Java conversion tools, a storage area 53 for storing and holding one or more registered O / R map tools, and one or more registered Java conversion tools And a storage area 54 for storing the Java conversion script. However, instead of providing all of these storage areas 50 to 54 from the beginning, the corresponding storage areas 50 to 54 may be added when the corresponding tool is registered.

なお、図2は、XMLスキーマ変換ツールとして「EA Tool」、RDBテーブル作成ツールとして「EA Tool」、Java変換ツールとして「JAXB」及び「Original Tool」、O/Rマップツールとして「MyBatis」、Java変換スクリプトとして「Script1」及び「Script2」が登録された例を示している。   FIG. 2 shows “EA Tool” as an XML schema conversion tool, “EA Tool” as an RDB table creation tool, “JAXB” and “Original Tool” as Java conversion tools, “MyBatis” as an O / R map tool, and Java. An example is shown in which “Script1” and “Script2” are registered as conversion scripts.

図3は、CIMアダプタ相違部26の構成例を示す。この図3からも明らかなように、CIMアダプタ相違部26は、出力用プロファイル60、XMLスキーマデータファイル61、リレーショナルデータベーステーブル作成用SQLファイル62、Javaクラスファイル63、CIM/XML対応Javaクラスファイル64、データ取得SQLファイル65、O/Rマップ定義ファイル66、取得関数定義ファイル67及びサーブレットプログラム68を備えて構成される。   FIG. 3 shows a configuration example of the CIM adapter different part 26. As is clear from FIG. 3, the CIM adapter different part 26 includes an output profile 60, an XML schema data file 61, a relational database table creation SQL file 62, a Java class file 63, and a CIM / XML compatible Java class file 64. , A data acquisition SQL file 65, an O / R map definition file 66, an acquisition function definition file 67, and a servlet program 68.

出力用プロファイル60は、1又は複数のCMIプロファイルに対応する1又は複数のデータ出力形式(出力用サブセット)と、そのデータ出力形式に対応するCIMアダプタ相違部26を生成する際に利用すべきツールの組合せとを規定したプロファイルであり、CIMアダプタの開発者により設定される。図19について後述するように、出力用プロファイル60では、図10について後述する利用ツール情報80(図10)で設定されている複数のツールの組合せのうち、そのデータ出力形式に対応するCIMアダプタ相違部26を生成する際に利用すべきツールの組合せと、図5について後述するS−Pマッピング情報70(図5)で設定されているサブセットIDとが指定される。   The output profile 60 is a tool to be used when generating one or a plurality of data output formats (output subsets) corresponding to one or a plurality of CMI profiles and a CIM adapter different part 26 corresponding to the data output format. Is a profile that defines the combination of the CIM adapter and the CIM adapter. As will be described later with reference to FIG. 19, in the output profile 60, among the combinations of a plurality of tools set in the use tool information 80 (FIG. 10) described later with reference to FIG. A combination of tools to be used when generating the unit 26 and a subset ID set in SP mapping information 70 (FIG. 5) described later with reference to FIG. 5 are specified.

またXMLスキーマデータファイル61は、対応するCIMプロファイルをXMLスキーマ変換ツールを用いて変換処理することにより得られた例えば図20に示すようなXMLスキーマデータが格納されたファイルである。   The XML schema data file 61 is a file in which XML schema data as shown in FIG. 20, for example, obtained by converting a corresponding CIM profile using an XML schema conversion tool is stored.

リレーショナルデータベーステーブル作成用SQLファイル62は、そのCIMプロファイルを構成するJavaクラスに対応するリレーショナルデータベーステーブルをリレーショナルデータベース内に作成するための例えば図21に示すようなSQL(リレーショナルデータベーステーブル作成用SQL)が格納されたファイルである。   The relational database table creation SQL file 62 includes, for example, an SQL (relational database table creation SQL) as shown in FIG. 21 for creating a relational database table corresponding to a Java class constituting the CIM profile in the relational database. The stored file.

Javaクラスファイル63は、XMLスキーマデータをJavaクラスに変換した例えば図22に示すようなデータが格納されたファイルであり、CIM/XML対応Javaクラスファイル64は、JavaクラスをCIM/XML対応のJavaクラスに変換した例えば図23に示すようなデータが格納されたファイルである。   The Java class file 63 is a file in which data obtained by converting XML schema data into a Java class, for example, as shown in FIG. 22, is stored. The CIM / XML compatible Java class file 64 stores the Java class in a CIM / XML compatible Java. This is a file that stores, for example, data as shown in FIG. 23 converted into a class.

さらにデータ取得SQLファイル65は、対応するリレーショナルデータベーステーブルからデータを取得するための例えば図24に示すようなSQL(データ取得SQL)が格納されたファイルであり、O/Rマップ定義ファイル66は、そのCIMアダプタ相違部26における例えば図25に示すような、Javaクラスのオブジェクトとリレーショナルデータベースの対応するテーブルとを対応付けるマッピング情報でなるO/Rマップ定義が格納されたファイルである。さらに取得関数定義ファイル67は、リレーショナルデータベーステーブルから必要なデータを取得するための関数である例えば図26に示すような取得関数が格納されたファイルであり、サーブレットプログラム68は、そのCIMアダプタ相違部26を呼び出すための例えば図27に示すようなプログラムである。   Further, the data acquisition SQL file 65 is a file in which, for example, SQL (data acquisition SQL) as shown in FIG. 24 for acquiring data from the corresponding relational database table is stored, and the O / R map definition file 66 is For example, as shown in FIG. 25, the CIM adapter difference unit 26 stores an O / R map definition that is mapping information that associates Java class objects with corresponding tables in a relational database. Further, the acquisition function definition file 67 is a file in which an acquisition function as shown in FIG. 26, for example, which is a function for acquiring necessary data from the relational database table, is stored. For example, a program as shown in FIG.

これらのファイルのうちXMLスキーマデータファイル61、リレーショナルデータベーステーブル作成用SQLファイル62、Javaクラスファイル63は、そのCIMアダプタ相違部26や当該CIMアダプタ相違部26に対応するリレーショナルデータベーステーブルをリレーショナルデータベース内に生成する際に利用される。   Among these files, the XML schema data file 61, the relational database table creation SQL file 62, and the Java class file 63 store the CIM adapter difference unit 26 and the relational database table corresponding to the CIM adapter difference unit 26 in the relational database. Used when generating.

またデータ取得SQLファイル65、O/Rマップ定義ファイル66及び取得関数定義ファイル67は、そのCIMアダプタ相違部26を生成した段階で必要なコードが格納されて完成し、実際にクライアント計算機2から与えられたリード要求やライト要求に応じて、クライアント計算機2からXML形式で与えられたCIMデータを対応するリレーショナルデータベーステーブルに格納し、又は、リレーショナルデータベーステーブルから読み出したデータをXML形式に変換してクライアント計算機2に送信する際のデータ形式の変換で利用される。   The data acquisition SQL file 65, the O / R map definition file 66, and the acquisition function definition file 67 are completed when necessary codes are stored at the stage when the CIM adapter different part 26 is generated, and are actually given from the client computer 2. In response to the read request or the write request, the client computer 2 stores the CIM data provided in the XML format in the corresponding relational database table, or converts the data read from the relational database table into the XML format and converts the data into the XML format. It is used for data format conversion when transmitting to the computer 2.

実際上、サーバ装置4には、いずれかのサーブレットプログラム68を指定したリード要求やライト要求がクライアント計算機2から与えられる。そしてサーバ装置4は、例えば、ライト要求及びライト対象のCIMデータがクライアント計算機2から与えられた場合には、そのCIMデータのデータ形式をCIM/XML対応Javaクラスファイル64を用いてXML形式からリレーショナルデータベースに応じたデータ形式に変換し、変換後のデータをO/Rマップ定義ファイル66及び取得関数定義ファイル67を利用して対応するリレーショナルデータベースのテーブルに格納する。   In practice, a read request or a write request specifying one of the servlet programs 68 is given to the server device 4 from the client computer 2. Then, for example, when the write request and the write target CIM data are given from the client computer 2, the server device 4 changes the data format of the CIM data from the XML format to the relational format using the CIM / XML-compatible Java class file 64. The data is converted into a data format corresponding to the database, and the converted data is stored in the corresponding relational database table using the O / R map definition file 66 and the acquisition function definition file 67.

またサーバ装置4は、リード要求がクライアント計算機2から与えられた場合には、対応するデータをデータ取得SQLファイル65、O/Rマップ定義ファイル66及び取得関数定義ファイル67を利用してリレーショナルデータベースの対応するテーブルから読み出し、そのデータ形式をCIM/XML対応Javaクラスファイル64を用いてリレーショナルデータベースに応じたデータ形式からXML形式のデータに変換し、これをクライアント計算機2に送信する。   When the read request is given from the client computer 2, the server device 4 uses the data acquisition SQL file 65, the O / R map definition file 66, and the acquisition function definition file 67 to store the corresponding data in the relational database. The data is read from the corresponding table, the data format is converted from the data format corresponding to the relational database to the XML format data using the CIM / XML compatible Java class file 64, and this is transmitted to the client computer 2.

図4は、サーバ装置4の記憶部24に格納されたCIMアダプタ生成部27が保持するマッピング情報28の具体的な構成を示す。この図4に示すように、マッピング情報28は、それぞれ予めユーザにより定義されたS−Pマッピング情報70、P−C−Tマッピング情報71、T−SIマッピング情報72及びSI−SQLマッピング情報73から構成される。   FIG. 4 shows a specific configuration of the mapping information 28 held by the CIM adapter generation unit 27 stored in the storage unit 24 of the server device 4. As shown in FIG. 4, the mapping information 28 is obtained from SP mapping information 70, PCT mapping information 71, T-SI mapping information 72, and SI-SQL mapping information 73, which are defined in advance by the user. Be composed.

このうちS−Pマッピング情報70は、出力用サブセットと、CIMプロファイルのプロファイル名及びそのバージョンとの対応関係を表す情報であり、図5に示すように、出力用サブセットID欄70A、プロファイル名欄70B及びバージョン欄70Cを備えるテーブル構造を有する。   The SP mapping information 70 is information indicating the correspondence between the output subset, the profile name of the CIM profile, and the version thereof. As shown in FIG. 5, the output subset ID column 70A, the profile name column 70B and a table structure having a version column 70C.

そして出力用サブセットID欄70Aには、各出力用サブセットに対してそれぞれ付与された識別子(サブセットID)が格納され、プロファイル名欄70B及びバージョン欄70Cには、それぞれその出力用サブセットに対応するCIMプロファイルの名前(プロファイル名)とそのバージョンとがそれぞれ格納される。   An identifier (subset ID) assigned to each output subset is stored in the output subset ID column 70A, and a CIM corresponding to the output subset is stored in the profile name column 70B and the version column 70C. The profile name (profile name) and its version are stored.

従って、図5の例の場合、「Sub1」というサブセットIDの出力用サブセットは、「Profile1」というプロファイル名のバージョンが「1.0」のCIMプロファイルと、「Profile2」というプロファイル名のバージョンが「1.0」のCIMプロファイルとが対応付けられていることが示されている。   Therefore, in the case of the example in FIG. 5, the subset for output having the subset ID “Sub1” is a CIM profile with the profile name “Profile1” having the version “1.0” and a profile with the profile name “Profile2” having the version “1.0”. The CIM profile of FIG.

またP−C−Tマッピング情報71は、CIMプロファイル及びそのバージョンとJavaのクラス及びリレーショナルデータベース42(図1)上のテーブルとの対応関係を表す情報であり、図6に示すように、プロファイル名欄71A、バージョン欄71B、Javaクラス名欄71C及びリレーショナルデータベーステーブル名欄71Dを備えるテーブル構造を有する。   The PCT mapping information 71 is information indicating the correspondence between the CIM profile and its version, the class of Java, and the table in the relational database 42 (FIG. 1). As shown in FIG. It has a table structure including a column 71A, a version column 71B, a Java class name column 71C, and a relational database table name column 71D.

そしてプロファイル名欄71A及びバージョン欄71Bには、それぞれ各CIMプロファイルのプロファイル名及びそのバージョン名がそれぞれ格納され、Javaクラス名欄71Cには、そのプロファイル名及びバージョンのCIMプロファイルと対応付けられた各Javaクラスのクラス名がそれぞれ格納される。またリレーショナルデータベーステーブル名欄71Dには、対応するJavaクラスと1対1で対応付けられたリレーショナルデータベース42上のテーブルのテーブル名が格納される。   In the profile name column 71A and the version column 71B, the profile name of each CIM profile and its version name are stored, respectively. In the Java class name column 71C, each profile name and version associated with the CIM profile of the profile are stored. The class names of Java classes are stored. The relational database table name field 71D stores the table name of the table on the relational database 42 that is associated with the corresponding Java class on a one-to-one basis.

従って、図6の例の場合、「Profaile1」というプロファイル名の「1.0」というバーションのCIMプロファイルについては、「AAAA」、「BBBB」「CCCC」及び「DDDD」という4つのJavaクラスと対応付けられており、このうち例えば「AAAA」というJavaクラスについては、リレーショナルデータベース42上の「T_AAAA」というテーブル名のテーブルと対応付けられていることが示されている。   Therefore, in the case of the example of FIG. 6, the CIM profile of the version “1.0” with the profile name “Profaile1” is associated with the four Java classes “AAAA”, “BBBB”, “CCCC” and “DDDD”. For example, among them, it is shown that the Java class “AAAA” is associated with the table with the table name “T_AAAA” on the relational database 42.

T−SIマッピング情報72は、ストレージ装置7に格納されたリレーショナルデータベース42上の各テーブルと当該テーブルを参照するためのSQLとの対応関係を表す情報であり、図7に示すように、リレーショナルデータベーステーブル名欄72A及びSQL ID欄72Bを備えるテーブル構造を有する。   The T-SI mapping information 72 is information indicating the correspondence between each table on the relational database 42 stored in the storage device 7 and the SQL for referring to the table, and as shown in FIG. It has a table structure including a table name column 72A and a SQL ID column 72B.

そしてリレーショナルデータベーステーブル名欄72Aには、ストレージ装置7に格納されたリレーショナルデータベース42の各テーブルのテーブル名がそれぞれ格納され、SQL ID欄72Bには、対応するテーブルについて使用可能な各SQLの識別子(SQL ID)がそれぞれ格納される。   The relational database table name column 72A stores the table names of the respective tables of the relational database 42 stored in the storage device 7, and the SQL ID column 72B stores the identifiers (SQL) of each SQL that can be used for the corresponding table. SQL ID) are stored.

従って、図7の例の場合、例えばリレーショナルデータベース42上の「T_AAAA」というテーブル名のテーブルや「T_BBBB」というテーブル名のテーブルについては、「1」又は「2」というSQL IDが付与された2種類のSQLが使用可能であり、「T_CCCC」というテーブル名のテーブルについては、かかる2種類のSQL文に加えて、「3」というSQL IDが付与されたSQLについても使用可能であることが示されている。   Therefore, in the case of the example of FIG. 7, for example, a table having a table name of “T_AAAA” or a table having a table name of “T_BBBB” on the relational database 42 is provided with an SQL ID of “1” or “2”. The type of SQL can be used, and for a table with a table name of “T_CCCC”, in addition to the two types of SQL statements, it is also possible to use an SQL provided with an SQL ID of “3”. Have been.

さらにSI−SQLマッピング情報73は、SQL ID及びSQLの対応関係を表す情報であり、図8に示すように、SQL ID欄73A及びSQL欄73Bを備えたテーブル構造を有する。そしてSQL_ID欄73Aには、各SQLに対してそれぞれ付与された識別子(SQL ID)が格納され、SQL欄73Bには、対応するSQL IDが付与されたSQLの具体的な内容が格納される。   Further, the SI-SQL mapping information 73 is information indicating a correspondence between the SQL ID and the SQL, and has a table structure including an SQL ID column 73A and an SQL column 73B as shown in FIG. The SQL_ID column 73A stores an identifier (SQL ID) assigned to each SQL, and the SQL column 73B stores the specific content of the SQL to which the corresponding SQL ID is assigned.

従って、図8の例の場合、例えば、「1」というSQL IDが付与されたSQLの内容は「Select*Rrom[T];」([T]というテーブルのすべての情報を取得)であることが示されている。   Therefore, in the case of the example of FIG. 8, for example, the content of the SQL provided with the SQL ID “1” is “Select * Rrom [T];” (all information of the table [T] is acquired). It is shown.

一方、管理情報29は、図9に示すように、利用ツール情報80、Java変換ルール情報81、O/Rマップ定義情報82及び取得関数定義情報83から構成される。   On the other hand, as shown in FIG. 9, the management information 29 includes use tool information 80, Java conversion rule information 81, O / R map definition information 82, and acquisition function definition information 83.

このうちJava変換ルール情報81は、後述のようにCIMアダプタ生成部27が、XMLスキーマデータに変換されたCIMプロファイルのデータをJava変換ツールを用いてJavaクラスに変換する際のルールに関する情報であり、図11に示すように、Java変換ルールID欄81A、Java変換ルール内容欄81B及びスクリプトパス名欄81Cを備えるテーブル構造を有する。   Among them, the Java conversion rule information 81 is information on rules when the CIM adapter generation unit 27 converts the CIM profile data converted into XML schema data into a Java class using a Java conversion tool, as described later. As shown in FIG. 11, it has a table structure including a Java conversion rule ID column 81A, a Java conversion rule content column 81B, and a script path name column 81C.

そしてJava変換ルールID欄81Aには、予めユーザにより作成された各Java変換ルールに対してそれぞれ付与された識別子(Java変換ルールID)が格納される。ここで、Java変換ルールとは、クライアント計算機2らのCIMデータをJava変換ツールによりJavaプログラムコードに変換し又はその逆の変換を行う際のルールを指す。   In the Java conversion rule ID column 81A, an identifier (Java conversion rule ID) assigned to each Java conversion rule created by the user in advance is stored. Here, the Java conversion rule refers to a rule for converting CIM data from the client computer 2 into Java program code by a Java conversion tool or vice versa.

またJava変換ルール内容欄81Bには、対応するJava変換ルールの具体的な内容が格納され、スクリプトパス名欄81Cには、対応するJava変換ルール内容の処理をスクリプト化することにより得られたスクリプトへの絶対パス名が格納される。   The Java conversion rule content column 81B stores the specific content of the corresponding Java conversion rule, and the script path name column 81C stores the script obtained by scripting the processing of the corresponding Java conversion rule content. The absolute path name to is stored.

またO/Rマップ定義情報82は、CIMアダプタ生成部27が出力するO/Rマップの定義に関する情報であり、図12に示すように、O/Rマップ定義ID欄82A及びO/Rマップ定義内容欄82Bを備えて構成される。   The O / R map definition information 82 is information on the O / R map definition output by the CIM adapter generation unit 27. As shown in FIG. 12, the O / R map definition ID column 82A and the O / R map definition A content column 82B is provided.

そしてO/Rマップ定義ID欄82Aには、予めユーザにより作成された各O/Rマップ定義に対してそれぞれ付与された識別子(O/Rマップ定義ID)が格納され、O/Rマップ定義内容欄82Bには、対応するO/Rマップ定義の具体的内容が格納される。   The O / R map definition ID column 82A stores an identifier (O / R map definition ID) assigned to each O / R map definition created in advance by the user, and stores the O / R map definition contents. The column 82B stores the specific contents of the corresponding O / R map definition.

従って、図12の例の場合、「1」というO/Rマップ定義IDが付与されたO/Rマップの定義がこの図12に示すような内容であることが示されている。なお、図12で示したO/Rマップ定義内容欄82Bにおいて破線DL1で囲んだ箇所が、CIMアダプタ生成部27によってリレーショナルデータベーステーブル毎に追加出力される箇所である。   Therefore, in the case of the example of FIG. 12, it is indicated that the definition of the O / R map to which the O / R map definition ID of “1” is assigned has the contents as shown in FIG. Note that, in the O / R map definition content column 82B shown in FIG. 12, a portion surrounded by a broken line DL1 is a portion that is additionally output for each relational database table by the CIM adapter generation unit 27.

取得関数定義情報83は、CIMアダプタ生成部27が出力する取得関数の定義に関する情報であり、図13に示すように、取得関数定義ID欄83A及び取得関数定義内容欄83Bを備えたテーブル構造を有する。   The acquisition function definition information 83 is information on the definition of the acquisition function output by the CIM adapter generation unit 27. As shown in FIG. 13, the acquisition function definition information 83 has a table structure including an acquisition function definition ID column 83A and an acquisition function definition content column 83B. Have.

そして取得関数定義ID欄83Aには、予めユーザにより作成された各取得関数に対してそれぞれ付与された識別子(取得関数定義ID)が格納され、取得関数定義内容欄83Bには、対応する取得関数の定義内容が格納される。   The acquisition function definition ID column 83A stores an identifier (acquisition function definition ID) assigned to each acquisition function created in advance by the user, and the acquisition function definition content column 83B stores the corresponding acquisition function. Is stored.

従って、この図13の例の場合「1」という取得関数定義IDが付与された取得関数の定義がこの図13に示すような内容であることが示されている。なお、図13で示した取得関数定義内容欄83Bにおいて破線DL2〜DL4でそれぞれ囲んだ箇所が、CIMアダプタ生成部27によってリレーショナルデータベーステーブル毎に追加出力される箇所である。   Therefore, in the case of the example of FIG. 13, it is shown that the definition of the acquisition function to which the acquisition function definition ID “1” is given has the content as shown in FIG. In the acquisition function definition content column 83B shown in FIG. 13, the portions enclosed by broken lines DL2 to DL4 are portions that are additionally output by the CIM adapter generation unit 27 for each relational database table.

利用ツール情報80は、CIMアダプタ生成部27が各種出力用プロファイルにそれぞれ対応させたCIMアダプタ相違部26を生成する際に利用するJava変換用ツール、Java変換ルール、O/Rマップツール、O/Rマップ定義及び取得関数定義の組合せを定義した情報であり、図10に示すように、利用ツールID欄80A、Java変換用ツール欄80B、Java変換ルールID欄80C、O/Rマップツール欄80D、O/Rマップ定義ID欄80E及び取得関数定義ID欄80Fを備えるテーブル構造を有する。   The use tool information 80 includes a Java conversion tool, a Java conversion rule, an O / R map tool, an O / R map tool, which are used when the CIM adapter generation unit 27 generates the CIM adapter different units 26 corresponding to various output profiles. This is information defining a combination of an R map definition and an acquisition function definition. As shown in FIG. 10, a use tool ID column 80A, a Java conversion tool column 80B, a Java conversion rule ID column 80C, and an O / R map tool column 80D , An O / R map definition ID column 80E and an acquisition function definition ID column 80F.

そして利用ツールID欄80Aには、利用するツール等の各組合せに対してそれぞれ付与された識別子(利用ツールID)が格納され、Java変換用ツール欄80Bには、予め複数用意されたJava変換ツール(CIMデータをJavaプログラムコードに変換し、その逆の変換を行うツール)のうち、対応するツール等の組合せ(以下、これをツール組合せと呼ぶ)において使用すべきJava変換ツールの名称が格納される。   An identifier (use tool ID) assigned to each combination of tools to be used is stored in the use tool ID column 80A, and a plurality of Java conversion tools prepared in advance are stored in the Java conversion tool column 80B. Among (a tool for converting CIM data into Java program code and performing the reverse conversion), the name of a Java conversion tool to be used in a combination of corresponding tools and the like (hereinafter, referred to as a tool combination) is stored. You.

またJava変換ルールID欄80Cには、上述のようにJava変換ルール情報81に含まれる各種Java変換ルールのうち、そのツール組合せで使用すべきJava変換ルールの識別子(Java変換ルールID)が格納される。   In the Java conversion rule ID column 80C, the identifier (Java conversion rule ID) of the Java conversion rule to be used in the tool combination among the various Java conversion rules included in the Java conversion rule information 81 as described above is stored. You.

またO/Rマップツール欄80Dには、予め複数用意されたO/R(Object/Relational)マップツールのうち、対応するツール組合せにおいて使用すべきO/Rマップツールの名称が格納される。ここで、O/Rマップツールとは、Javaのオブジェクトの各データをリレーショナルデータベースのレコードを構成する個々の項目と関連付け、リレーショナルデータベースのレコードをオブジェクトとして直感的に扱えるようにするツールである。   The O / R map tool column 80D stores the name of an O / R map tool to be used in a corresponding tool combination among a plurality of O / R (Object / Relational) map tools prepared in advance. Here, the O / R map tool is a tool that associates each data of a Java object with each item constituting a record of a relational database, so that the record of the relational database can be intuitively treated as an object.

さらにO/Rマップ定義ID欄80Eには、上述のようにO/Rマップ定義情報82に含まれる各種O/Rマップ定義のうち、そのツール組合せにおいて使用すべきO/Rマップ定義の識別子(O/Rマップ定義ID)が格納され、取得関数定義ID欄80Fには、上述のように取得関数定義情報83のうち、そのツール組合せにおいて使用すべき取得関数定義の識別子(取得関数定義ID)が格納される。   Further, in the O / R map definition ID column 80E, among the various O / R map definitions included in the O / R map definition information 82 as described above, the identifier of the O / R map definition to be used in the tool combination ( O / R map definition ID) is stored in the acquisition function definition ID column 80F, as described above, of the acquisition function definition identifier (acquisition function definition ID) to be used in the tool combination in the acquisition function definition information 83. Is stored.

図14は、ユーザがサーバ装置4の入出力部23を所定操作することにより、当該入出力部23を構成する液晶ディスプレイ等の出力部に表示させ得るマッピング情報/管理情報設定画面90を示す。ユーザは、このマッピング情報/管理情報設定画面90を用いて上述のマッピング情報28及び管理情報29を所望状態に設定することができる。   FIG. 14 shows a mapping information / management information setting screen 90 that can be displayed on an output unit such as a liquid crystal display constituting the input / output unit 23 when a user performs a predetermined operation on the input / output unit 23 of the server device 4. Using this mapping information / management information setting screen 90, the user can set the above-described mapping information 28 and management information 29 to a desired state.

このマッピング情報/管理情報設定画面90には、図4〜図8について上述したマッピング情報28を構成するS−Pマッピング情報70、P−C−Tマッピング情報71、T−SIマッピング情報72及びSI−SQLマッピング情報73と、図9〜図13について上述した管理情報29を構成する利用ツール情報80、Java変換ルール情報81、O/Rマップ定義情報82及び取得関数定義情報83とにそれぞれ対応させたタブ91A〜91Hが設けられている。   On the mapping information / management information setting screen 90, the SP mapping information 70, the PCT mapping information 71, the T-SI mapping information 72, and the SI that constitute the mapping information 28 described above with reference to FIGS. -Associating the SQL mapping information 73 with the use tool information 80, the Java conversion rule information 81, the O / R map definition information 82, and the acquisition function definition information 83 which constitute the management information 29 described above with reference to FIGS. Tabs 91A to 91H are provided.

また各タブ91A〜91Hには、それぞれそのタブ91A〜91Hに対応する情報(S−Pマッピング情報70、P−C−Tマッピング情報71、T−SIマッピング情報72、SI−SQLマッピング情報73、利用ツール情報80、Java変換ルール情報81、O/Rマップ定義情報82又は取得関数定義情報83)を設定するための設定エリア92が設けられ、その設定エリア92内に図5〜図8、図10〜図13にそれぞれ示した対応するテーブルと同じ形態のテーブル93が表示される。この場合、そのテーブル93の各欄には、それぞれユーザが所望する設定値を入力することができ、かくしてユーザがマッピング情報28や管理情報29を所望する内容に設定することができるようになされている。   Each of the tabs 91A to 91H has information corresponding to the tab 91A to 91H (SP mapping information 70, PCT mapping information 71, T-SI mapping information 72, SI-SQL mapping information 73, A setting area 92 for setting use tool information 80, Java conversion rule information 81, O / R map definition information 82, or acquisition function definition information 83) is provided. In the setting area 92, FIG. A table 93 having the same form as the corresponding table shown in FIGS. 10 to 13 is displayed. In this case, the user can input desired setting values in each column of the table 93, and thus the user can set the mapping information 28 and the management information 29 to desired contents. I have.

またマッピング情報/管理情報設定画面90の右下側には、保存ボタン94及び取消しボタン95が表示される。そして、マッピング情報/管理情報設定画面90では、各タブ91A〜91Hを用いてマッピング情報28や管理情報29を所望する内容に設定した後、保存ボタン94をクリックすることにより、そのとき設定したマッピング情報28及び管理情報29の各設定値を保存することができ、取消しボタン95をクリックすることにより、各タブ91A〜91Hを用いて設定したマッピング情報28や管理情報29の設定値を保存することなく取り消すことができるようになされている。   On the lower right side of the mapping information / management information setting screen 90, a save button 94 and a cancel button 95 are displayed. Then, on the mapping information / management information setting screen 90, the user sets the mapping information 28 and the management information 29 to desired contents using the tabs 91A to 91H, and then clicks a save button 94 to set the mapping set at that time. The setting values of the information 28 and the management information 29 can be saved. By clicking the cancel button 95, the setting values of the mapping information 28 and the management information 29 set using the tabs 91A to 91H can be saved. It can be canceled without any change.

なお、本実施の形態においては、マッピング情報28及び管理情報29の設定に、マッピング情報/管理情報設定画面90を用いているが、例えば設定ファイルに各情報の設定値を書き込んでおき、当該設定ファイルを読込んで各情報の設定を行えるようにしても良い。   In this embodiment, the mapping information / management information setting screen 90 is used for setting the mapping information 28 and the management information 29. For example, the setting values of each information are written in a setting file, and A file may be read to set each information.

(2)CIMアダプタ相違部の生成
(2−1)CIMアダプタ開発者の作業
図15は、CIMアダプタ相違部26を生成する際の作業手順を示す。この作業は、CIMアダプタ開発者が実行することを想定しているが、システム管理者等、別の人が行っても良い。なお、CIMプロファイルの要件定義、及び設計は定義済みであり、例えば、図18に示すようなCIMプロファイルのRDF形式のデータが既に作成されているものとする。
(2) Creation of CIM Adapter Difference Unit (2-1) Work of CIM Adapter Developer FIG. 15 shows an operation procedure when creating the CIM adapter difference unit 26. This operation is assumed to be performed by the CIM adapter developer, but may be performed by another person such as a system administrator. Note that the requirement definition and design of the CIM profile have been defined, and it is assumed that, for example, RDF format data of the CIM profile as shown in FIG. 18 has already been created.

CIMアダプタ開発者は、CIMアダプタ相違部26を生成する場合、まず、図3について上述した各ファイル60〜67及びサーブレットプログラム68を格納するためのディレクトリをサーバ装置4の記憶部24(図1)内に作成する(S1)。   When generating the CIM adapter difference unit 26, the CIM adapter developer first stores a directory for storing the files 60 to 67 and the servlet program 68 described above with reference to FIG. 3 in the storage unit 24 of the server device 4 (FIG. 1). (S1).

続いて、CIMアダプタ開発者は、新たなCIMプロファイルに対応する新たな出力用プロファイル60(図3)を作成し、作成した出力用プロファイル60をステップS1で作成したディレクトリに格納する(S2)。   Subsequently, the CIM adapter developer creates a new output profile 60 (FIG. 3) corresponding to the new CIM profile, and stores the created output profile 60 in the directory created in step S1 (S2).

図19は、出力用プロファイル60の構成例を示す。この例において、1つの行が1つの出力用サブセットに対応しており、複数の行を定義することによって複数の出力用サブセットを指定することができる。1つの行では、「ToolID=」の後に後述する利用ツール情報80(図10)で設定されている利用ツールIDが指定され、「SubsetID=」の後に後述するS−Pマッピング情報70(図5)で設定されているサブセットIDが指定される。例えば、図19において、「ToolID=1, SubsetID=Sub1」は、「Java変換用ツールとして『JAXB』を用いて、Java変換ルールIDが『1』のJava変換を行い、O/Rマップツールとして『MyBatis』を使い、O/Rマップ定義IDが『1』のO/Rマップ定義内容に沿ったO/Rマップ定義情報のコードを出力し、取得関数定義IDが『1』の取得関数定義内容に沿った取得関数定義情報のコードを出力する」という処理を、「サブセットIDが『Sub1』に対応する『Profile1』と『Profile2』に対して行う」ということを表す。   FIG. 19 shows a configuration example of the output profile 60. In this example, one row corresponds to one output subset, and a plurality of output subsets can be specified by defining a plurality of rows. In one line, the usage tool ID set in the usage tool information 80 (FIG. 10) described later is specified after “ToolID =”, and the SP mapping information 70 (FIG. 5) described later after “SubsetID =” ) Is specified. For example, in FIG. 19, “ToolID = 1, SubsetID = Sub1” means “Performs Java conversion with Java conversion rule ID“ 1 ”using“ JAXB ”as a Java conversion tool, and as an O / R map tool. Using "MyBatis", output the code of the O / R map definition information according to the O / R map definition content with the O / R map definition ID of "1", and the acquisition function definition with the acquisition function definition ID of "1" The process of “outputting the code of the acquisition function definition information according to the content” ”means“ performing “Profile1” and “Profile2” whose subset IDs correspond to “Sub1” ”.

次いで、CIMアダプタ開発者は、CIMアダプタ共通部25のXMLスキーマツールに対応する記憶領域50(図2)に格納されているXMLスキーマツールを用いて、例えば図18に示すような設計済みのCIMプロファイルのPDF化されたデータをXMLスキーマデータ(図20)に変換し、このXMLスキーマデータをステップS1で作成したディレクトリにXMLスキーマデータファイル61(図3)として格納する(S3)。   Next, the CIM adapter developer uses the XML schema tool stored in the storage area 50 (FIG. 2) corresponding to the XML schema tool of the CIM adapter common unit 25 to design the designed CIM as shown in FIG. The PDF data of the profile is converted into XML schema data (FIG. 20), and the XML schema data is stored in the directory created in step S1 as an XML schema data file 61 (FIG. 3) (S3).

なお、CIMアダプタ共通部25のかかる記憶領域50に複数のXMLスキーマツールが格納されている場合には、その中から1つのXMLスキーマツールを選択してステップS3の処理を行い、かかる記憶領域50にXMLスキーマツールが格納されていない場合には、このステップS3を手作業で行う。   If a plurality of XML schema tools are stored in the storage area 50 of the CIM adapter common unit 25, one XML schema tool is selected from the XML schema tools and the process of step S3 is performed. If the XML schema tool is not stored in step S3, step S3 is manually performed.

この後、CIMアダプタ開発者は、CIMアダプタ共通部25のリレーショナルデータベーステーブル作成ツールに対応する記憶領域51(図2)に格納されているリレーショナルデータベーステーブル作成ツールを用いて、設計済みのCIMプロファイルのカスタマイズを行うことによりリレーショナルデータベーステーブル作成用のSQL(図21参照)を作成し、作成したSQLをリレーショナルデータベーステーブル作成用SQLファイル62(図3)としてステップS1で作成したディレクトリに格納する(S4)。   Thereafter, the CIM adapter developer uses the relational database table creation tool stored in the storage area 51 (FIG. 2) corresponding to the relational database table creation tool of the CIM adapter common unit 25 to create the designed CIM profile. By performing customization, an SQL for creating a relational database table (see FIG. 21) is created, and the created SQL is stored as a relational database table creating SQL file 62 (FIG. 3) in the directory created in step S1 (S4). .

なお、CIMアダプタ共通部25のかかる記憶領域51に複数のリレーショナルデータベーステーブル作成ツールが格納されている場合には、その中から1つのリレーショナルデータベーステーブル作成ツールを選択してステップS4の処理を行い、かかる記憶領域51にリレーショナルデータベーステーブル作成ツールが格納されていない場合には、このステップS4を手作業で行う。なお、CIMプロファイルのカスタマイズとは、例えば設計済みCIMプロファイルにおける参照制約の解除等である。   If a plurality of relational database table creation tools are stored in the storage area 51 of the CIM adapter common unit 25, one relational database table creation tool is selected from the tools and the process of step S4 is performed. If the relational database table creation tool is not stored in the storage area 51, this step S4 is performed manually. Note that the customization of the CIM profile is, for example, release of the reference constraint in the designed CIM profile.

続いて、CIMアダプタ開発者は、CIMアダプタ共通部25のJava変換ツールに対応する記憶領域52(図2)に格納されているJava変換ツールを用いて、ステップS3において得られたXMLスキーマデータファイル61のデータをJavaクラスのデータ(図22参照)に変換し、このデータをステップS1で作成したディレクトリにJavaクラスファイル63(図3)として格納する(S5)。   Subsequently, the CIM adapter developer uses the Java conversion tool stored in the storage area 52 (FIG. 2) corresponding to the Java conversion tool of the CIM adapter common unit 25 to obtain the XML schema data file obtained in step S3. The data 61 is converted into Java class data (see FIG. 22), and this data is stored in the directory created in step S1 as a Java class file 63 (FIG. 3) (S5).

この際、CIMアダプタ共通部25のかかる記憶領域52に複数のJava変換ツールが格納されている場合には、その中から1つ選択してこのステップS5の処理を行い、かかる記憶領域52にJava変換ツールが格納されていない場合には、このステップS5を手作業で行う。なお、このステップS5の処理により、XMLスキーマデータに応じて複数のJavaクラスのファイルが作成される。   At this time, if a plurality of Java conversion tools are stored in the storage area 52 of the CIM adapter common unit 25, one of them is selected and the process of step S5 is performed, and the Java area is stored in the storage area 52. If no conversion tool is stored, step S5 is performed manually. By the process of step S5, a plurality of Java class files are created according to the XML schema data.

次いで、CIMアダプタ開発者は、ステップS4で作成したリレーショナルデータベーステーブル作成用SQL(図21)をデータベースサーバ装置5のRDBMS36(図1)に送信する。このリレーショナルデータベーステーブル作成用SQLを受付けたRDBMS36は、当該リレーショナルデータベーステーブル作成用SQLを実行し、指定されたテーブルを作成する(S6)。なお、図21に示すリレーショナルデータベーステーブル作成SQLはテーブル作成のみのSQLを記載しているが、必要に応じて索引を作成するSQLを追加しても良い。   Next, the CIM adapter developer sends the relational database table creation SQL (FIG. 21) created in step S4 to the RDBMS 36 (FIG. 1) of the database server device 5. The RDBMS 36 that has received the relational database table creation SQL executes the relational database table creation SQL to create the specified table (S6). Although the relational database table creation SQL shown in FIG. 21 describes only the SQL for table creation, an SQL for creating an index may be added as needed.

この後、CIMアダプタ開発者は、S−Pマッピング情報70、P−C−Tマッピング情報71、T−SIマッピング情報72及びSI−SQLマッピング情報73をそれぞれ設定すると共に(S7)、利用ツール情報80、Java変換ルール情報81、O/Rマップ定義情報82及び取得関数定義情報83をそれぞれ設定する(S8)。これらの情報の設定は、図14について上述したマッピング情報/管理情報設定画面90を用いて行っても良いし、各情報の設定値を記載した設定ファイルを読込んで行うものとしても良い。また、設定済みの情報を使用するのであれば、改めて設定する必要はない。   Thereafter, the CIM adapter developer sets SP mapping information 70, PCT mapping information 71, T-SI mapping information 72, and SI-SQL mapping information 73 (S7), and uses tool information. 80, Java conversion rule information 81, O / R map definition information 82, and acquisition function definition information 83 are set (S8). The setting of such information may be performed using the mapping information / management information setting screen 90 described above with reference to FIG. 14, or may be performed by reading a setting file in which the setting values of each information are described. If the information that has been set is used, there is no need to set it again.

続いて、CIMアダプタ開発者は、サーバ装置4を操作して、当該サーバ装置4に図16について後述するCIMインタフェース生成処理を実行させる(S9)。なお、CIMインタフェース生成処理の実行にあたっては、ステップS1で作成したディレクトリを指定する。これにより、このディレクトリをベースとするCIMアダプタ相違部26がCIMインタフェース生成処理により生成される。   Subsequently, the CIM adapter developer operates the server device 4 to cause the server device 4 to execute a CIM interface generation process described later with reference to FIG. 16 (S9). In performing the CIM interface generation processing, the directory created in step S1 is specified. Thereby, the CIM adapter different part 26 based on this directory is generated by the CIM interface generation processing.

そしてCIMアダプタ開発者は、この後、このとき作成したCIMアダプタ相違部26のサーブレットプログラム68(図3)を作成し、作成したサーブレットプログラム68をステップS2で作成したディレクトリに格納する(S10)。以上により、このCIMアダプタ相違部生成作業が完了する。   Then, the CIM adapter developer creates the servlet program 68 (FIG. 3) of the CIM adapter different part 26 created at this time, and stores the created servlet program 68 in the directory created in step S2 (S10). As described above, the CIM adapter different part generation operation is completed.

なお、ステップS10において、サーブレットプログラム68のテンプレートをCIMアダプタ生成部27がファイルに出力してステップS2で作成したディレクトリに格納しておき、CIMアダプタ開発者が当該ファイル内の必要箇所に記入するとしても良い。また、別のCIMアダプタ相違部26からサーブレットプログラム68をコピーし、必要な箇所を修正するとしても良い。   In step S10, it is assumed that the template of the servlet program 68 is output to a file by the CIM adapter generation unit 27 and stored in the directory created in step S2, and that the CIM adapter developer fills in necessary places in the file. Is also good. Further, the servlet program 68 may be copied from another CIM adapter different part 26 and a necessary portion may be corrected.

(2−2)CIMインタフェース生成処理
図16は、図15について上述したアダプタ相違部生成作業のステップS9において、CIMアダプタ開発者によりCIMアダプタ相違部26の生成を指示されたサーバ装置4のCIMアダプタ生成部27により実行されるCIMインタフェース生成処理の処理手順を示す。CIMアダプタ生成部27は、CIMアダプタ開発者からCIMアダプタ相違部26の生成を指示されると、この図16に示す処理手順に従って、対応するCIMアダプタ相違部26を生成する。
(2-2) CIM Interface Generation Process FIG. 16 shows the CIM adapter of the server device 4 in which the generation of the CIM adapter difference unit 26 is instructed by the CIM adapter developer in step S9 of the adapter difference unit generation work described above with reference to FIG. 5 shows a processing procedure of CIM interface generation processing executed by the generation unit 27. When instructed by the CIM adapter developer to generate a CIM adapter difference unit 26, the CIM adapter generation unit 27 generates a corresponding CIM adapter difference unit 26 according to the processing procedure shown in FIG.

実際上、CIMアダプタ生成部27は、CIMアダプタ相違部26の生成を指示されると、このCIMインタフェース生成処理を開始し、まず、図15のステップS7及びステップS8においてCIMアダプタ開発者により設定されたマッピング情報28及び管理情報29に基づいてデータ取得SQLファイル65(図3)、O/Rマップ定義ファイル66(図3)、取得関数定義ファイル67(図3)をそれぞれ作成し、作成したこれらのファイル65〜67を図15のステップS2で作成されたディレクトリにオープンする(S20)。   Actually, when the CIM adapter generating unit 27 is instructed to generate the CIM adapter different unit 26, it starts this CIM interface generating process, and is first set by the CIM adapter developer in steps S7 and S8 in FIG. The data acquisition SQL file 65 (FIG. 3), the O / R map definition file 66 (FIG. 3), and the acquisition function definition file 67 (FIG. 3) are created based on the mapping information 28 and the management information 29, respectively. Are opened in the directory created in step S2 of FIG. 15 (S20).

続いて、CIMアダプタ生成部27は、図15のステップS2においてそのディレクトリ内に格納された出力用プロファイル60の未処理の1行分を読み出し、「ToolID」及び「SubsetID」として指定されているツールIDとサブセットIDを特定する(S21)。例えば、図19に例示した出力用プロファイル60の場合、1行目については、ツールIDとして「1」、サブセットIDとして「Sub1」が特定されることになる。   Subsequently, the CIM adapter generation unit 27 reads one unprocessed line of the output profile 60 stored in the directory in step S2 of FIG. 15, and reads the tool specified as “ToolID” and “SubsetID”. The ID and the subset ID are specified (S21). For example, in the case of the output profile 60 illustrated in FIG. 19, for the first row, “1” is specified as the tool ID and “Sub1” is specified as the subset ID.

次いで、CIMアダプタ生成部27は、S−Pマッピング情報70(図5)を参照して、ステップS21で特定したサブセットIDに対応するプロファイル及びバージョンを特定する(S22)。例えば、図19の1行目の例の場合、ステップS21で特定されるサブセットIDが「Sub1」であるため、S−Pマッピング情報70が図5の内容である場合には、このステップS22において、バージョンが「1.0」の「Profile1」と、バージョンが「1.0」の「Profile2」が特定されることになる。   Next, the CIM adapter generation unit 27 refers to the SP mapping information 70 (FIG. 5) and specifies a profile and a version corresponding to the subset ID specified in step S21 (S22). For example, in the case of the example of the first line in FIG. 19, since the subset ID specified in step S21 is “Sub1”, if the SP mapping information 70 has the contents in FIG. Thus, “Profile1” with version “1.0” and “Profile2” with version “1.0” are specified.

さらにCIMアダプタ生成部27は、P−C−Tマッピング情報71(図6)を参照して、ステップS22で特定したプロファイル及びバージョンに対応するJavaクラス及びリレーショナルデータベーステーブルを特定する(S23)。例えば、ステップS22で特定したプロファイル及びバージョンが上述のようにそれぞれ「Profile1」及び「1.0」であり、P−C−Tマッピング情報71が図6の内容である場合には、このステップSP23において、Javaクラスとして「AAAA」、「BBBB」、「CCCC」及び「DDDD」が特定され、リレーショナルデータベーステーブルとして「T_AAAA」、「T_BBBB」、「T_CCCC」及び「T_DDDD」が特定されることになる。   Further, the CIM adapter generation unit 27 specifies the Java class and the relational database table corresponding to the profile and version specified in step S22 with reference to the PCT mapping information 71 (FIG. 6) (S23). For example, if the profile and version specified in step S22 are “Profile1” and “1.0”, respectively, as described above, and the PCT mapping information 71 has the content shown in FIG. 6, in step SP23, “AAAA”, “BBBB”, “CCCC” and “DDDD” are specified as Java classes, and “T_AAAA”, “T_BBBB”, “T_CCCC” and “T_DDDD” are specified as relational database tables.

続いて、CIMアダプタ生成部27は、ステップS23で特定したJavaクラス及びリレーショナルデータベーステーブルの組について、データ取得SQLファイル65(図3)、O/Rマップ定義ファイル66(図3)及び取得関数定義ファイル67(図3)のそれぞれにコードを追記する、図17について後述するコード出力処理を実行する(S24)。   Subsequently, the CIM adapter generation unit 27 executes the data acquisition SQL file 65 (FIG. 3), the O / R map definition file 66 (FIG. 3), and the acquisition function definition for the set of the Java class and the relational database table specified in step S23. A code output process described later with reference to FIG. 17 is executed by adding a code to each of the files 67 (FIG. 3) (S24).

この後、CIMアダプタ生成部27は、ステップS23で特定したすべてのリレーショナルデータベーステーブルについてコード出力処理を実行し終えたか否かを判断する(S25)。そしてCIMアダプタ生成部27は、この判断で否定結果を得るとステップS24に戻り、ステップS23で特定したリレーショナルデータベーステーブルのうちの未処理の各リレーショナルデータベーステーブルに対するコード出力処理を繰り返す。   Thereafter, the CIM adapter generation unit 27 determines whether or not the code output process has been executed for all the relational database tables specified in step S23 (S25). When the CIM adapter generating unit 27 obtains a negative result in this determination, the process returns to step S24, and repeats the code output process for each unprocessed relational database table among the relational database tables identified in step S23.

この結果、例えば、ステップSP23で特定したJavaクラス及びリレーショナルデータベーステーブルの組が「AAAA」+「T_AAAA」、「BBBB」+「T_BBBB」、「CCCC」+「T_CCCC」及び「DDDD」+「T_DDDD」の4つである場合、合計4回、それぞれのJavaクラス及びリレーショナルデータベーステーブルの組に対してコード出力処理1000が実行されることになる。   As a result, for example, the combination of the Java class and the relational database table specified in step SP23 is “AAAA” + “T_AAAA”, “BBBB” + “T_BBBB”, “CCCC” + “T_CCCC” and “DDDD” + “T_DDDD” In this case, the code output process 1000 is executed four times in total for each set of Java classes and relational database tables.

そしてCIMアダプタ生成部27は、やがてステップS23で特定したすべてのリレーショナルデータベーステーブルに対してコード出力処理を実行し終えることによりステップS25で肯定結果を得ると、ステップS22で特定したプロファイル及びバージョンの全てに対して、ステップS23〜ステップS25の処理を実行し終えたか否かを判断する(S26)。   Then, when the CIM adapter generation unit 27 obtains a positive result in step S25 by finishing executing the code output process for all the relational database tables specified in step S23, all the profiles and versions specified in step S22 are obtained. Then, it is determined whether or not the processing of steps S23 to S25 has been completed (S26).

CIMアダプタ生成部27は、この判断で否定結果を得ると、ステップS23に戻り、この後、ステップS26で肯定結果を得るまでステップS23〜ステップSP26の処理を繰り返す。   If a negative result is obtained in this determination, the CIM adapter generating unit 27 returns to step S23, and thereafter repeats the processing of steps S23 to SP26 until a positive result is obtained in step S26.

そしてCIMアダプタ生成部27は、やがてステップS22で特定したすべてのプロファイル及びバージョンに対してステップS23〜ステップS25の処理を実行し終えることによりステップS26で肯定結果を得ると、ステップS22で読み出したすべてのサブセットに対してステップS22〜ステップS26の処理を実行し終えたか否かを判断する(S27)。   Then, when the CIM adapter generation unit 27 obtains a positive result in step S26 by eventually executing the processing in steps S23 to S25 for all the profiles and versions specified in step S22, the CIM adapter generation unit 27 reads all the profiles and versions identified in step S22. It is determined whether or not the processes of steps S22 to S26 have been completed for the subset of (S27).

CIMアダプタ生成部27は、この判断で否定結果を得ると、ステップS22に戻り、この後、ステップS27で肯定結果を得るまでステップS22〜ステップS27の処理を繰り返す。   If a negative result is obtained in this determination, the CIM adapter generating unit 27 returns to step S22, and thereafter repeats the processing of steps S22 to S27 until a positive result is obtained in step S27.

そしてCIMアダプタ生成部27は、やがてステップS22で出力用プロファイル60(図3)から読み出したすべてのサブセットに対してステップS23〜ステップS26の処理を実行し終えることによりステップS27で肯定結果を得ると、データ取得SQLファイル65(図3)、O/Rマップ定義ファイル66(図3)及び取得関数定義ファイル67(図3)をクローズし(S28)、この後、このCIMインタフェース生成処理を終了する。   Then, the CIM adapter generating unit 27 eventually obtains an affirmative result in step S27 by completing the processing in steps S23 to S26 for all the subsets read from the output profile 60 (FIG. 3) in step S22. Then, the data acquisition SQL file 65 (FIG. 3), the O / R map definition file 66 (FIG. 3), and the acquisition function definition file 67 (FIG. 3) are closed (S28), and then the CIM interface generation processing ends. .

図17は、かかるCIMインタフェース生成処理のステップS24においてCIMアダプタ生成部27により実行されるコード出力処理の具体的な処理内容を示す。   FIG. 17 shows the specific processing contents of the code output processing executed by the CIM adapter generation unit 27 in step S24 of the CIM interface generation processing.

CIMアダプタ生成部27は、CIMインタフェース生成処理(図16)のステップS24に進むと、この図17に示すコード出力処理を開始し、まず、利用ツール情報80(図10)を参照して、CIMインタフェース生成処理のステップS21で特定したツールIDを元に、当該サブセットのコード出力で利用するツール組合せを特定する(S30)。   When the process proceeds to step S24 of the CIM interface generation process (FIG. 16), the CIM adapter generation unit 27 starts the code output process shown in FIG. 17, and first refers to the use tool information 80 (FIG. 10) and Based on the tool ID specified in step S21 of the interface generation process, a tool combination to be used for code output of the subset is specified (S30).

例えば、図10の例において、ステップS21で特定したツールIDが「1」であった場合、Java変換用ツールとして「JAXB」、Java変換ルールとしてJava変換ルールIDが「1」のJava変換ルール、O/Rマップツールとして「MyBatis」、O/Rマップ定義としてO/Rマップ定義IDが「1」のO/Rマップ定義、取得関数定義として取得関数定義IDが「1」の取得関数定義がそれぞれ特定されることになる。   For example, in the example of FIG. 10, when the tool ID specified in step S21 is “1”, “JAXB” is a Java conversion tool, and a Java conversion rule whose Java conversion rule ID is “1” is a Java conversion rule. "MyBatis" as an O / R map tool, an O / R map definition with an O / R map definition ID of "1" as an O / R map definition, and an acquisition function definition with an acquisition function definition ID of "1" as an acquisition function definition Each will be specified.

続いて、CIMアダプタ生成部27は、Java変換ルール情報81(図11)を参照して、ステップS30で特定したツール組合せのうち、Java変換ルールIDに対応するJava変換ルール内容と、スクリプトパス名とを特定する(S31)。   Subsequently, the CIM adapter generation unit 27 refers to the Java conversion rule information 81 (FIG. 11) and, among the tool combinations specified in step S30, the Java conversion rule contents corresponding to the Java conversion rule ID and the script path name Is specified (S31).

例えば、図11において、ステップS30で特定したJava変換ルールIDが「1」であった場合、「XMLスキーマファイルを探索して、Roottクラスを特定し、当該クラスの『@XmiElement』を『XmiAttribute』に置換」、「XMLスキーマファイルを探索して、他CIMクラスへの参照があるクラスを特定し、参照元クラスのクラス変数をJava専用クラスに置換し、setter/getterを変更」及び「XMLスキーマファイルを探索して、他CIMクラスへの参照があるクラスを特定し、参照先クラスに参照専用クラスを追加」というJava変換ルール内容がそれぞれ特定され、これらJava変換ルール内容のスクリプトがそれぞれ「/Scr/Script1」、「/Scr/Script2」又は「/Scr/Script2」と特定されることになる。   For example, in FIG. 11, when the Java conversion rule ID specified in step S30 is “1”, “the XML schema file is searched, the Roott class is specified, and“ @XmiElement ”of the class is changed to“ XmiAttribute ”. , "Search XML schema files to identify classes that have references to other CIM classes, replace class variables in referenced classes with Java-only classes, change setter / getter" and "XML schema A file is searched to identify a class having a reference to another CIM class, and a reference-only class is added to a reference destination class. " Scr / Script1 "," / Scr / Script2 "or" / Scr / Script2 ".

次いで、CIMアダプタ生成部27は、Javaクラスファイル63(図3)のデータに対して、ステップS31で特定したJava変換ルール内容のスクリプトを実行することによりCIM/XML対応Javaクラスファイル64(図3)を作成し、作成したCIM/XML対応Javaクラスファイル64を図15のステップS1で作成したディレクトリに格納する(S32)。   Next, the CIM adapter generation unit 27 executes the script of the Java conversion rule content specified in step S31 on the data of the Java class file 63 (FIG. 3), thereby executing the CIM / XML-compatible Java class file 64 (FIG. 3). ) Is created, and the created CIM / XML-compatible Java class file 64 is stored in the directory created in step S1 of FIG. 15 (S32).

例えば、図11において、ステップS30で特定したJava変換ルールIDが「1」であった場合、「/Scr/Script1」というスクリプトと「/Scr/Script2」というスクリプトとを実行し、該当するJavaクラスのCIM/XML対応Javaクラスファイル64を作成する。なお「/Scr/Script1」実行後のCIM/XML対応Javaクラスファイルの例を図23に示す。この例では、そのスクリプトによって変換対象となるRootクラスが特定され(図22のJavaクラス例)、そのJavaクラスをJavaクラス変換ルール内容に従って、図23の中で破線DL10で囲んだ箇所のような変換処理を行っている。   For example, in FIG. 11, when the Java conversion rule ID specified in step S30 is “1”, the script “/ Scr / Script1” and the script “/ Scr / Script2” are executed, and the corresponding Java class is executed. A CIM / XML compatible Java class file 64 is created. FIG. 23 shows an example of a CIM / XML-compatible Java class file after executing “/ Scr / Script1”. In this example, a Root class to be converted is specified by the script (an example of a Java class in FIG. 22), and the Java class is represented by a portion surrounded by a broken line DL10 in FIG. Conversion processing is being performed.

続いて、CIMアダプタ生成部27は、T−SIマッピング情報72(図7)及びSI−SQLマッピング情報73(図8)を参照して、CIMインタフェース生成処理(図16)のステップS23で特定したリレーショナルデータベースに対するSQLを特定し、特定したSQLのコードを図15のステップS2で作成したディレクトリに格納されているデータ取得SQLファイル65(図3)に追記する(S33)。   Subsequently, the CIM adapter generation unit 27 refers to the T-SI mapping information 72 (FIG. 7) and the SI-SQL mapping information 73 (FIG. 8) and specifies the CIM interface generation processing (FIG. 16) in step S23. The SQL for the relational database is specified, and the code of the specified SQL is added to the data acquisition SQL file 65 (FIG. 3) stored in the directory created in step S2 of FIG. 15 (S33).

例えば、図7及び図8の例において、リレーショナルデータベーステーブルが「T_AAAA」の場合、データ取得SQLのコードとして出力するSQLは、SQL IDが「1」の「Select * From [T];」というSQL、SQL IDが「2」の「Select * From [T] Where nwmid=xxx;」というSQLが特定される。また、データ取得SQLファイル65にコードを追記する際は、各SQLの中の「[T]」の箇所に当該リレーショナルデータベーステーブル名(この場合、「T_AAAA」)を入れて書き出す。図24に示したデータ取得SQLのコードの出力例において、破線DL11で囲んだ箇所が、「T_AAAA」というリレーショナルデータベースに対して出力したコードの例である。   For example, in the example of FIGS. 7 and 8, when the relational database table is “T_AAAA”, the SQL output as the code of the data acquisition SQL is “Select * From [T];” whose SQL ID is “1”. , The SQL of “Select * From [T] Where nwmid = xxx;” with the SQL ID “2” is specified. In addition, when a code is added to the data acquisition SQL file 65, the relational database table name (in this case, “T_AAAA”) is inserted and written in the place of “[T]” in each SQL. In the output example of the data acquisition SQL code shown in FIG. 24, a portion surrounded by a broken line DL11 is an example of a code output to a relational database “T_AAAA”.

次いで、CIMアダプタ生成部27は、O/Rマップ定義情報82(図12)を参照して、ステップ30で特定したツール組合せのO/Rマップ定義IDに対応するO/Rマップ定義内容を特定する(S34)。   Next, the CIM adapter generation unit 27 refers to the O / R map definition information 82 (FIG. 12) to identify the O / R map definition contents corresponding to the O / R map definition ID of the tool combination identified in step 30. (S34).

さらにCIMアダプタ生成部27は、図16のステップS23で特定したJavaクラス及びリレーショナルデータベーステーブルと、ステップS33で特定したSQL ID及びSQLとに基づいて、ステップS34で特定したO/Rマップ定義内容に従って、図15のステップS8で設定されたO/Rマップ定義ファイル66(図3)にコードを追記する(S35)。   Further, based on the Java class and relational database table specified in step S23 of FIG. 16 and the SQL ID and SQL specified in step S33, the CIM adapter generation unit 27 performs the O / R map definition specified in step S34. Then, the code is added to the O / R map definition file 66 (FIG. 3) set in step S8 of FIG. 15 (S35).

例えば、図12の例において、O/Rマップ定義IDが「1」の場合、O/Rマップ定義内容欄82Bの破線DL1で囲まれた箇所をO/Rマップ定義ファイル66に追記していく。なお、O/Rマップ定義内容欄82Bにおけるそれ以外の箇所は、O/Rマップ定義ファイル66の作成時に記述しておく。図25に示したO/Rマップ定義出力例において、破線DL12で囲んだ箇所が、Javaクラスが「AAAA」、リレーショナルデータベーステーブルが「T_AAAA」、SQL IDが「1」及び「2」に対して出力したコードの例である。   For example, in the example of FIG. 12, when the O / R map definition ID is “1”, a portion surrounded by a broken line DL1 in the O / R map definition content column 82B is added to the O / R map definition file 66. . The other portions in the O / R map definition content column 82B are described when the O / R map definition file 66 is created. In the O / R map definition output example shown in FIG. 25, the portions surrounded by the broken line DL12 correspond to “AAAA” for the Java class, “T_AAAA” for the relational database table, and “1” and “2” for the SQL ID. This is an example of the output code.

この後、CIMアダプタ生成部27は、図16のステップS23で特定したリレーショナルデータベーステーブルで指定されているすべてのSQLに対してステップS33〜ステップS35の処理を実行したか否かを判断する(S36)。   Thereafter, the CIM adapter generation unit 27 determines whether or not the processing of steps S33 to S35 has been executed for all the SQLs specified in the relational database table specified in step S23 of FIG. 16 (S36). ).

そしてCIMアダプタ生成部27は、この判断で否定結果を得ると、ステップSP33に戻り、この後、ステップS36で肯定結果を得るまでステップS33〜ステップS36の処理を繰り返す。   When the CIM adapter generating unit 27 obtains a negative result in this determination, the process returns to step SP33, and thereafter, repeats the processing of steps S33 to S36 until obtaining a positive result in step S36.

そしてCIMアダプタ生成部27は、やがてステップS23で特定したリレーショナルデータベーステーブルで指定されているすべてのSQLについて、ステップS33〜ステップS35の処理を実行し終えることによりステップS36で肯定結果を得ると、取得関数定義情報83(図13)を参照して、ステップS30で特定したツール組合せのうち、取得関数定義IDに対応する取得関数定義内容を特定する(S37)。   Then, when the CIM adapter generation unit 27 obtains an affirmative result in step S36 by completing execution of the processing in steps S33 to S35 for all SQLs specified in the relational database table specified in step S23, the acquisition is completed. With reference to the function definition information 83 (FIG. 13), the acquisition function definition content corresponding to the acquisition function definition ID is identified from the tool combinations identified in step S30 (S37).

続いて、CIMアダプタ生成部27は、ステップS23で特定したJavaクラスに基づいて、ステップS37で特定した取得関数定義内容に従って、図15のステップS8で設定された取得関数定義ファイル67(図3)にコードを追記する(S38)。   Subsequently, the CIM adapter generating unit 27 obtains the acquisition function definition file 67 (FIG. 3) set in step S8 in FIG. 15 based on the Java class specified in step S23 and according to the acquisition function definition content specified in step S37. Is added to the code (S38).

例えば、図13の例において、取得関数定義が「1」の場合、取得関数定義内容欄83Bの破線DL2〜DL4で囲まれた各箇所を取得関数定義ファイル67に追記していく。なお、取得関数定義内容におけるそれ以外の箇所は、取得関数定義ファイル67の作成時に記述しておく。図26に示した取得関数定義出力例において、破線DL13〜DL15で囲まれた箇所がJavaクラスが「AAAA」、Javaインスタンス名が「aAAA」に対して出力したコードの例である。なお、Javaインスタンス名は任意の文字列で良く、本例ではJavaクラスの先頭文字を小文字にした名前としている。   For example, in the example of FIG. 13, when the acquisition function definition is “1”, each part surrounded by broken lines DL2 to DL4 in the acquisition function definition content column 83B is added to the acquisition function definition file 67. The other parts of the acquisition function definition are described when the acquisition function definition file 67 is created. In the output example of the acquisition function definition illustrated in FIG. 26, a portion surrounded by broken lines DL13 to DL15 is an example of a code output for the Java class “AAAA” and the Java instance name “aAAA”. Note that the Java instance name may be an arbitrary character string, and in this example, the first character of the Java class is a name with a lowercase letter.

そしてCIMアダプタ生成部27は、この後、このコード出力処理1000を終了して図16のCIMインタフェース生成処理に戻る。   Then, the CIM adapter generation unit 27 thereafter ends the code output processing 1000 and returns to the CIM interface generation processing of FIG.

(3)本実施の形態の効果
以上の構成を有する計算機システム1では、サーバ装置4のCIMアダプタ生成部27が、CIMアダプタ相違部26のうちのデータ取得SQLファイル65、O/Rマップ定義ファイル66、取得関数定義ファイル67のコードを自動生成するため、CIMアダプタ開発者のCIMアダプタ開発工数を削減することができる。かくするにつき、本実施の形態の計算機システム1によれば、CIMアダプタを容易かつ短時間に作成することができる。
(3) Effects of the present embodiment In the computer system 1 having the above configuration, the CIM adapter generation unit 27 of the server device 4 executes the data acquisition SQL file 65 and the O / R map definition file of the CIM adapter difference unit 26. 66, since the code of the acquisition function definition file 67 is automatically generated, it is possible to reduce the number of CIM adapter development steps of the CIM adapter developer. Thus, according to the computer system 1 of the present embodiment, a CIM adapter can be created easily and in a short time.

また本計算機システム1によれば、出力用プロファイル60に複数の出力用サブセットを指定することができ、また各出力用サブセットも複数のプロファイルを指定することができるため、様々なデータ出力形式、ひいては様々なCIMプロファイルに対応することができる。   Further, according to the computer system 1, a plurality of output subsets can be specified in the output profile 60, and a plurality of profiles can be specified for each output subset. Various CIM profiles can be supported.

さらに本計算機システム1によれば、リレーショナルデータベーステーブルとSQLのマッピング情報によって、必要なSQLだけのコードを出力することができるため、CIMアダプタ相違部26の規模を抑えることができるという効果をも得ることができる。   Further, according to the computer system 1, since only the required SQL codes can be output based on the relational database table and the SQL mapping information, the effect that the size of the CIM adapter different part 26 can be suppressed can be obtained. be able to.

(4)他の実施の形態
以上、本実施の形態を説明したが、本発明はこの実施の形態に限定されるものではなく、その要旨を逸脱しなし範囲で種々変更可能である。
(4) Other Embodiments Although the present embodiment has been described above, the present invention is not limited to this embodiment, and can be variously modified without departing from the gist thereof.

例えば、上述の実施の形態においては、、CIMアダプタ生成部27が、CIMアダプタ相違部26のうちのデータ取得SQLファイル65、O/Rマップ定義ファイル66、取得関数定義ファイル67のコードを自動生成し、CIMアダプタ相違部26を作成するが、上述のようにCIMアダプタ相違部26は、CIMプロファイルに1対1で対応するものであり、複数のCIMプロファイルに対して複数のCIMアダプタ相違部26が作成される。本手順以外でも、作成するCIMプロファイルの内部構造に最も近い既存CIMプロファイルを特定し、対応するCIMアダプタ相違部26をコピーして、差分の箇所のみコード修正を行う手段を用いても良い。また、作成するCIMプロファイルがない場合でも出力プロファイルだけを指定してCIMアダプタ相違部26を作成しても良い。   For example, in the above embodiment, the CIM adapter generation unit 27 automatically generates the codes of the data acquisition SQL file 65, the O / R map definition file 66, and the acquisition function definition file 67 in the CIM adapter different unit 26. Then, the CIM adapter difference unit 26 is created. As described above, the CIM adapter difference unit 26 has a one-to-one correspondence with a CIM profile, and a plurality of CIM adapter difference units 26 correspond to a plurality of CIM profiles. Is created. Other than this procedure, a means for specifying an existing CIM profile closest to the internal structure of the CIM profile to be created, copying the corresponding CIM adapter different part 26, and correcting the code only at the difference may be used. Further, even when there is no CIM profile to be created, the CIM adapter different part 26 may be created by designating only the output profile.

また上述の実施の形態においては、データモデルがCIMである場合について述べたが、本発明はこれに限らず、CIM以外のデータモデルについても本願発明を広く適用することができる。   In the above-described embodiment, the case where the data model is CIM has been described. However, the present invention is not limited to this, and the present invention can be widely applied to data models other than CIM.

さらに上述の実施の形態においては、マッピング情報及び管理情報をそれぞれ設定するためのインタフェースとして、図14に示すような画面構成を有するマッピング情報/管理情報設定画面90を適用するようにした場合について述べたが、本発明はこれに限らず、かかるインタフェースの構成としては、この他種々の構成を広く適用することができる。   Further, in the above-described embodiment, a case is described in which a mapping information / management information setting screen 90 having a screen configuration as shown in FIG. 14 is applied as an interface for setting mapping information and management information, respectively. However, the present invention is not limited to this, and various other configurations can be widely applied as the configuration of the interface.

1……計算機システム、2……クライアント計算機、4……サーバ装置、5……データベースサーバ装置、7……ストレージ装置、22,32……CPU、24,34……記憶部、25……CIMアダプタ共通部、26……CIMアダプタ相違部、27……CIMアダプタ生成部、28……マッピング情報、29……管理情報、36……RDBMS、42……リレーショナルデータベース、60……出力用ファイル、61……XMLスキーマデータファイル、62……リレーショナルデータベース作成用SQLファイル、63……Javaクラスファイル、64……CIM/XML対応Javaクラスファイル、65……データ取得SQLファイル、66……O/Rマップ定義ファイル、67……取得関数定義ファイル、68……サーブレットプログラム、70……S−Pマッピング情報、71……P−C−Tマッピング情報、72……T−SIマッピング情報、73……SI−SQLマッピング情報、80……利用ツール情報、81……Java変換ルール情報、82……O/Rマップ定義情報、83……取得関数定義情報、90……マッピング情報/管理情報設定画面。   DESCRIPTION OF SYMBOLS 1 ... Computer system, 2 ... Client computer, 4 ... Server device, 5 ... Database server device, 7 ... Storage device, 22, 32 ... CPU, 24, 34 ... Storage part, 25 ... CIM Adapter common part, 26 CIM adapter difference part, 27 CIM adapter generation part, 28 Mapping information, 29 Management information, 36 RDBMS, 42 Relational database, 60 Output file, 61 ... XML schema data file, 62 ... SQL file for creating relational database, 63 ... Java class file, 64 ... CIM / XML compatible Java class file, 65 ... Data acquisition SQL file, 66 ... O / R Map definition file, 67 ... Acquisition function definition file, 68 ... Servlet Program 70 ... SP mapping information 71 ... PCT mapping information 72 ... T-SI mapping information 73 ... SI-SQL mapping information 80 ... Used tool information 81 ... Java conversion rule information, 82... O / R map definition information, 83... Acquisition function definition information, 90... Mapping information / management information setting screen.

Claims (8)

第1のデータ形式を有する所定のデータモデルのデータのデータ形式をリレーショナルデータベースに応じた第2のデータ形式に変換し、又は、前記第2のデータ形式のデータを前記第1のデータ形式に変換するアダプタを生成するアダプタ生成装置において、
当該アダプタを生成するアダプタ生成部と、
前記アダプタ生成部により生成された1又は複数の前記アダプタを記憶する記憶部と
を備え、
前記アダプタ生成部は、
データ出力形式ごとの出力用のサブセットに対して、前記データモデルのプロファイル及びバージョンと、前記リレーショナルデータベースのテーブルと、前記リレーショナルデータベースに対するクエリとをそれぞれ紐付けるマッピング情報と、
前記アダプタを生成する際に用いるデータ変換のツール及びルールに関する各情報と、データ変換処理を行うスクリプトに関する情報と、定義のフォーマットに関する情報とを含む管理情報と
を保持し、
前記マッピング情報及び前記管理情報に基づいて、指定された前記データ出力形式に応じた前記アダプタを生成する
ことを特徴とするアダプタ生成装置。
The data format of the data of the predetermined data model having the first data format is converted into a second data format corresponding to a relational database, or the data of the second data format is converted into the first data format In an adapter generation device that generates an adapter to perform
An adapter generation unit that generates the adapter;
A storage unit for storing one or more adapters generated by the adapter generation unit,
The adapter generation unit,
For a subset for output for each data output format, a profile and version of the data model, a table of the relational database, and mapping information respectively associating a query to the relational database,
Management information including information on tools and rules for data conversion used when generating the adapter, information on a script for performing data conversion processing, and information on a definition format,
An adapter generation device that generates the adapter according to the specified data output format based on the mapping information and the management information.
前記アダプタ生成部は、
指定された複数の前記データ出力形式に応じた前記アダプタを生成する
ことを特徴とする請求項1に記載のアダプタ生成装置。
The adapter generation unit,
The adapter generation device according to claim 1, wherein the adapter is generated according to a plurality of the specified data output formats.
前記マッピング情報及び前記管理情報をそれぞれ設定するためのインタフェースを備える
ことを特徴とする請求項1に記載のアダプタ生成装置。
The adapter generation device according to claim 1, further comprising an interface for setting each of the mapping information and the management information.
前記データモデルは、
国際規格で規定されたCIM(Common Information Model)であり、
前記アダプタは、
上位装置からXML(Extensible Markup Language)形式で送信される前記CIMのデータを前記リレーショナルデータベースに応じたデータ形式に変換し、又は、前記リレーショナルデータベースで管理されている前記CIMのデータを前記XML形式のデータに変換する
ことを特徴とする請求項1に記載のアダプタ生成装置。
The data model is
CIM (Common Information Model) defined by international standards,
The adapter is
The CIM data transmitted from the host device in the XML (Extensible Markup Language) format is converted into a data format corresponding to the relational database, or the CIM data managed in the relational database is converted into the XML format. The adapter generation device according to claim 1, wherein the adapter generation device converts the data into data.
第1のデータ形式を有する所定のデータモデルのデータのデータ形式をリレーショナルデータベースに応じた第2のデータ形式に変換し、又は、前記第2のデータ形式のデータを前記第1のデータ形式に変換するアダプタを生成するアダプタ生成装置において実行されるアダプタ生成方法であって、
前記アダプタ生成装置が、前記アダプタ生成装置に、データ出力形式ごとの出力用のサブセットに対して、前記データモデルのプロファイル及びバージョンと、前記リレーショナルデータベースのテーブルと、前記リレーショナルデータベースに対するクエリとをそれぞれ紐付けるマッピング情報を設定する第1のステップと、
前記アダプタ生成装置が、前記マッピング情報管理情報に基づいて、指定された前記データ出力形式に応じた前記アダプタを生成する第2のステップと
を備え
前記管理情報が、前記アダプタを生成する際に用いるデータ変換のツール及びルールに関する各情報と、データ変換処理を行うスクリプトに関する情報と、定義のフォーマットに関する情報とを含む、
ことを特徴とするアダプタ生成方法。
The data format of the data of the predetermined data model having the first data format is converted into a second data format corresponding to a relational database, or the data of the second data format is converted into the first data format An adapter generation method executed in an adapter generation device that generates an adapter to perform,
The adapter generation device associates the adapter generation device with a profile and version of the data model, a table of the relational database, and a query for the relational database for an output subset for each data output format. a first step of setting the mapping information to give,
Said adapter generating device, based on said mapping information and the management information, and a second step of generating the adapter in accordance with the designated data output format,
The management information includes information on tools and rules of data conversion used when generating the adapter, information on a script for performing data conversion processing, and information on a definition format.
An adapter generation method, characterized in that:
前記第2のステップにおいて、前記アダプタ生成装置は、
指定された複数の前記データ出力形式に応じた前記アダプタを生成する
ことを特徴とする請求項5に記載のアダプタ生成方法。
In the second step, the adapter generation device includes:
The adapter generation method according to claim 5, wherein the adapter is generated according to a plurality of the specified data output formats.
前記アダプタ生成装置は、
前記マッピング情報及び前記管理情報をそれぞれ設定するためのインタフェースを有し、
前記第1のステップでは、
当該インタフェースを介して前記マッピング情報が設定される
ことを特徴とする請求項5に記載のアダプタ生成方法。
The adapter generation device,
An interface for setting the mapping information and the management information,
In the first step,
Adapter generation method according to claim 5, wherein the mapping information via the interface is set.
前記データモデルは、
国際規格で規定されたCIM(Common Information Model)であり、
前記アダプタは、
上位装置からXML(Extensible Markup Language)形式で送信される前記CIMのデータを前記リレーショナルデータベースに応じたデータ形式に変換し、又は、前記リレーショナルデータベースで管理されている前記CIMのデータを前記XML形式のデータに変換する
ことを特徴とする請求項5に記載のアダプタ生成方法。
The data model is
CIM (Common Information Model) defined by international standards,
The adapter is
The CIM data transmitted from the host device in the XML (Extensible Markup Language) format is converted into a data format corresponding to the relational database, or the CIM data managed in the relational database is converted into the XML format. The adapter generation method according to claim 5, wherein the adapter is converted into data.
JP2018523222A 2016-06-23 2016-06-23 Adapter generation apparatus and method Active JP6677809B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/068623 WO2017221364A1 (en) 2016-06-23 2016-06-23 Adapter generation device and method

Publications (2)

Publication Number Publication Date
JPWO2017221364A1 JPWO2017221364A1 (en) 2019-03-22
JP6677809B2 true JP6677809B2 (en) 2020-04-08

Family

ID=60783398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018523222A Active JP6677809B2 (en) 2016-06-23 2016-06-23 Adapter generation apparatus and method

Country Status (2)

Country Link
JP (1) JP6677809B2 (en)
WO (1) WO2017221364A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220052112A (en) * 2020-10-20 2022-04-27 대한민국(국가기록원) Method and system for preserving relational database

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4207438B2 (en) * 2002-03-06 2009-01-14 日本電気株式会社 XML document storage / retrieval apparatus, XML document storage / retrieval method used therefor, and program thereof
JP5284403B2 (en) * 2011-03-28 2013-09-11 株式会社東芝 Ontology update device, method, and system
JP6184167B2 (en) * 2013-05-21 2017-08-23 株式会社東芝 Data processing apparatus, method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220052112A (en) * 2020-10-20 2022-04-27 대한민국(국가기록원) Method and system for preserving relational database
KR102453595B1 (en) 2020-10-20 2022-10-14 (주)퍼스트정보 Method and system for preserving relational database

Also Published As

Publication number Publication date
JPWO2017221364A1 (en) 2019-03-22
WO2017221364A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
US7548542B2 (en) Methods and apparatus for transferring data
US9535965B2 (en) System and method for specifying metadata extension input for extending data warehouse
KR101665152B1 (en) Extending collaboration capabilities to external data
US7065744B2 (en) System and method for converting management models to specific console interfaces
US20060015839A1 (en) Development of software systems
US20090043778A1 (en) Generating etl packages from template
US10445675B2 (en) Confirming enforcement of business rules specified in a data access tier of a multi-tier application
US7877417B2 (en) Method and apparatus for exchanging data with a database
US20220058032A1 (en) Generation apparatus, program, and generation method
US10296505B2 (en) Framework for joining datasets
CN108762743B (en) Data table operation code generation method and device
JP5033322B2 (en) Information management method and apparatus using connection relation information
US8433729B2 (en) Method and system for automatically generating a communication interface
TWI629602B (en) Method for automatically generating website interactive program
JP6677809B2 (en) Adapter generation apparatus and method
EP2690563A1 (en) Method and device for reporting on data of documents generated from templates
CN101419611A (en) Method for performing an operation on an XML database
EP4154129A1 (en) Database management methods and associated apparatus
JP5685205B2 (en) Program, information processing apparatus and access support method
US20080022258A1 (en) Custom database system and method of building and operating the same
JP5144974B2 (en) Module management method, module management apparatus, and module management program
US20100070954A1 (en) Custom database system and method of building and operating the same
JP6331307B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN116755684B (en) OAS Schema generation method, device, equipment and medium
JP2006146385A (en) Electronic form processing method, system, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200114

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200227

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: 20200303

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200313

R150 Certificate of patent or registration of utility model

Ref document number: 6677809

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150