JP3339408B2 - Data conversion device and data conversion method of data conversion device - Google Patents

Data conversion device and data conversion method of data conversion device

Info

Publication number
JP3339408B2
JP3339408B2 JP10150198A JP10150198A JP3339408B2 JP 3339408 B2 JP3339408 B2 JP 3339408B2 JP 10150198 A JP10150198 A JP 10150198A JP 10150198 A JP10150198 A JP 10150198A JP 3339408 B2 JP3339408 B2 JP 3339408B2
Authority
JP
Japan
Prior art keywords
conversion
data
information
data type
design information
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.)
Expired - Fee Related
Application number
JP10150198A
Other languages
Japanese (ja)
Other versions
JPH11296360A (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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP10150198A priority Critical patent/JP3339408B2/en
Publication of JPH11296360A publication Critical patent/JPH11296360A/en
Application granted granted Critical
Publication of JP3339408B2 publication Critical patent/JP3339408B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データ変換装置お
よびデータ変換装置のデータ変換方法に関し、特に任意
のデータベースの構造をプログラミング言語の構造体に
変換するデータ変換装置およびデータ変換装置のデータ
変換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device and a data conversion method for the data conversion device, and more particularly to a data conversion device for converting an arbitrary database structure into a structure of a programming language, and a data conversion method for the data conversion device. About.

【0002】[0002]

【従来の技術】従来、この種のデータ変換装置として、
特開平5ー274112号公報に開示されたものが知ら
れている。同公報に開示されている発明は、異なるアー
キテクチャのシステム間において、所定のアーキテクチ
ャに基づいて記述された所定の規則に従って構成される
複数のデータフィールドからなるレコードを所定の変換
パラメータを使用して、上述したアーキテクチャとは異
なる所望のアーキテクチャに基づく複数のデータフィー
ルドからなるレコードに変換するものである。
2. Description of the Related Art Conventionally, as this kind of data conversion device,
One disclosed in Japanese Patent Application Laid-Open No. 5-274112 is known. The invention disclosed in the gazette, between systems of different architectures, using a predetermined conversion parameter a record consisting of a plurality of data fields configured according to a predetermined rule described based on a predetermined architecture, The record is converted into a record including a plurality of data fields based on a desired architecture different from the above-described architecture.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
変換装置において、異なるアーキテクチャ間の変換は、
所定のアーキテクチャによって記述されているデータ型
を一方の異なるアーキテクチャに適合するデータ型に変
換するような所定の変換規則に従って変換するため、デ
ータ型に必要な桁数や整数として扱うのか、小数として
扱うのかなどの配慮がないというような課題があった。
また、異なるアーキテクチャ間におけるデータベース構
造の変換のみを考慮しているため、上流設計において決
められたデータベース構造を具体的な言語のデータ構造
体に変換することには言及されていなかった。
In the conventional data converter described above, conversion between different architectures is performed by:
To convert the data type described by a given architecture according to a given conversion rule that converts it to a data type compatible with one different architecture, treat it as the number of digits or integer required for the data type, or treat it as a decimal There was a problem that no consideration was given to the situation.
Also, since only the conversion of the database structure between different architectures is considered, there is no mention of converting the database structure determined in the upstream design into a data structure of a specific language.

【0004】本発明は、上記課題にかんがみてなされた
もので、抽象的に記述されたデータベース構造を、適切
なデータ型からなる具体的な言語の構造体に変換するこ
とが可能なデータ変換装置およびデータ変換装置のデー
タ変換方法の提供を目的とする。
The present invention has been made in view of the above problems, and is a data conversion apparatus capable of converting an abstractly described database structure into a structure of a specific language having an appropriate data type. And a data conversion method for a data conversion device.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、請求項1にかかる発明は、データ型が未定のデータ
ベース情報を備える上流設計情報と、同上流設計情報を
読み込み内部情報として保持する上流設計情報入力手段
と、同保持された上流設計情報を具体的な言語に変換す
る規則を備える変換規則情報と、同変換規則情報を読み
出して所定のフィールドとデータとを備えるデータ型変
換規則テーブルを作成するとともに、同テーブルの内容
に従って、上記上流設計情報を具体的な言語に変換する
データ変換制御手段と、同データ変換制御手段によって
上記上流設計情報が変換された下流設計情報を出力する
下流設計情報出力手段とを具備する構成としてある。
In order to achieve the above object, the invention according to claim 1 reads the upstream design information having database information whose data type is undetermined, and reads the upstream design information. Upstream design information input means for holding as internal information, conversion rule information including a rule for converting the held upstream design information into a specific language, and predetermined fields and data read out from the conversion rule information A data conversion control unit that creates a data type conversion rule table and converts the upstream design information into a specific language according to the contents of the table, and a downstream design in which the upstream design information is converted by the data conversion control unit. And a downstream design information output means for outputting information.

【0006】上記のように構成した請求項1にかかる発
明においては、上記上流設計情報は、抽象的なデータベ
ース情報を備える上流設計情報を読み込み内部情報とし
て保持する。そして、上記データ変換制御手段は、同保
持された上流設計情報を具体的な言語に変換する規則か
らなる変換規則情報を読み出して所定のフィールドとデ
ータとを備えるデータ型変換規則テーブルを作成すると
ともに、同テーブルの内容に従って上記上流設計情報を
具体的な言語に変換する。上記下流設計情報出力手段
は、同データ変換制御手段によって上記上流設計情報が
変換された下流設計情報を出力する。
In the invention according to claim 1 configured as described above, the upstream design information reads the upstream design information including abstract database information and holds it as internal information. The data conversion control means reads the conversion rule information including rules for converting the held upstream design information into a specific language and creates a data type conversion rule table including predetermined fields and data. The upstream design information is converted into a specific language according to the contents of the table. The downstream design information output means outputs downstream design information obtained by converting the upstream design information by the data conversion control means.

【0007】すなわち、所定のデータベース構造によっ
て記述された上記上流設計情報は、上記変換規則情報か
ら展開されたデータ型変換規則テーブルに従って、具体
的な言語の構造体に変換される。また、上記データ型変
換規則テーブルにおいては、上流設計情報に記述されて
いるデータベース構造のデータ型の桁数毎に具体的言語
の構造体のデータ型が一対一の対応で定義つけられてい
る。
That is, the upstream design information described by a predetermined database structure is converted into a specific language structure according to a data type conversion rule table developed from the conversion rule information. In the data type conversion rule table, the data type of the structure of the specific language is defined in one-to-one correspondence for each digit of the data type of the database structure described in the upstream design information.

【0008】上記変換規則情報には、所定の変換規則が
格納されているが、すべての規則を変換規則を網羅して
いるとは限らない。従って、上記データ変換制御手段が
変換する際に、同変換規則情報に存在しない変換規則で
あるために、上記データ型変換規則テーブルに該当する
パターンが存在しないと変換処理においてエラー処理な
どにより処理が中断されたり、当該箇所が変換されない
ままであったりすることがある。
[0008] Although the conversion rule information stores predetermined conversion rules, not all rules cover the conversion rules. Therefore, when the data conversion control means performs the conversion, the conversion rule does not exist in the conversion rule information. If the pattern corresponding to the data type conversion rule table does not exist, the conversion process may be performed by error processing or the like. It may be interrupted or the part may be left unconverted.

【0009】そこで、上記データ変換制御手段の構成の
一例として、請求項2にかかる発明は、請求項1に記載
のデータ変換装置において、上記データ変換制御手段
は、上記データ型変換規則テーブルにおいて該当する桁
数が存在しないときに、同変換元データ型において最寄
りの桁数を検索して同桁数に該当する変換先データ型に
変換する構成としてある。
Therefore, as an example of the configuration of the data conversion control means, the invention according to claim 2 is the data conversion apparatus according to claim 1, wherein the data conversion control means corresponds to the data type conversion rule table in the data type conversion rule table. When there is no digit number to be converted, the nearest digit number is searched for in the same conversion source data type, and the data type is converted to a conversion destination data type corresponding to the same digit number.

【0010】上記のように構成した請求項2にかかる発
明において、上記変換規則情報に存在しない変換元デー
タが、上記上流設計情報に記述されていると、上記デー
タ変換制御手段は、上記データ型変換規則テーブルにお
いて該当する桁数が存在しないため、同変換元データ型
において最寄りの桁数を検索して同桁数に該当する変換
先データ型に変換する。
[0010] In the invention according to claim 2 configured as described above, if conversion source data that does not exist in the conversion rule information is described in the upstream design information, the data conversion control means executes the data type conversion. Since the corresponding digit number does not exist in the conversion rule table, the nearest digit number is searched for in the same conversion source data type and converted to the conversion destination data type corresponding to the same digit number.

【0011】例えば、上流設計情報のデータ型におい
て”NUMBER”の桁数4が”short”に、ま
た、”NUMBER”の桁数9が”long”に変換さ
れると規則に定義つけられている場合においては、桁数
5の定義がないため、最寄りの桁数4の変換規則によっ
て変換が実行される。
For example, in the data type of the upstream design information, a rule is defined that 4 digits of “NUMBER” are converted to “short” and 9 digits of “NUMBER” are converted to “long”. In such a case, since the number of digits is not defined, conversion is performed according to the conversion rule of the nearest number of digits.

【0012】さらに、上記上流設計情報入力手段の構成
の一例として、請求項3にかかる発明は、請求項1また
は請求項2のいずれかに記載のデータ変換装置におい
て、上記上流設計情報入力手段は、上記情報設計情報に
格納されているデータ型変換定義情報を読み出して格納
するデータ型変換定義情報格納手段を備える構成として
ある。
Further, as an example of the configuration of the upstream design information input means, the invention according to claim 3 is a data conversion device according to any one of claims 1 and 2, wherein the upstream design information input means is And a data type conversion definition information storage means for reading and storing the data type conversion definition information stored in the information design information.

【0013】上記のように構成した請求項3にかかる発
明において、上記上流設計情報は、データベース構造の
種別に応じたデータ型変換定義情報を有して、上記デー
タ変換制御手段は、同上流設計情報を読み出す際に、こ
のデータ型変換定義情報を取得して、上記データ型変換
定義情報格納手段に格納する。
[0013] In the invention according to claim 3 configured as described above, the upstream design information includes data type conversion definition information corresponding to a type of a database structure, and the data conversion control means includes the upstream design information. When the information is read, the data type conversion definition information is obtained and stored in the data type conversion definition information storage means.

【0014】さらに、上記変換規則情報の構成の一例と
して、請求項4にかかる発明は、請求項1〜請求項3の
いずれかに記載のデータ変換装置において、上記変換規
則情報は、それぞれが個別に変換規則を備える複数の変
換規則情報を有する構成としてある。
Further, as an example of the configuration of the conversion rule information, the invention according to claim 4 is the data conversion device according to any one of claims 1 to 3, wherein each of the conversion rule information is individually And a plurality of pieces of conversion rule information having conversion rules.

【0015】上記のように構成した請求項4にかかる発
明において、上記変換規則情報は、複数の上流設計情報
がそれぞれ異なるデータベース構造からなる場合に対応
するために、それぞれが異なる変換規則からなる複数の
変換規則情報を有する。
[0015] In the invention according to claim 4 configured as described above, the conversion rule information includes a plurality of conversion rules each having a different conversion rule, in order to cope with a case where the plurality of upstream design information items have different database structures. Has the conversion rule information.

【0016】さらに、上記データ変換制御手段の構成の
一例として、請求項5にかかる発明は、請求項1〜請求
項4のいずれかに記載のデータ変換装置において、上記
データ変換制御手段は、上記データ型変換定義情報格納
手段に格納されているデータ型変換定義情報を取得する
とともに、同定義内容を判別して、上記複数の変換規則
情報から適切な変換規則情報を読み出す構成としてあ
る。
Further, as an example of the configuration of the data conversion control means, the invention according to claim 5 is the data conversion apparatus according to any one of claims 1 to 4, wherein the data conversion control means The data type conversion definition information stored in the data type conversion definition information storage means is obtained, the contents of the definition are determined, and appropriate conversion rule information is read from the plurality of conversion rule information.

【0017】上記のように構成した請求項5にかかる発
明においては、上記データ変換制御手段は、上記データ
型変換定義情報格納手段に格納されているデータ型変換
定義情報を取得するとともに、同定義内容を判別して、
上記複数の変換規則情報から適切な変換規則情報を読み
出す。
In the invention according to claim 5 configured as described above, the data conversion control means acquires the data type conversion definition information stored in the data type conversion definition information storage means, and acquires the data type conversion definition information. Determine the content,
Appropriate conversion rule information is read from the plurality of conversion rule information.

【0018】上述したように、抽象的に表現されたデー
タベース型テーブルを所定の規則に従って、具体的な言
語のデータ型に変換する手法は、実体の装置に限定され
る必要はなく、その方法としても機能することは容易に
理解できる。
As described above, the method of converting an abstractly represented database type table into a data type of a specific language according to a predetermined rule need not be limited to an actual device. It is easy to understand that also works.

【0019】このため、請求項6にかかる発明は、デー
タ型が未定のデータベース型テーブルを所定の規則に従
って、具体的な言語のデータ型に変換するデータ変換装
置のデータ変換方法において、データ型が未定のデータ
ベース情報を備える上流設計情報を読み込み内部情報と
して保持する工程と、同保持された上流設計情報を、具
体的な言語に変換する規則からなる変換規則情報を読み
出して所定のフィールドとデータとを備えるデータ型変
換規則テーブルを作成する工程と、同テーブルの内容に
従って、上記上流設計情報を具体的な言語に変換する工
程と、上記上流設計情報が変換された下流設計情報を出
力する工程とを具備する構成としてある。
Therefore, the invention according to claim 6 is a data
In a data conversion method of a data conversion device for converting a database type table whose data type is undetermined into a data type of a specific language according to a predetermined rule, an upstream design information including database information whose data type is undetermined Reading the data as internal information, and reading conversion rule information including rules for converting the stored upstream design information into a specific language, and creating a data type conversion rule table including predetermined fields and data. And converting the upstream design information into a specific language in accordance with the contents of the table, and outputting the downstream design information obtained by converting the upstream design information.

【0020】[0020]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。図1は、本発明の一実施形態にか
かるデータ変換装置をブロック図により示している。同
図において、本データ変換装置は、上流設計情報読込部
100と、下流設計情報書込部110と、上流設計情報
120と、下流設計情報130と、データ型変換規則情
報140と、データ型変換部150と、データ型変換規
則テーブル160とから構成される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a data conversion device according to an embodiment of the present invention. In the figure, the data conversion apparatus includes an upstream design information reading unit 100, a downstream design information writing unit 110, an upstream design information 120, a downstream design information 130, a data type conversion rule information 140, a data type conversion And a data type conversion rule table 160.

【0021】また、同データ型変換部150は、図3に
示すように、変換規則情報読込部150aと、データ型
判定部150bと、データ桁数判定部150cとを備え
ている。また、同データ型変換規則テーブル160は、
図2に示すような、上流設計情報に記述されているデー
タ型を示す変換元データ型160aと、同変換元データ
型160aのデータ型に定義つけられているデータの桁
数を示す変換元データ型桁数160bと、同変換元デー
タ型160aと同変換元データ型桁数160bとにおい
て一対一によって定義つけられた変換先データ型160
cからなるフィールド構成を備える。
As shown in FIG. 3, the data type conversion unit 150 includes a conversion rule information reading unit 150a, a data type determination unit 150b, and a data digit number determination unit 150c. Further, the same data type conversion rule table 160
2, a conversion source data type 160a indicating a data type described in the upstream design information, and conversion source data indicating the number of digits of data defined in the data type of the conversion source data type 160a. The destination data type 160 defined in a one-to-one relationship with the number of digits 160b of the type and the number of digits 160b of the source data type 160a and the source data type 160b
c.

【0022】ここで、上記上流設計情報読込部100
は、上流設計機能により作成された上記上流設計情報1
20、例えば、データベース設計情報等を読み込み内部
情報として保持する。上記下流設計情報書込部110
は、上記データ型変換部150において上記上流設計情
報120に記述されているデータ型を適切なデータ型に
変換して内部情報として保持された上記下流設計情報1
30を出力する。
Here, the upstream design information reading section 100
Is the upstream design information 1 created by the upstream design function.
20, for example, database design information and the like are read and held as internal information. The downstream design information writing unit 110
The data type conversion unit 150 converts the data type described in the upstream design information 120 into an appropriate data type and holds the downstream design information 1 stored as internal information.
30 is output.

【0023】上記変換規則読込部150aは、上記デー
タ型変換規則情報140を読み込むとともに、上記デー
タ型変換規則テーブル160に上記変換元データ型16
0a、変換元データ桁数160bおよび変換先データ型
160cを格納する。上記データ型判定部150bは、
上記変換規則読込部150aにより作成されたデータ型
変換規則テーブル160の変換元データ型160aを参
照して変換対象となるデータのデータ型を検索して、該
当するレコードが参照されると、同レコードを抽出し
て、上記データ桁数判定部150cに出力する。
The conversion rule reading section 150a reads the data type conversion rule information 140 and stores the conversion source data type 16 in the data type conversion rule table 160.
0a, the conversion source data digit number 160b, and the conversion destination data type 160c. The data type determination unit 150b
The data type of the data to be converted is searched by referring to the conversion source data type 160a of the data type conversion rule table 160 created by the conversion rule reading unit 150a. Is extracted and output to the data digit number determination unit 150c.

【0024】上記データ桁数判定部150cは、上記デ
ータ型判定部150bにより抽出された上記データ型変
換規則テーブル160の上記レコードの変換データ型桁
数160bと変換対象のデータ桁数を比較することによ
り、変換対象となるデータ型のデータ桁数が上記抽出さ
れた変換元データ型の桁数に含まれているかを判定す
る。そして、含まれるときは、同抽出されたレコードの
変換先データ型160cによって変換させて、含まれな
いときは、再度上記データ型判定部150bを動作させ
る。これにより、上記上流設計情報120に記述されて
いる変換元データ型160aを適切な変換先データ型1
60cに変換する。
The data digit number determining section 150c compares the converted data type digit number 160b of the record of the data type conversion rule table 160 extracted by the data type determining section 150b with the data digit number to be converted. Thus, it is determined whether the number of data digits of the data type to be converted is included in the extracted number of digits of the conversion source data type. If it is included, it is converted by the conversion destination data type 160c of the extracted record, and if it is not included, the data type determination unit 150b is operated again. As a result, the conversion source data type 160a described in the upstream design information 120 is changed to an appropriate conversion destination data type 1
60c.

【0025】従って、読み込まれた上流設計情報を取得
するとともに、同上流設計情報に含まれるデータ型を識
別して、読み込んだデータ型変換規則に従って適切なデ
ータ型に変換することにより、同上流設計情報を下流設
計情報に変換するということから上記データ変換部15
0がデータ型変換手段を構成する。
Therefore, by acquiring the read upstream design information, identifying the data type included in the upstream design information, and converting the data type into an appropriate data type according to the read data type conversion rule, the upstream design information is obtained. Since the information is converted into downstream design information, the data conversion unit 15 is used.
0 constitutes data type conversion means.

【0026】本実施形態においては、上記データ型変換
部150は、上記データ変換規則情報140に格納され
た唯一の情報をデータ型変換規則テーブル160に展開
するとともに、同テーブル160のデータを基準にし
て、上記上流設計情報120を上記下流設計情報130
に変換する構成としているが、もちろん、この構成に限
られることはない。例えば、上記上流設計情報120が
複数あり、それぞれが異なるデータ型を有するときに、
それぞれを適切にデータ型変換するために図4に示すよ
うな、上記変換規則情報140を複数設定しておく構成
であってもよい。
In the present embodiment, the data type conversion section 150 expands only the information stored in the data conversion rule information 140 into a data type conversion rule table 160 and uses the data in the table 160 as a reference. The upstream design information 120 is converted to the downstream design information 130.
, But, of course, is not limited to this configuration. For example, when there are a plurality of the upstream design information 120, each having a different data type,
A configuration in which a plurality of the conversion rule information 140 are set as shown in FIG. 4 in order to appropriately convert each data type may be used.

【0027】このとき上流設計情報読込部100aは、
上述した複数の上流設計情報120から上流設計情報が
記述されているデータベースの種別を表すデータ型情報
を取得してデータ型情報格納部100a1に格納すると
ともに、同格納されたデータ型情報を変換情報決定部1
50dに出力する。そして、同変換情報決定部150d
は、同データ型情報に基づいて、上記変換規則読込部1
50aを制御することにより、複数あるデータ型変換規
則情報140から適切なデータ型変換規則情報140を
選択して、読み込ませるとともに、この選択されたデー
タ型変換規則140によって、上記上流設計情報120
を上記下流設計情報130に変換する。従って、上流設
計情報120に記述されているデータベースの種別を表
すことから上記データ型情報がデータ型変換定義情報を
構成するとともに、同データ型情報を取得して格納され
ることから上記データ型情報格納部100a1がデータ
型変換定義情報格納手段を構成する。
At this time, the upstream design information reading unit 100a
Data type information representing the type of the database in which the upstream design information is described is acquired from the plurality of upstream design information 120 and stored in the data type information storage unit 100a1, and the stored data type information is converted into conversion information. Decision unit 1
Output to 50d. Then, the conversion information determining unit 150d
Is the conversion rule reading unit 1 based on the data type information.
By controlling the 50a, the appropriate data type conversion rule information 140 is selected and read from the plurality of data type conversion rule information 140, and the upstream design information 120 is selected by the selected data type conversion rule 140.
Is converted into the downstream design information 130. Therefore, the data type information constitutes the data type conversion definition information by representing the type of the database described in the upstream design information 120, and the data type information is acquired and stored by acquiring the same data type information. The storage unit 100a1 forms a data type conversion definition information storage unit.

【0028】図5は、上記データ型変換部150が実行
するデータ型変換処理の処理内容をフローチャートによ
り示している。最初に、データ型変換規則テーブル16
0の先頭レコードを参照する比較対象レコードとして設
定する(ステップS200)。そして、この設定レコー
ドの変更元レコード160aと、上記上流設計情報12
0に記述された変更対象のデータ型と比較して(ステッ
プS205)、同一であるかを判別する(ステップS2
10)。
FIG. 5 is a flowchart showing the contents of the data type conversion processing executed by the data type conversion section 150. First, the data type conversion rule table 16
0 is set as the comparison target record that refers to the first record (step S200). The change source record 160a of the setting record and the upstream design information 12
0 (step S205) to determine whether they are the same (step S2).
10).

【0029】同一であると、上記設定レコードの変更元
データ型160aに該当するデータ型桁数160bと上
記変更対象のデータ桁数を比較して(ステップS21
5)、同一であるかを判別する(ステップS220)。
同一であれば、上記設定レコードの変換先データ型16
0cを変換対象のデータ型として抽出するとともに、下
流設計情報130とする(ステップS225)。また、
上記ステップS210およびS220において、同一で
ないと判別されると、上記データ型変換規則テーブル1
60の次のレコードを設定レコードにして(ステップS
230)、上記ステップS205〜ステップS225を
繰り返す。
If they are the same, the data type digit number 160b corresponding to the change source data type 160a of the setting record is compared with the data digit number to be changed (step S21).
5) It is determined whether they are the same (step S220).
If they are the same, the conversion destination data type 16
0c is extracted as the data type to be converted, and is used as the downstream design information 130 (step S225). Also,
If it is determined in steps S210 and S220 that they are not the same, the data type conversion rule table 1
The record next to 60 is set as a setting record (step S
230), and the above steps S205 to S225 are repeated.

【0030】本実施形態においては、上記ステップS2
10およびS220において、データ型およびデータ型
桁数を同一のみにより判定する処理構成としているが、
同一のデータ型または、同一のデータ型桁数が存在しな
いときには、このような処理構成では変換できないこと
が発生する。従って、図5において破線によって示され
た処理構成にしてもかまわない。この場合は、同一デー
タ型および同一データ型桁数が発見されずに、上記デー
タ型変換規則テーブル160の全てのレコードについて
検索が終了すると(ステップS235)、同一データ型
が存在して、同一データ型桁数が存在しない場合は、同
一データ型におけるデータ型桁数が変換元データ桁数以
上の最寄りのデータ型を抽出して変換する。また、同一
データ型も同一データ型桁数も存在しない場合は、デー
タ型桁数が変換元データ桁数以上の最寄りのデータ型を
抽出して変換する(ステップS240)。
In this embodiment, step S2
In 10 and S220, the processing configuration is such that the data type and the number of digits of the data type are determined only by the same.
If the same data type or the same data type digit number does not exist, conversion may not be possible with such a processing configuration. Therefore, the processing configuration shown by the broken line in FIG. 5 may be used. In this case, if the search is completed for all the records of the data type conversion rule table 160 without finding the same data type and the same data type digit number (step S235), the same data type exists and the same data If a type digits are not present, the data type number of digits is converted in the same data type based on data digits than
Extract and convert the nearest data type above . If neither the same data type nor the same data type digit exists , the nearest data type whose data type digit number is equal to or greater than the conversion source data digit is extracted and converted (step S240).

【0031】次に、上記のように構成した本実施形態の
動作について説明する。ソフトウェア開発において、使
用するプログラミング言語が未定である上流設計の段階
でデータベース等の設計を行い、プログラミング言語を
使用した下流設計へ移行するときに、同設計したデータ
ベース情報を本データ変換装置に投入するとともに、上
記データ変換部150のデータ変換処理を起動する。す
ると、同設計されたデータベース情報は順次、上記プロ
グラミング言語に変換されて格納される。これにより、
下流設計者は、上流設計者の作成したデータベース情報
について書き直しや修正をする必要がなくなる。
Next, the operation of this embodiment configured as described above will be described. In software development, design a database etc. at the stage of upstream design where the programming language to be used is undecided, and input the designed database information to this data conversion device when moving to downstream design using a programming language At the same time, the data conversion process of the data conversion unit 150 is started. Then, the designed database information is sequentially converted into the programming language and stored. This allows
The downstream designer does not need to rewrite or modify the database information created by the upstream designer.

【0032】このように、データベース情報等のデータ
型である上流設計情報120を具体的な言語のデータ型
である下流設計情報130に変換するときに、所定の変
換規則情報から変換元データ型・変更元データ型桁数に
対応する変更先データ型からなるにデータ型変更規則テ
ーブルに展開して、このテーブルを検索することにより
データ型だけでなくデータ型の桁数までも考慮してデー
タ型の変更を実行すること可能になるとともに、より詳
細なデータ型の変換を実現することが可能になる。
As described above, when the upstream design information 120, which is a data type such as database information, is converted into the downstream design information 130, which is a data type of a specific language, the conversion source data type and the conversion source data type are converted from predetermined conversion rule information. Expand the data type change rule table into the data type change rule table corresponding to the number of digits of the source data type, and search this table to take into account not only the data type but also the number of digits of the data type. Can be performed, and more detailed data type conversion can be realized.

【0033】[0033]

【発明の効果】以上説明したように本発明は、抽象的に
記述されたデータベース構造を適切なデータ型からなる
具体的な言語の構造体に変換することが可能なデータ変
換装置を提供することができる。また、請求項2にかか
る発明によれば、変換規則に存在しない桁数を有する変
換元のデータ型を適当なデータ型に変換することができ
る。さらに、請求項3にかかる発明によれば、上流設計
情報がどのようなデータベース構造によって記述されて
いるかを認識することができる。
As described above, the present invention provides a data conversion device capable of converting an abstractly described database structure into a structure of a specific language having an appropriate data type. Can be. Further, according to the second aspect of the present invention, it is possible to convert the data type of the conversion source having the number of digits that does not exist in the conversion rule into an appropriate data type. Furthermore, according to the invention of claim 3, it is possible to recognize what database structure describes the upstream design information.

【0034】さらに、請求項4にかかる発明によれば、
複数の変換規則情報を有するため、適切な変換規則を適
用することができる。さらに、請求項5にかかる発明に
よれば、複数の上流設計情報に対応することができる。
さらに、請求項6にかかる発明によれば、抽象的に記述
されたデータベース構造を適切なデータ型からなる具体
的な言語の構造体に変換することが可能なデータ変換装
置のデータ変換方法を提供することができる。
Further, according to the invention of claim 4,
Since there are a plurality of pieces of conversion rule information, an appropriate conversion rule can be applied. Furthermore, according to the invention of claim 5, it is possible to deal with a plurality of pieces of upstream design information.
Further, according to the invention of claim 6, there is provided a data conversion method of a data conversion device capable of converting an abstractly described database structure into a structure of a specific language having an appropriate data type. can do.

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

【図1】本実施形態の一実施形態にかかるデータ変換装
置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a data conversion device according to an embodiment of the present invention.

【図2】同データ変換装置のデータ変換規則テーブルの
構成を示すデータ構成図である。
FIG. 2 is a data configuration diagram showing a configuration of a data conversion rule table of the data conversion device.

【図3】データ変換部の詳細な構成を示すブロック図で
ある。
FIG. 3 is a block diagram illustrating a detailed configuration of a data conversion unit.

【図4】同データ変換部の他の構成を示すブロック図で
ある。
FIG. 4 is a block diagram showing another configuration of the data conversion unit.

【図5】同データ変換部が実行するデータ変換処理の処
理内容を示したフローチャートである。
FIG. 5 is a flowchart showing processing contents of a data conversion process executed by the data conversion unit.

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

100 上流設計情報読み込み図 110 下流設計情報書き込み図 120 上流設計情報 130 下流設計情報 140 データ型変換規則情報 150 データ型変換部 160 データ型変換規則テーブル 100 upstream design information reading diagram 110 downstream design information writing diagram 120 upstream design information 130 downstream design information 140 data type conversion rule information 150 data type conversion section 160 data type conversion rule table

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ型が未定のデータベース情報を備
える上流設計情報と、 同上流設計情報を読み込み内部情報として保持する上流
設計情報入力手段と、 同保持された上流設計情報を具体的な言語に変換する規
則を備える変換規則情報と、 同変換規則情報を読み出して所定のフィールドとデータ
とを備えるデータ型変換規則テーブルを作成するととも
に、同テーブルの内容に従って、上記上流設計情報を具
体的な言語に変換するデータ変換制御手段と、 同データ変換制御手段によって上記上流設計情報が変換
された下流設計情報を出力する下流設計情報出力手段と
を具備することを特徴とするデータ変換装置。
1. An upstream design information comprising database information whose data type is undecided, an upstream design information input means for reading the upstream design information and holding it as internal information, and converting the held upstream design information into a specific language. Conversion rule information having a rule to be converted, and reading the conversion rule information to create a data type conversion rule table having predetermined fields and data, and converting the upstream design information into a specific language according to the contents of the table. A data conversion device comprising: a data conversion control unit for converting the upstream design information into downstream design information by the data conversion control unit;
【請求項2】 上記請求項1に記載のデータ変換装置に
おいて、 上記データ変換制御手段は、上記データ型変換規則テー
ブルにおいて該当する桁数が存在しないときに、同変換
元データ型において最寄りの桁数を検索して同桁数に該
当する変換先データ型に変換することを特徴とするデー
タ変換装置。
2. The data conversion device according to claim 1, wherein the data conversion control means is configured to determine, when the corresponding number of digits does not exist in the data type conversion rule table, the nearest digit in the conversion source data type. A data conversion device for retrieving a number and converting it to a conversion destination data type corresponding to the same number of digits.
【請求項3】 上記請求項1または請求項2に記載のデ
ータ変換装置において、 上記上流設計情報入力手段は、上記上流設計情報に格納
されているデータ型変換定義情報を読み出して格納する
データ型変換定義情報格納手段を備えることを特徴とす
るデータ変換装置。
3. The data converter according to claim 1, wherein said upstream design information input means reads and stores data type conversion definition information stored in said upstream design information. A data conversion device comprising conversion definition information storage means.
【請求項4】 上記請求項1〜請求項3のいずれかに記
載のデータ変換装置において、 上記変換規則情報は、それぞれが個別に変換規則を備え
る複数の変換規則情報を有することを特徴とするデータ
変換装置。
4. The data conversion device according to claim 1, wherein the conversion rule information includes a plurality of conversion rule information each including a conversion rule individually. Data converter.
【請求項5】 上記請求項1〜請求項4のいずれかに記
載のデータ変換装置において、 上記データ変換制御手段は、上記データ型変換定義情報
格納手段に格納されているデータ型変換定義情報を取得
するとともに、同定義内容を判別して、上記複数の変換
規則情報から適切な変換規則情報を読み出すことを特徴
とするデータ変換装置。
5. The data conversion device according to claim 1, wherein the data conversion control unit stores the data type conversion definition information stored in the data type conversion definition information storage unit. A data conversion device that acquires, defines the same definition, and reads out appropriate conversion rule information from the plurality of conversion rule information.
【請求項6】 データ型が未定のデータベース型テーブ
ルを所定の規則に従って、具体的な言語のデータ型に変
換するデータ変換装置のデータ変換方法において、データ型が未定の データベース情報を備える上流設計情
報を読み込み内部情報として保持する工程と、 同保持された上流設計情報を、具体的な言語に変換する
規則からなる変換規則情報を読み出して所定のフィール
ドとデータとを備えるデータ型変換規則テーブルを作成
する工程と、 同テーブルの内容に従って、上記上流設計情報を具体的
な言語に変換する工程と、 上記上流設計情報が変換された下流設計情報を出力する
工程とを具備することを特徴とするデータ変換装置のデ
ータ変換方法。
6. A data conversion method for a data conversion apparatus for converting a database type table whose data type is undetermined into a data type of a specific language according to a predetermined rule, wherein upstream design information including database information whose data type is undetermined. Reading the stored upstream design information as internal information, and reading conversion rule information including rules for converting the stored upstream design information into a specific language, and creating a data type conversion rule table including predetermined fields and data. Data converting the upstream design information into a specific language in accordance with the contents of the table, and outputting the downstream design information obtained by converting the upstream design information. The data conversion method of the conversion device.
JP10150198A 1998-04-13 1998-04-13 Data conversion device and data conversion method of data conversion device Expired - Fee Related JP3339408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10150198A JP3339408B2 (en) 1998-04-13 1998-04-13 Data conversion device and data conversion method of data conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10150198A JP3339408B2 (en) 1998-04-13 1998-04-13 Data conversion device and data conversion method of data conversion device

Publications (2)

Publication Number Publication Date
JPH11296360A JPH11296360A (en) 1999-10-29
JP3339408B2 true JP3339408B2 (en) 2002-10-28

Family

ID=14302383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10150198A Expired - Fee Related JP3339408B2 (en) 1998-04-13 1998-04-13 Data conversion device and data conversion method of data conversion device

Country Status (1)

Country Link
JP (1) JP3339408B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1271342A1 (en) * 2001-04-30 2003-01-02 Sun Microsystems, Inc. Method for accessing database table columns
US20090112570A1 (en) * 2007-10-26 2009-04-30 Microsoft Corporation Declarative model interpretation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3186117B2 (en) * 1991-10-18 2001-07-11 株式会社日立製作所 Automatic program generation system using data-centric software components
JPH08263277A (en) * 1995-03-22 1996-10-11 Fujitsu Ltd Automatic generation device for data operation program

Also Published As

Publication number Publication date
JPH11296360A (en) 1999-10-29

Similar Documents

Publication Publication Date Title
US20040049768A1 (en) Method and program for compiling processing, and computer-readable medium recoding the program thereof
JPH11250112A (en) Method and device for synthesizing hardware and recording medium recorded with hardware synthesizing program
US5274793A (en) Automatic logic generation method for pipeline processor
JP3339408B2 (en) Data conversion device and data conversion method of data conversion device
KR100412964B1 (en) Method and apparatus for preparing a logic simulation model and recording medium for storing the same
JPH09288580A (en) Device and method for optimizing source program
JP2590698B2 (en) Character string data retrieval device
JPH06274332A (en) Registration/retrieval method for program parts
JP2932987B2 (en) Automatic test equipment for computer systems
JPH10133866A (en) Method for shift conversion processing
JPH09251378A (en) Method and device for updating class library
JPH03282935A (en) Compile processor and compile processing system
JPH06119156A (en) Automatic program generating method
JP3087699B2 (en) Standard information simple input system and standard information simple input method
JPH0580998A (en) Translation processing system
JPH08272650A (en) Retest path selection system
JPH09204450A (en) Logic generating method for electronic circuit
JPH04353933A (en) Program execution control language conversation device
JPH03248230A (en) Parameter analyzing system
JPH07129408A (en) Executing system for language processing program
JPH06251103A (en) High order synthesizing device
JP2001331312A (en) System for acquiring related information among plural programs
JPH06259495A (en) Logic simulation system
JPH09319567A (en) Method and device for synthesizing programs
JPH05265725A (en) Source program generation system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees