JP3245047B2 - Version control apparatus and method - Google Patents

Version control apparatus and method

Info

Publication number
JP3245047B2
JP3245047B2 JP07503096A JP7503096A JP3245047B2 JP 3245047 B2 JP3245047 B2 JP 3245047B2 JP 07503096 A JP07503096 A JP 07503096A JP 7503096 A JP7503096 A JP 7503096A JP 3245047 B2 JP3245047 B2 JP 3245047B2
Authority
JP
Japan
Prior art keywords
record
generation
file
search
date
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
JP07503096A
Other languages
Japanese (ja)
Other versions
JPH09265419A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP07503096A priority Critical patent/JP3245047B2/en
Publication of JPH09265419A publication Critical patent/JPH09265419A/en
Application granted granted Critical
Publication of JP3245047B2 publication Critical patent/JP3245047B2/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 an apparatus and method for version management on a computer, and more particularly, to batch management of records of each generation (version) and management of update history.

【0002】[0002]

【従来の技術】計算機上で管理される部品リスト、住所
録などを記述したファイルは、レコード(データ)の部
分的な修正、追加、削除などを経て、段階的にその内容
が更新される。
2. Description of the Related Art A file describing a parts list, an address book, and the like managed on a computer is updated stepwise through partial correction, addition, and deletion of records (data).

【0003】その例が図20に示されている。ここで、
図20に示す部品リスト(上段)はある製品Aについて
の各部位と部品名とを対応付けたものであり、部品リス
トファイル(下段)はその部品リストを表した記憶装置
内のファイルである。その部品リストファイルにおい
て、1部品は1レコード(1データ)に相当している。
An example is shown in FIG. here,
The parts list (upper part) shown in FIG. 20 associates each part of a certain product A with a part name, and the parts list file (lower part) is a file in the storage device that represents the part list. In the parts list file, one part corresponds to one record (one data).

【0004】図20の(A),(B),(C)に示すよ
うに、ある製品Aが1月1日、2月1日、3月1日の順
でバージョンアップされ、その部品リストが順次修正さ
れ更新されるような場合、その結果として、世代(バー
ジョン)が異なる複数の部品リストファイル2,4,6
が作成される。ここで、例えば前世代の部品リストファ
イルを直接的に修正することにより次世代の部品リスト
ファイルを作成することも可能であるが、その場合には
更新後に前世代のファイル内容を把握できないので、一
般的には、前世代の部品リストファイルをいったんコピ
ーしてそれを修正することにより、次世代の部品リスト
ファイルが別途作成される。
As shown in FIGS. 20A, 20B, and 20C, a product A is upgraded in the order of January 1, February 1, and March 1, and a parts list thereof is provided. Are sequentially corrected and updated, as a result, a plurality of component list files 2, 4, 6 having different generations (versions) are obtained.
Is created. Here, for example, it is also possible to create a next-generation parts list file by directly modifying the previous-generation parts list file, but in this case, since the file contents of the previous generation cannot be grasped after updating, In general, a part list file of the next generation is separately created by once copying a part list file of the previous generation and modifying it.

【0005】例えば、特開平2−93837号公報に
は、上記同様のファイル管理方式が示され、各世代毎の
ファイルが別々に作成されかつ保存されている。このよ
うな方式では、一般に、現世代のファイルはそれが現に
利用されている計算機システムの記憶装置(例えば磁気
ディスク装置)に保存され、それ以外のファイルは外部
記憶装置あるいは補助記憶装置(例えば、磁気テープ装
置、光ディスク装置、フロッピーディスク装置)に保存
される。これは記憶装置の容量及び使用頻度を考慮した
ものである。
For example, Japanese Patent Application Laid-Open No. 2-93837 discloses a file management system similar to the above, in which files for each generation are separately created and stored. In such a method, generally, the current generation file is stored in a storage device (for example, a magnetic disk device) of the computer system in which the file is currently used, and the other files are stored in an external storage device or an auxiliary storage device (for example, Magnetic tape device, optical disk device, floppy disk device). This takes into account the capacity and frequency of use of the storage device.

【0006】そして、上記従来装置において、前世代の
ファイルが必要となった場合、外部記憶装置などから当
該世代のファイルが稼働システム上の記憶装置にロード
され、このように一時的・暫定的にファイルをシステム
上に呼び戻すことにより、利用するファイルを切り換え
ている。
In the conventional device, when a file of the previous generation is required, the file of the previous generation is loaded from an external storage device or the like to a storage device on the operating system, and thus temporarily and temporarily. The file to be used is switched by recalling the file to the system.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来の手法では、本来的に各世代間では同一の内容を有す
る多くのレコードが存在しているにもかかわらず、それ
らのレコードは各世代間で重複して保存・管理されてい
た。殊に、前世代のファイルコピー後にほんの僅かの修
正を加えただけでのファイルでさえ、別世代としてまる
ごと別途保存される場合も多かった。それゆえ、有限な
記憶領域を効率的に利用することができず、記憶領域が
浪費されるという問題があった。また、複数のファイル
間にまたがったファイル管理や外部記憶装置からのファ
イル呼び込み処理などを行う必要があり、ファイル管理
を簡素化することが困難であった。さらに、ファイル修
正量にかかわらず常に新世代のファイル全体の保存を行
う必要があり、ファイル保存処理が非能率化していた。
However, according to the above-mentioned conventional method, even though there are many records having the same contents between the generations, those records are not stored between the generations. It was duplicated and managed. In particular, even files that were modified with only a few modifications after the previous generation file copy were often saved separately as separate generations. Therefore, there is a problem that the finite storage area cannot be used efficiently and the storage area is wasted. In addition, it is necessary to perform file management over a plurality of files, file recall processing from an external storage device, and the like, and it has been difficult to simplify file management. Furthermore, it is necessary to always save the entire new generation of files regardless of the amount of file modification, which makes file saving processing inefficient.

【0008】本発明は、上記従来の課題に鑑みなされた
ものであり、その目的は、各世代間で共通するレコード
の重複保存を排除でき、これによって記憶装置の記憶容
量を有効利用でき、また稼働させるファイルの切り換え
などを要することなく世代管理を能率化できるバージョ
ン管理装置及び方法を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems, and an object of the present invention is to eliminate the duplication of records common to each generation, thereby effectively utilizing the storage capacity of a storage device. It is an object of the present invention to provide a version management apparatus and method capable of streamlining generation management without switching files to be operated.

【0009】また、本発明の目的は、世代という時間的
な流れに合致した属性情報を利用して、各レコードの世
代管理を行うことができるバージョン管理装置及び方法
を提供することにある。
It is another object of the present invention to provide a version management apparatus and method capable of managing the generation of each record using attribute information that matches the temporal flow of generation.

【0010】また、本発明の目的は、レコードの修正・
削除などを容易に行うことができ、またそのようなレコ
ード内容の変更によっても各世代のレコードを確実に検
索できるバージョン管理装置及び方法を提供することに
ある。
Another object of the present invention is to correct a record.
It is an object of the present invention to provide a version management apparatus and a method which can easily perform deletion and the like, and can surely retrieve records of each generation even by such a change in record contents.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、段階的に更新された各世代のレコード群
を管理するバージョン管理装置において、前記各レコー
ドの格納に先立って、各レコード毎にそれが最初に所属
した世代のみを示す日時情報としての属性情報を付与す
る属性付与手段と、前記属性情報が付与された各レコー
ドが検索キー項目に対応付けられつつ格納される世代統
合ファイルと、新世代のレコード群が作成された場合
に、そのレコード群の中で修正された修正レコードのみ
を前記統合ファイルへ追加格納する追加手段と、不要と
なったレコードと同一の内容を有しかつ新しい属性情報
及び削除フラグが付与された削除マスクレコードを前記
世代統合ファイルに追加格納する削除手段と、前記世代
統合ファイルから、前記属性情報に基づいて、特定世代
のレコードを検索するために、各検索キー項目毎に、検
索日時から戻って最も新しい属性情報が付与されたレコ
ードを検索する手段であって、前記削除マスクレコード
が検索された場合にその検索キー項目にはレコードが存
在しないものとして検索処理を行うレコード検索手段
と、を備え、前記世代統合ファイルには世代間で共通の
レコードが共有されることを特徴とする。
In order to achieve the above object, according to the present invention, there is provided a version control apparatus for managing a record group of each generation updated step by step. An attribute assigning unit for assigning attribute information as date and time information indicating only a generation to which the record first belongs, and a generation integration in which each record to which the attribute information is assigned is stored in association with a search key item A file and, when a new generation record group is created, additional means for additionally storing only the corrected records corrected in the record group in the integrated file ;
New attribute information that has the same content as the record
And a deletion mask record with a deletion flag
A deletion unit for additionally storing the integrated generation file; and a search for a specific generation record from the integrated generation file based on the attribute information.
The record to which the latest attribute information was added after returning from the search date and time
Means for retrieving the delete mask record.
Is found, no record exists in the search key field.
Record search means for performing a search process as a non-existent record, wherein a common record is shared between generations in the generation integrated file.

【0012】上記構成によれば、各レコードの世代を管
理するため、各レコードには属性情報が設定され、その
属性情報に基づいて世代統合ファイル上において特定世
代の検索などが行われる。属性情報は、最初に所属した
世代を示す情報であり、その属性情報としては時間的な
前後を意味する情報とするのが望ましい。ここで、世代
統合ファイル内には、各世代に属するレコードが保存・
登録されるが、各世代間で共通のレコードは当該複数の
世代で共有される。すなわち、世代統合ファイルには、
それまで格納されていなかったレコードのみが追加格納
され、同じレコードの重複登録は排除される。よって、
本発明によれば記憶装置の記憶容量を効率的に利用で
き、また本発明によれば、基本的に単一のファイルのみ
を利用して各世代のレコードを一括管理できるので、外
部記憶装置からのファイルの読み込みなどは不要とな
る。すなわち、世代管理を簡素化・迅速化できる。
According to the above configuration, in order to manage the generation of each record, attribute information is set for each record, and a search for a specific generation is performed on the generation integrated file based on the attribute information. The attribute information is information indicating the generation to which the user first belongs, and it is desirable that the attribute information be information meaning temporally before and after. Here, records belonging to each generation are stored and stored in the generation integrated file.
Although registered, a record common to each generation is shared by the plurality of generations. In other words, the generation integrated file contains
Only records that have not been stored until then are additionally stored, and duplicate registration of the same record is eliminated. Therefore,
According to the present invention, the storage capacity of the storage device can be efficiently used, and according to the present invention, records of each generation can be collectively managed using basically only a single file. It becomes unnecessary to read the file. That is, generation management can be simplified and speeded up.

【0013】本発明の好適な態様では、前記属性情報は
望ましくは日時情報である。この日時情報によれば各世
代を時期的な面から管理でき、日時指定により検索など
が可能となる。つまり、世代自体は不明であるがある時
期の製品仕様を知りたい場合などに便利である。
In a preferred aspect of the present invention, the attribute information is preferably date and time information. According to the date and time information, each generation can be managed in terms of time, and retrieval can be performed by specifying the date and time. In other words, this is convenient when it is desired to know the product specifications at a certain time when the generation itself is unknown.

【0014】本発明の好適な態様では、前記世代統合フ
ァイルにおいて各レコードは検索キー項目毎に管理さ
れ、前記各検索キー項目には1又は複数のレコードが対
応付けられる。すなわち、レコード変更がない検索キー
項目には初期レコードのみが対応付けられ、レコード変
更がある検索キー項目には初期レコードに加えて変更回
数に応じた個数の変更レコードが対応付けられる。各レ
コードは日時情報などの属性情報で管理され、その属性
情報の時間的前後から各世代で有効なレコードが特定さ
れる。
In a preferred aspect of the present invention, each record in the generation integrated file is managed for each search key item, and one or a plurality of records are associated with each search key item. That is, only the initial record is associated with the search key item having no record change, and the number of changed records according to the number of changes is associated with the search key item having the record change in addition to the initial record. Each record is managed by attribute information such as date and time information, and a record valid for each generation is specified before and after the attribute information.

【0015】本発明の好適な態様では、前記レコード検
索手段は、各検索キー項目毎に、検索日時から戻って最
も新しい日時情報が付与されたレコードを検索すること
を特徴とする。すなわち、各検索キー項目毎に、検索日
時以前でそれに最も近いレコードを検索すれば、検索日
時以前でそれに最も近い世代に属するレコードを特定で
きる。このように本発明によれば、世代番号自体を指定
することなく、およその情報を与えるだけで、所望世代
のレコードを検索できるという利点がある。よって、フ
ァイル内容の知識が乏しい者でも簡単に検索作業を行う
ことができる。本発明の好適な態様では、不要となった
レコードの削除処理を行う削除手段を有する。ここで、
前記削除手段は、望ましくは、不要となったレコードと
同一の内容を有しかつ新しい属性情報及び削除フラグが
付与された削除マスクレコードを前記世代統一ファイル
に追加格納する。
In a preferred aspect of the present invention, the record search means searches for a record to which the latest date and time information is added after returning from the search date and time for each search key item. That is, for each search key item, if the record closest to the search date and time is searched, the record belonging to the closest generation before the search date and time can be specified. As described above, according to the present invention, there is an advantage that a record of a desired generation can be searched only by giving approximate information without designating the generation number itself. Therefore, even those with little knowledge of the file contents can easily perform the search operation. In a preferred aspect of the present invention, there is provided a deletion unit for deleting unnecessary records. here,
The deletion means desirably additionally stores a deletion mask record having the same contents as an unnecessary record and having new attribute information and a deletion flag added to the unified generation file.

【0016】上記構成によれば、削除マスクレコードが
世代統一ファイル内に格納されると、その削除マスクレ
コードに対して設定した属性情報(日時情報)を基準と
して、それ以後の世代については当該レコードが検索対
象から除外される。よって、実際にレコードの削除を行
うことなく、それと同様の結果を得ることができ、また
削除を世代毎に管理できるという利点がある。
According to the above configuration, when the deletion mask record is stored in the unified generation file, the generations after that are determined based on the attribute information (date and time information) set for the deletion mask record. Are excluded from the search. Therefore, there is an advantage that a similar result can be obtained without actually deleting records, and deletion can be managed for each generation.

【0017】すなわち、本発明の好適な態様では、前記
検索手段は、前記削除マスクレコードが検索された場合
にその検索キー項目にはレコードが存在しないものとし
て検索処理を行う。
That is, in a preferred aspect of the present invention, when the deletion mask record is searched, the search means performs a search process assuming that no record exists in the search key item.

【0018】本発明の好適な態様では、さらに、前記世
代統合ファイルの内容をコピーして作業ファイルを生成
する作業ファイル生成手段と、前記作業ファイルの内容
を基礎として新世代のレコード群を作成するレコード修
正手段と、を有する。
In a preferred aspect of the present invention, further, a work file generating means for generating a work file by copying the contents of the generation integrated file, and creating a new generation record group based on the contents of the work file. Record correction means.

【0019】上記構成によれば、全世代のレコードが反
映されたファイルを基礎としながらファイルの更新作業
を行うことができ、更新後においては上記追加手段によ
って変更された修正レコードのみが自動的に抽出され、
もとの世代統合ファイルに追加登録される。
According to the above configuration, the file can be updated based on the file on which the records of all the generations are reflected. After the update, only the modified record changed by the adding means is automatically updated. Extracted,
It is additionally registered in the original generation integrated file.

【0020】また、本発明の好適な態様では、前記世代
統合ファイルを参照しつつ逐次的に修正レコードを作成
する対話型修正手段を有し、前記追加手段は前記修正レ
コードを前記世代統合ファイルに追加格納する。
In a preferred aspect of the present invention, there is provided interactive modification means for sequentially creating modification records with reference to the generation integrated file, and the adding means stores the correction records in the generation integrated file. Additional storage.

【0021】すなわち、各検索キー項目単位でレコード
の修正を行うものであり、ファイルコピーなどの時間を
削除でき、修正箇所のみの効率的なデータ処理が可能と
なる。
That is, the record is corrected for each search key item, so that the time required for file copy or the like can be deleted, and efficient data processing of only the corrected portion can be performed.

【0022】また、本発明の好適な態様では、前記日時
情報は各レコードを有効とする日時を示す情報である。
日時情報は、更新日時でもよいが、何らかの過去又は将
来の日時を指定することによって、日時検索と相俟って
多様な世代管理が可能となる。例えば、日時情報を製品
出荷時に合わせれば、実際に流通している製品の仕様と
世代とを合わせることができる。
In a preferred aspect of the present invention, the date and time information is information indicating a date and time when each record is valid.
The date and time information may be an update date and time, but by specifying some past or future date and time, various generation managements can be performed in conjunction with the date and time search. For example, if the date and time information is adjusted at the time of product shipment, it is possible to match the specification and generation of the actually distributed product.

【0023】さらに、本発明に係る方法は、段階的に更
新された各世代のレコード群を管理するバージョン管理
方法において、前記各レコードの格納に先立って、各レ
コード毎にそれが最初に所属した世代のみを示す日時情
報としての属性情報を付与する工程と、前記属性情報が
付与された各レコードを検索キー項目に対応付けつつ世
代統合ファイルに格納する工程と、新世代のレコード群
が作成された場合に、そのレコード群の中で修正された
修正レコードのみを前記統合ファイルへ追加格納する工
程と、不要となったレコードと同一の内容を有しかつ新
しい属性情報及び削除フラグが付与された削除マスクレ
コードを前記世代統合ファイルに追加格納する工程と、
前記世代統合ファイルから、前記属性情報に基づいて、
特定世代のレコードを検索するために、各検索キー項目
毎に、検索日時から戻って最も新しい属性情報が付与さ
れたレコードを検索する工程であって、前記削除マスク
レコードが検索された場合にその検索キー項目にはレコ
ードが存在しないものとして検索処理を行う工程と、を
備え、前記世代統合ファイルには世代間で共通のレコー
ドが共有されることを特徴とする。この構成によれば、
上述のように、重複したデータ登録を回避でき、また世
代管理を簡易化できる。
Further, in the method according to the present invention , in a version management method for managing a record group of each generation updated stepwise, each record may be stored before storing each record.
Date and time information indicating only the generation to which it belongs first for each code
Providing attribute information as information,
While assigning each assigned record to a search key item,
Process of storing in a new integrated file and a new generation of records
Was created and modified in that set of records
A process for additionally storing only correction records in the integrated file
The new record has the same content as the record that is no longer needed.
Deletion mask with new attribute information and deletion flag
Additionally storing a code in the generation integrated file;
From the generation integrated file, based on the attribute information,
Each search key item to search for records of a specific generation
Each time, the newest attribute information is returned from the search date and time.
Searching for a deleted record, wherein the deletion mask
When a record is found, the record is
And performing a search process assuming that the code does not exist.
The generation integrated file contains a record that is common to all generations.
Is shared . According to this configuration,
As described above, duplicate data registration can be avoided, and generation management can be simplified.

【0024】[0024]

【発明の実施の形態】以下、本発明の好適な実施形態を
図面に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.

【0025】図1には、本発明に係るバージョン管理装
置の全体構成が概念図として示されている。まず、この
図1を用いて装置の構成について説明し、その後に図2
〜図19を用いて各構成の動作について説明することに
する。
FIG. 1 is a conceptual diagram showing the overall configuration of a version control device according to the present invention. First, the configuration of the apparatus will be described with reference to FIG.
The operation of each configuration will be described with reference to FIGS.

【0026】(A)装置構成の説明 図1において、中央に示されている世代統合ファイル1
0は、後述する図2や図3などに示されるように、各検
索キー項目毎に日時情報とデータ実体とを対応付けてな
るものである。ファイル作成部12は、世代統合ファイ
ル10に最初に登録する初期世代(第1世代)の新規フ
ァイル14を作成するものである。このファイル作成部
12は、入力装置及びデータベース作成ソフトウェアな
どで構成される。作成された新規ファイル14は、図1
の100で示すように世代統合ファイル10に登録され
るが、それに先立って、索キー項目毎に日時情報が付与
される。この日時情報は、各レコードが属する世代を管
理するための属性情報として機能するものであり、日時
情報としては、具体的には当該ファイルが作成された日
時や当該ファイルが有効となる日時など、適宜に選択さ
れる。
(A) Description of Apparatus Configuration In FIG. 1, the generation integrated file 1 shown in the center is shown.
0, as shown in FIG. 2 and FIG. 3 described below, associates date and time information with a data entity for each search key item. The file creation unit 12 creates a new file 14 of an initial generation (first generation) to be first registered in the generation integrated file 10. The file creator 12 includes an input device, database creation software, and the like. The created new file 14 is shown in FIG.
Is registered in the generation integrated file 10 as shown by the numeral 100. Prior to this, date and time information is added to each search key item. The date and time information functions as attribute information for managing the generation to which each record belongs. As the date and time information, specifically, the date and time when the file is created, the date and time when the file is valid, etc. It is appropriately selected.

【0027】世代統合ファイル10は、各世代に亘って
単一のファイルを構成しており、各世代間で共通のレコ
ードは当該世代間において共有される。これについては
後に詳述する。
The generation integrated file 10 constitutes a single file for each generation, and records common to each generation are shared between the generations. This will be described in detail later.

【0028】ファイルの更新を行う場合、すなわち次世
代を作成する場合には、まず作業ファイル24を作成す
る手段(図示せず)によって、図1の102で示される
ように世代統合ファイル10がコピーされ、いわゆるト
ランザクションファイルとして作業ファイル24が形成
される。この作業ファイル24に対し、修正部26によ
って修正が必要なレコードの内容が変更される。具体的
には、変更しようとする検索キー項目が特定され、その
検索キー項目について対応付けられたデータ実体の内容
が変更される。修正部26は、例えば入力部及びデータ
ベースの内容を変更するソフトウェアなどで構成され
る。
When the file is updated, that is, when the next generation is created, first, the generation integrated file 10 is copied as indicated by 102 in FIG. 1 by means (not shown) for creating the work file 24. Then, the work file 24 is formed as a so-called transaction file. The contents of the record that needs to be modified by the modification unit 26 are changed in the work file 24. Specifically, the search key item to be changed is specified, and the content of the data entity associated with the search key item is changed. The correction unit 26 includes, for example, an input unit and software that changes the contents of the database.

【0029】このように内容修正を経た作業ファイル2
4は変更レコード抽出部28に送られ、その変更レコー
ド抽出部28は内容修正されたレコードを特定し、その
レコードのみを抽出する。すなわち、本実施形態では、
世代間における差分すなわち変更されたレコードのみを
世代統合ファイル10に登録するため、修正された変更
レコードの抽出処理がなされている。なお、修正部26
による作業ファイル24に対する修正作業において、修
正されたレコードの日時情報を自動的に空欄などする
処理を行うことが望ましい。このような日時情報の空欄
化によれば、変更レコード抽出部28において、変更さ
れたレコードを容易に特定でき、変更修正がなされた作
業ファイル24と世代統合ファイル10との内容の比較
を行う煩雑さが回避される。
The work file 2 which has been modified as described above
4 is sent to the changed record extracting unit 28, and the changed record extracting unit 28 specifies the record whose contents have been corrected, and extracts only that record. That is, in the present embodiment,
In order to register only the difference between the generations, that is, the changed records, in the generation integrated file 10, the process of extracting the corrected changed records is performed. The correction unit 26
It is desirable to perform a process of automatically making the date and time information of the corrected record blank or the like in the correction work on the work file 24 by the user. According to such blanking of the date and time information, the changed record can be easily specified in the changed record extracting unit 28, and the complicated operation of comparing the contents of the modified work file 24 and the generation integrated file 10 is complicated. Is avoided.

【0030】変更レコード抽出部28にて抽出された次
世代のみに存在するレコードが、図1に104で示され
るように、世代統合ファイル10に追加登録されるが、
それに先立って、日時設定部30によって、変更された
レコードについて日時情報が付加される。この日時設定
部30は上記の日時設定部16と同様の機能を有するも
のであるが、設定される日時情報は最初に設定した日時
情報とは異なるもので、基本的には最初に設定された日
時情報よりも後の日時情報が設定される。このような設
定によって、各レコード単位でそれが最初に有効となっ
た世代を把握することが可能となる。なお、日時設定部
16及び日時設定部30は例えばユーザー入力された日
時を各レコードに付加するプログラムなどで構成され
る。
Records existing only in the next generation extracted by the change record extraction unit 28 are additionally registered in the generation integrated file 10 as shown by 104 in FIG.
Prior to this, date and time information is added to the changed record by the date and time setting unit 30. The date and time setting unit 30 has the same function as the above-mentioned date and time setting unit 16, but the date and time information to be set is different from the date and time information initially set, and basically the date and time information is set first. Date and time information after the date and time information is set. With such a setting, it is possible to know the generation in which each record becomes valid first for each record. The date and time setting unit 16 and the date and time setting unit 30 are configured by, for example, a program for adding the date and time input by the user to each record.

【0031】以上のようなファイル修正作業を必要に応
じて繰返し行うことによって、世代統合ファイル10内
には第1世代のレコードとその後の各世代のレコードと
が統合格納され、各世代に亘って各レコードを一括管理
することが可能となる。
By repeatedly performing the above-described file correction work as necessary, the first generation record and the subsequent generation records are integrated and stored in the generation integrated file 10, and the generation generation file 10 stores the first generation record and the subsequent generation records. Each record can be managed collectively.

【0032】本実施形態においては、図1の第1修正追
加部20で示されるように、世代統合ファイル10を一
旦作業ファイル24としてコピーした後に修正を行う方
式と、図1の第2修正追加部22で示されるように世代
統合ファイル10から必要な検索とキー項目のデータ実
体を逐次的に読み取って修正を行う方式と、の2つの方
式を有する。第2修正追加部22についてさらに説明す
ると、対話型修正部32によって、指定された検索キー
項目のデータ実体が図1の106で示されるように読み
取られ、それが対話型修正部32で修正され、追加判定
部34を介して新たなレコードが図1の108で示され
るように世代統合ファイル10に登録される。追加判定
部34では、追加するレコードが適正なものか否か、す
なわち検索とキー項目と日時情報とで定まるレコードの
識別コードがユニークなものであるか、換言すれば既に
世代統合ファイル10内に存在しているものであるか否
かを判定し、それがユニークであれば追加が許可され
る。なお、レコードの修正追加については後に詳述す
る。
In the present embodiment, as shown by the first modification adding unit 20 in FIG. 1, a method of modifying the generation integrated file 10 once by copying it as the work file 24, and a method of modifying the second modification in FIG. As shown by the section 22, there are two methods, a method of performing a necessary search from the generation integrated file 10 and a method of sequentially reading the data entity of the key item and correcting it. The second modification adding unit 22 will be further described. The data entity of the designated search key item is read by the interactive modification unit 32 as shown by 106 in FIG. The new record is registered in the generation integrated file 10 as indicated by 108 in FIG. The addition determining unit 34 determines whether the record to be added is appropriate, that is, whether the identification code of the record determined by the search, the key item, and the date and time information is unique. It is determined whether or not it exists, and if it is unique, the addition is permitted. The modification and addition of a record will be described later in detail.

【0033】削除部36は、世代統合ファイル10内に
おいて、ある世代から不要となるレコードについて削除
処理を行うものであり、図1に示す実施形態では作業フ
ァイル24内の不要レコードを対象として削除フラグが
付与されている。削除フラグが付与されたレコードは、
変更レコード抽出部28において抽出され、図1の10
4で示されるように世代統合ファイル10に追加登録さ
れる。勿論、その場合削除フラグが付加されたレコード
には日時設定部30によって新たな日時情報が設定され
る。これについても後に詳述する。
The deletion unit 36 deletes unnecessary records from a certain generation in the integrated generation file 10. In the embodiment shown in FIG. 1, a deletion flag is set for unnecessary records in the work file 24. Is given. Records flagged for deletion
The change record extraction unit 28 extracts the
As shown by reference numeral 4, it is additionally registered in the generation integrated file 10. Of course, in this case, new date and time information is set by the date and time setting unit 30 for the record to which the deletion flag has been added. This will be described later in detail.

【0034】なお、図1に示す実施形態では作業ファイ
ル24が削除部36の処理対象として示されているが、
勿論、世代統合ファイル10に対して逐次的にレコード
を指定し、また削除フラグが設定されたレコードを新た
に追加することによってその削除処理を行ってもよい。
In the embodiment shown in FIG. 1, the work file 24 is shown as a processing target of the deletion unit 36.
Of course, the deletion process may be performed by sequentially specifying records in the generation integrated file 10 and adding a new record with a deletion flag set.

【0035】検索部40は、複数世代に亘ってレコード
が統合管理された世代統合ファイル10を対象として、
検索日時指定部42によってユーザ指定された検索日時
を基準として、その検索日時によって示される世代のレ
コードを検索キー項目単位で検索するものである。すな
わち世代統合ファイル10において、各レコードは検索
キー項目毎に管理されており、各検索キー項目内におい
て検索日時を最大としてそれにもっとも近い日時情報を
有するレコードが検索される。検索部40の検索結果
は、指定された世代のファイル44として出力される。
The search unit 40 targets the generation integrated file 10 in which records are integrated and managed over a plurality of generations.
With reference to the search date and time specified by the user by the search date and time specification unit 42, records of the generation indicated by the search date and time are searched for in search key item units. That is, in the generation integrated file 10, each record is managed for each search key item, and the record having the closest date and time information is searched for in each search key item with the search date and time being maximum. The search result of the search unit 40 is output as the file 44 of the specified generation.

【0036】なお、対話型修正部32は、ディスプレ
ー、入力装置及び対話型修正処理を実行するプログラム
などで構成され、追加判定部34及び検索部40は基本
的にそれを実行するプログラムなどで構成される。さら
に、検索日時指定部42は例えばキーボードなどの入力
装置で構成される。
The interactive correction unit 32 is composed of a display, an input device, a program for executing an interactive correction process, and the like, and the addition determining unit 34 and the search unit 40 are basically composed of a program for executing the same. Is done. Further, the search date / time specifying unit 42 is configured by an input device such as a keyboard.

【0037】以上のように、図1に示す実施形態は、通
常の計算機において成立可能であり、また段階的にファ
イル内容が更新されるようなデータベース管理において
適用可能である。
As described above, the embodiment shown in FIG. 1 is applicable to a normal computer, and is applicable to database management in which file contents are updated step by step.

【0038】(B)動作の説明 次に、図2〜図19を用いて図1に示した各構成の具体
的な動作について説明する。
(B) Description of Operation Next, the specific operation of each configuration shown in FIG. 1 will be described with reference to FIGS.

【0039】図2〜図18に示す例は、自動車の仕様管
理において本発明に係るバージョン管理方法を適用した
場合のものである。周知のように、自動車の仕様はユー
ザーの多様化の要請を背景として、極めて変化が多く、
そのような場合に特に本発明に係るバージョン管理が有
効である。
The examples shown in FIGS. 2 to 18 are for the case where the version management method according to the present invention is applied to the management of vehicle specifications. As we all know, the specifications of automobiles vary a lot due to the demand for diversification of users,
In such a case, the version management according to the present invention is particularly effective.

【0040】(b1)新規ファイル作成 まず、図1に示したファイル作成部12によって第1世
代を構成する新規ファイル14が作成される。その作成
された新規ファイルが図2に示されている。このファイ
ルは上記のように仕様管理のためのファイルであり、自
動車の仕様に相当する検索キー項目毎に、日時情報(属
性情報)としての使用開始日時及び実際の使用内容を示
すデータ実体が対応付けられる。例えば、検索キー項目
として搭載エンジン、総排気量、ボディ形状、定員、…
などが定められ、データ実体としてはそれに対応してS
OHC4気筒、1809CC、モノコック4ドア、5
人、…のようにそれぞれ対応付けられている。ここで、
検索キー項目はユーザーによって任意に指定でき、その
指定された検索キー項目毎にユーザーによってデータ実
体が入力される。
(B1) Creation of New File First, a new file 14 constituting the first generation is created by the file creation unit 12 shown in FIG. The created new file is shown in FIG. This file is a file for specification management as described above, and for each search key item corresponding to the specification of the vehicle, a data entity indicating the use start date and time as the date and time information (attribute information) and the actual use content corresponds. Attached. For example, as the search key items, installed engine, total displacement, body shape, capacity, ...
Are defined, and the data entity is S
OHC 4-cylinder, 1809CC, monocoque 4-door, 5
.., Etc. are associated with each other. here,
The search key item can be arbitrarily specified by the user, and a data entity is input by the user for each of the specified search key items.

【0041】図2に示すように、全てのデータ実体の登
録が完了して、図1に示す新規ファイル14が完成され
た後において、日時設定部16によって各検索キー項目
毎に使用開始日時が設定付与される。ここでは、その最
初に決定した仕様が有効となる日時が使用開始日時とし
て入力されており、すなわち図3に示すように各検索キ
ー項目毎に同一の19961001000000が設定
されている。これは1996年10月1日午前0時0分
を意味するものである。この実施形態ではこの日時はそ
の製品の市場出荷開始日時を意味している。勿論、ファ
イルの利用形態に応じて任意の日時を設定することがで
きる。但し、第1世代を構成する各検索キー項目につい
ては同一の日時情報を付与する必要があり、またそれ以
降において各世代のレコードを追加する場合には、その
追加時において各世代毎の追加レコードに同一の日時情
報を付与する必要がある。
As shown in FIG. 2, after the registration of all data entities is completed and the new file 14 shown in FIG. 1 is completed, the date and time setting unit 16 sets the use start date and time for each search key item. Setting is given. Here, the date and time when the first determined specification becomes valid is input as the use start date and time, that is, the same 1996100100000 is set for each search key item as shown in FIG. This means 00:00 AM on October 1, 1996. In this embodiment, the date and time means the date and time when the product is shipped to the market. Of course, an arbitrary date and time can be set according to the use form of the file. However, it is necessary to add the same date and time information to each search key item constituting the first generation, and if a record of each generation is added after that, an additional record for each generation is added at the time of addition. Must be given the same date and time information.

【0042】ちなみに、この日時情報の付与は、上記の
ように人為的に行うこともできるが、例えばエントリー
日時などを利用することによって自動化も可能である。
図3に示すように、第1世代のファイルが完成した後、
図1の100で示すように、そのファイルが世代統合フ
ァイル10に登録される。
Incidentally, the date and time information can be artificially given as described above, but can be automated by using, for example, the entry date and time.
As shown in FIG. 3, after the first generation file is completed,
As shown by 100 in FIG. 1, the file is registered in the generation integrated file 10.

【0043】(b2)レコード修正の第1例 次に、第1世代を基礎とする第2世代の作成すなわちレ
コードの修正について説明する。図4には、その一例が
示されており、エンジン、総排気量、ブレーキの3つの
仕様(検索キー項目)について、旧仕様と新仕様とが示
されている。このような変更内容を世代統合ファイル1
0に反映させるためには、まず、図1に示したように世
代統合ファイル10がコピーされ、作業ファイル24が
作成される。そのコピーされた作業ファイル24の内容
が図5に示されており、ここで図5に示す網掛け部分は
変更対象を示している。このような作業ファイル24に
対して、修正部26によって上述した3つの検索キー項
目についてのデータ実体が変更される。図6(A)には
図5に示したものと同じ変更前のファイル内容が示され
ており、図6(B)には変更後のファイル内容が示され
ている。修正部26は、変更が行われたレコードの日時
情報(使用開始日時)を自動的に空欄にする処理を行っ
ている。勿論、全ての桁に0あるいは9などの特定の数
値を入力することによってそれが変更対象となったレコ
ードであることを識別させてもよい。
(B2) First Example of Record Modification Next, creation of a second generation based on the first generation, that is, modification of a record will be described. FIG. 4 shows an example of the three specifications (search key items) of the engine, the total displacement, and the brake, showing an old specification and a new specification. Such changes are stored in the generation integrated file 1
In order to reflect this to 0, first, as shown in FIG. 1, the generation integrated file 10 is copied, and the work file 24 is created. The contents of the copied work file 24 are shown in FIG. 5, and the hatched portion shown in FIG. 5 indicates a change target. For such a work file 24, the data entity of the three search key items described above is changed by the correction unit 26. FIG. 6A shows the same file contents before change as shown in FIG. 5, and FIG. 6B shows the file contents after change. The correction unit 26 performs a process of automatically blanking the date and time information (use start date and time) of the changed record. Of course, by inputting a specific numerical value such as 0 or 9 in all digits, it may be identified that the record is a record to be changed.

【0044】この修正作業においては、ユーザーは例え
ばディスプレイに表示された作業ファイル24の内容を
見ながら、キーボードなどを利用して特定の検索キー項
目のデータ実体を変更することにより、その変更内容が
修正部26によって自動認識され、作業ファイル24の
内容が更新される。
In this correction work, the user changes the data entity of a specific search key item using a keyboard or the like while viewing the contents of the work file 24 displayed on the display, for example, so that the changed contents are changed. The contents are automatically recognized by the correction unit 26 and the contents of the work file 24 are updated.

【0045】このように変更された内容を有する作業フ
ァイル24は、上述したように変更レコード抽出部28
に送られ、そこで図6(B)に網掛けで示すように変更
対象となったレコードのみが抽出される。これと並行し
て、日時設定部30によって第1世代で付与された使用
開始日時とは異なる使用開始日時、例えばその変更後の
仕様をもった製品が実際に市場に出荷される日時が、変
更されたレコードに対して付与される。そして、そのよ
うな使用開始日時が付与された変更レコードのみが世代
統合ファイル10に新たに追加登録される。その追加登
録された状態が図7に示されている。図7に示すよう
に、網掛けで示す第2世代のみに属すレコードが追加さ
れており、具体的には、搭載エンジンの検索キー項目に
は2つのデータ実体が対応付けられ、以下同様に、総排
気量及びブレーキについてもそれぞれ2つずつのデータ
実体が対応付けられている。勿論、それらのデータ実体
に付与された使用開始日時は第1世代と第2世代とでは
異なっている。ちなみに、このように変更された検索キ
ー項目以外の項目については、そのレコードが第1世代
と第2世代とで共有されている。
The work file 24 having the contents changed as described above is stored in the change record extraction unit 28 as described above.
, Where only the records to be changed are extracted as shown by the hatching in FIG. 6B. In parallel with this, the use start date and time different from the use start date and time given by the date and time setting unit 30 in the first generation, for example, the date and time when a product having the changed specification is actually shipped to the market is changed. Is given to the record that was created. Then, only the change record to which such use start date and time is added is newly registered in the generation integrated file 10. FIG. 7 shows the state of the additional registration. As shown in FIG. 7, a record belonging to only the second generation indicated by shading is added. Specifically, two data entities are associated with the search key item of the mounted engine. Two data entities are also associated with the total displacement and the brake, respectively. Of course, the use start date and time assigned to those data entities are different between the first generation and the second generation. Incidentally, for the items other than the search key items changed in this way, the records are shared by the first generation and the second generation.

【0046】(b3)レコード修正の第2例 以上の修正作業は、図1に示す第1修正追加部20によ
るものであったが、次に、他の実施形態として第2修正
追加部22による修正作業について説明する。
(B3) Second Example of Record Correction The above-described correction work was performed by the first correction adding section 20 shown in FIG. 1, but next, as another embodiment, by the second correction adding section 22. The correction operation will be described.

【0047】図1に示す対話型修正部32を起動させる
と、図8に示すように、まずディスプレイに検索画面が
表示される。その検索画面内には指定する検索キー項目
の入力欄が表示される。そこで、ユーザーはキーボード
などを利用して、特定の検索キー項目の内容を入力す
る。すると、対話型修正部32は、図9に示すように、
世代統合ファイル10内に登録されている第1世代のフ
ァイルにアクセスし、当該入力された検索キー項目に対
応するデータ実体の読取りを行う。図8及び図9に示す
例では検索キー項目として搭載エンジンが指定されてい
るため、そのデータ実体としてSOHC4気筒が読み取
られている。この場合、図9に示すように使用開始日時
は空欄とされ、図10に示すように、ユーザーによって
データ実体及び使用開始日時が入力指定される。これに
よって、検索キー項目についてのデータ実体の変更及び
新たな使用開始日時の付与がなされたので、対話型修正
部32は追加判定部34を介してそのレコードを世代統
合ファイル10に追加登録する(図11参照)。但し、
その追加登録に先立って、追加判定部34がレコード内
容の適否を判定しており、具体的には、検索キー項目と
使用開始日時との組合わせが世代統合ファイル10上に
おいて1つ特定されるような場合にのみに追加登録が許
可されている。
When the interactive correction unit 32 shown in FIG. 1 is activated, a search screen is first displayed on the display as shown in FIG. In the search screen, an input field for a specified search key item is displayed. Therefore, the user uses a keyboard or the like to enter the contents of a specific search key item. Then, the interactive correction unit 32, as shown in FIG.
The first generation file registered in the generation integrated file 10 is accessed, and the data entity corresponding to the input search key item is read. In the examples shown in FIGS. 8 and 9, since the mounted engine is specified as the search key item, the SOHC4 cylinder is read as the data entity. In this case, the use start date and time are blank as shown in FIG. 9, and the data entity and the use start date and time are input and designated by the user as shown in FIG. As a result, the data entity of the search key item has been changed and a new use start date and time has been given, so the interactive correction unit 32 additionally registers the record in the generation integrated file 10 via the addition determination unit 34 ( See FIG. 11). However,
Prior to the additional registration, the addition determination unit 34 determines whether the record content is appropriate. Specifically, one combination of the search key item and the use start date and time is specified on the generation integrated file 10. Additional registration is allowed only in such cases.

【0048】そして、以上のように対話型修正部32に
よって各検索キー項目に対する修正作業をくり返し行え
ば、図12に示されるように、第1世代のみが登録され
ている世代統合ファイル10に対して第2世代を追加登
録することが可能となる。この図12に示す例では、図
7に示した例と同様に、搭載エンジン、総排気量及びブ
レーキについて新しいレコードが登録されている。な
お、図12において網掛け部分は追加レコードを示して
いる。
Then, as described above, if the correction operation for each search key item is repeatedly performed by the interactive correction unit 32, as shown in FIG. 12, the generation integrated file 10 in which only the first generation is registered is deleted. Thus, the second generation can be additionally registered. In the example shown in FIG. 12, similar to the example shown in FIG. 7, new records are registered for the mounted engine, the total displacement, and the brake. In FIG. 12, a shaded portion indicates an additional record.

【0049】なお、対話型修正部32による検索キー項
目毎の逐次修正においては、同時に修正した各レコード
については同一の使用開始日時を設定する。その設定は
上記のように人為的に行ってもよいが、それを自動化す
ることも可能である。
In the sequential correction by the interactive correction unit 32 for each search key item, the same use start date and time are set for each record corrected at the same time. The setting may be performed artificially as described above, but it is also possible to automate the setting.

【0050】(b4)レコード削除 次に、次世代で不要となったレコードの削除について説
明する。前世代で存在していたレコードが次世代では不
要となった場合、本実施形態では、上述のように削除対
象となるレコードに削除フラグを立てることによってそ
の削除対象が特定される。この場合、単に世代統合ファ
イル10から削除したいレコードを削除してしまうと、
その削除以前の世代についての情報が損われてしまうた
め、本実施形態では、図14に示すように、同一の検索
キー項目に対して、異なる使用開始日時(日時情報)と
同一内容のデータ実体と削除フラグとを対応付けた新し
いレコード(削除マスクレコード)を新たに追加登録す
ることによって、その削除処理を行っている。以下、具
体的に説明する。
(B4) Deletion of Record Next, the deletion of a record that is unnecessary in the next generation will be described. In the present embodiment, when a record that existed in the previous generation becomes unnecessary in the next generation, the deletion target is specified by setting a deletion flag on the record to be deleted as described above. In this case, if a record to be deleted is simply deleted from the generation integrated file 10,
Since information about the generation before the deletion is lost, in the present embodiment, as shown in FIG. 14, for the same search key item, a data entity having a different use start date / time (date / time information) and the same content A new record (deletion mask record), in which a deletion flag is associated with a new record, is newly registered to perform the deletion process. Hereinafter, a specific description will be given.

【0051】図13には、第2世代までが登録された世
代統合ファイル10の内容が示されている。ここにおい
て204で示されるレコードは第3世代において削除し
ようとするレコードである。本実施形態では、このレコ
ード204を第3世代で削除しようとする場合、まず世
代統合ファイル10をコピーすることによって作業ファ
イル24が作成され、その作業ファイル24に対して削
除部36によって新たに削除用の削除マスクレコードが
追加作成される。その状態が図14に示されている。レ
コード206は削除マスクレコードであり、レコード2
04を第3世代においてマスクするために、同一の検索
キー項目について同一のデータ実体と、異なる使用開始
日時と、さらに削除フラグと、が付与されたものであ
る。すなわち、レコード204と削除マスクレコード2
06とを対比した場合、使用開始日時のみが異なってお
り、後に詳述するように、第3世代に相当する検索日時
が設定された場合、オプション2のデータ実体としてレ
コード206が特定されることになるが、当該レコード
206には削除フラグが付与されているため、オプショ
ン2についてはレコードが存在しないものとして処理さ
れる。すなわち、レコード204に対してレコード20
6を重ね合わせることによって使用開始日時が前のレコ
ードをデータ検索上隠蔽するものである。勿論、その第
3世代に相当する使用開始日時よりも前に検索日時が設
定されれば、レコード204が検索対象となる。
FIG. 13 shows the contents of the generation integrated file 10 in which the second generation is registered. Here, the record indicated by 204 is a record to be deleted in the third generation. In the present embodiment, when the record 204 is to be deleted by the third generation, the work file 24 is first created by copying the generation integrated file 10, and the work file 24 is newly deleted by the deletion unit 36. An additional deletion mask record is created. This state is shown in FIG. Record 206 is a deletion mask record, and record 2
In order to mask 04 in the third generation, the same data entity, a different use start date and time, and a deletion flag are added to the same search key item. That is, record 204 and deletion mask record 2
06, only the use start date and time is different. As described later in detail, when a search date and time corresponding to the third generation is set, the record 206 is specified as the data entity of option 2 However, since the record 206 is provided with a deletion flag, the option 2 is processed as if no record exists. That is, record 20 is
By superimposing No. 6, the record whose use start date and time is earlier is hidden in data search. Of course, if the search date and time is set before the use start date and time corresponding to the third generation, the record 204 becomes the search target.

【0052】以上のように、削除フラグが付加された削
除マスクレコードの追加登録によって、もとのレコード
を変更したり削除したりすることなく、データ検索上特
定の世代から特定のレコードを削除することが可能とな
る。
As described above, a specific record is deleted from a specific generation in data retrieval without changing or deleting the original record by additionally registering a deletion mask record to which a deletion flag is added. It becomes possible.

【0053】(b5)検索処理 次に、図1に示した検索部40による検索処理について
説明する。
(B5) Search Processing Next, search processing by the search unit 40 shown in FIG. 1 will be described.

【0054】図15(A)には、上述のようなレコード
の修正や削除が行われ、すなわち複数世代が登録された
世代統合ファイル10の内容が示されている。この図1
5(A)に示すファイル内容において、検索キー項目の
中には複数のデータ実体が対応しているものがあり、ま
たオプション2については削除フラグが付加されてい
る。
FIG. 15A shows the contents of the generation integrated file 10 in which the above-described record correction or deletion has been performed, that is, a plurality of generations have been registered. This figure 1
In the file contents shown in FIG. 5A, some of the search key items correspond to a plurality of data entities, and the option 2 is provided with a deletion flag.

【0055】各レコード毎にそれが共有されている世代
を参考として示したものが図15(B)である。なお、
共有世代として示されている数字は、世代番号を示して
いる。
FIG. 15B shows, for reference, the generation in which each record is shared. In addition,
The number indicated as the shared generation indicates the generation number.

【0056】本実施形態では、各世代のレコードを検索
する場合には、ユーザーは特に世代番号を意識すること
は不要であり、例えばあの頃の情報が欲しいというよう
な場合の「あの頃」に相当するような日時を検索日時と
して指定することができる。そして、そのような指定に
基づいて、それを最大として最も近い使用開始日時が付
されたレコードが各検索キー項目毎に特定される。
In the present embodiment, when searching for records of each generation, the user does not need to be particularly aware of the generation number. An equivalent date and time can be specified as the search date and time. Then, on the basis of such designation, a record with the closest use start date and time as the maximum is specified for each search key item.

【0057】例えば、図15(A)に示したファイル内
容を有する世代統合ファイル10に対して第1世代の検
索を行う場合、検索日時として例えば1996年12月
31日を指定する。具体的には、検索日時として199
61231000000を入力する。すると、図16に
示されるように、その検索日時を最大としてその検索日
時に最も近いレコードが各検索キー項目単位で特定され
る。図16においてはその検索されたレコードが網掛け
で示されている。図16に示されるように、例えば検索
キー項目「搭載エンジン」については、第2世代に相当
するレコードは無視され、第1世代に相当するレコード
のみが抽出されている。
For example, when the first generation search is performed on the integrated generation file 10 having the file contents shown in FIG. 15A, the search date and time, for example, December 31, 1996 is specified. Specifically, 199 is set as the search date and time.
Enter 6123100000. Then, as shown in FIG. 16, the record closest to the search date and time is specified for each search key item with the search date and time set to the maximum. In FIG. 16, the searched records are shaded. As shown in FIG. 16, for example, for the search key item “installed engine”, records corresponding to the second generation are ignored, and only records corresponding to the first generation are extracted.

【0058】また、第2世代を検索する場合には、例え
ばあの頃の情報が欲しいという場合の「あの頃」に相当
する日時として1999年12月31日を指定する。具
体的には検索日時指定部42を用いて検索日時として1
9991231000000を入力する。すると、検索
部40によってその指定された検索日時を最大としてそ
れに最も近いレコードが各検索キー項目毎に特定され
る。その状態が図17に網掛けとして示されている。図
17に示されるように、例えば検索キー項目の「搭載エ
ンジン」については、第2世代のレコードが抽出されて
いる。
When the second generation is searched, for example, December 31, 1999 is designated as the date and time corresponding to "at that time" when information at that time is desired. Specifically, the search date and time is set to 1
Enter 99912310000000. Then, the search unit 40 specifies the record closest to the specified search date and time to the specified search date and time for each search key item. The state is shown by hatching in FIG. As shown in FIG. 17, for example, for the “installed engine” of the search key item, a second generation record is extracted.

【0059】また、第3世代を検索する場合には、上記
の「あの頃」として2001年12月31日を指定す
る。具体的には、検索日時指定部42を用いて検索日時
として200011231000000を入力する。す
ると、検索部40が世代統合ファイル10が検索され
て、図18に示すように第3世代に属するレコードのみ
が抽出される。検索されたレコードは図18において網
掛けで示されている。この場合、図18に示されるよう
に、検索キー項目のオプション2については、検索部4
0は削除フラグが付加されたレコードを特定することに
なるが、そのレコードには削除フラグが付加されている
ため、検索部40はオプション2についてはそのレコー
ドが存在しないものとして検索処理を行う。
When the third generation is searched, December 31, 2001 is designated as the "that time". More specifically, the search date / time designation unit 42 is used to input 20001123100000 as the search date / time. Then, the search unit 40 searches the generation integrated file 10 and extracts only records belonging to the third generation as shown in FIG. The searched records are shaded in FIG. In this case, as shown in FIG. 18, for the option 2 of the search key item, the search unit 4
A value of 0 specifies a record to which a deletion flag has been added. However, since the deletion flag has been added to the record, the search unit 40 performs a search process for option 2 assuming that the record does not exist.

【0060】以上のように、検索日時の漠然とした指定
によって、その検索日時と同じ日時またはそれ以前で最
も近い日時のレコードを抽出でき、これによって所望の
世代のレコードを抽出でき、ユーザーの操作性を向上で
きるという利点がある。
As described above, by the vague specification of the search date and time, the record of the same date and time as the search date and time or the closest date and time can be extracted, whereby the record of the desired generation can be extracted, and the operability of the user can be improved. There is an advantage that can be improved.

【0061】図19には、図1に示した検索部40の動
作がフローチャートとして示されている。S101で
は、検索日時指定部42によってユーザーによって指定
された検索日時が読み取られる。S102では、検索キ
ー項目の順番を示すnに初期値として1が代入される。
S103では、n番目の検索キー項目から全てのレコー
ドが抽出され、S104ではその抽出されたレコードの
中で、検索日時以前で最新のレコードが判定される。そ
して、S105では、そのS104で判定されたレコー
ドについて削除フラグが付加されているか否かが判定さ
れ、削除フラグが付与されていればそのままS107が
実行され、一方、削除フラグが付与されていなければS
106においてS104で判定されたレコードを当該検
索キー項目のレコードとして一時的に保存する。
FIG. 19 is a flowchart showing the operation of the search unit 40 shown in FIG. In S101, the search date and time designated by the user by the search date and time designation unit 42 is read. In S102, 1 is assigned as an initial value to n indicating the order of the search key items.
In S103, all records are extracted from the nth search key item, and in S104, the latest record before the search date and time among the extracted records is determined. In S105, it is determined whether or not a deletion flag is added to the record determined in S104. If the deletion flag is added, S107 is executed as it is. On the other hand, if the deletion flag is not added. S
In 106, the record determined in S104 is temporarily stored as the record of the search key item.

【0062】S107では、全項目についてレコード検
索が終了したか否かが判定され、終了していない場合に
はS108においてnの値が1つだけインクリメントさ
れ、S103からの各工程が繰返し実行される。そし
て、最終的にS107において全項目について検索が終
了したことが判定されると、特定された世代のレコード
群で構成されるファイルが出力されることになる。
In S107, it is determined whether or not the record search has been completed for all items. If not, the value of n is incremented by one in S108, and the steps from S103 are repeatedly executed. . Then, when it is finally determined in S107 that the search has been completed for all items, a file composed of the record group of the specified generation is output.

【0063】[0063]

【発明の効果】以上説明したように、本発明によれば、
各世代間で共通するレコードの重複登録を排除でき、こ
れによって記憶装置の記憶容量を有効利用でき、また世
代間においてファイルの切替などを行うことなく各世代
の管理を統合して行うことができるという利点がある。
また、本発明によれば、日時情報などの世代に合致した
属性情報を活用して各レコードの世代管理を行うことが
できるという利点がある。さらに、本発明によれば、レ
コードの修正や削除などを容易に行うことができ、その
ようなレコードの内容の変更によっても各世代のレコー
ドを確実に保存・検索できるという利点がある。
As described above, according to the present invention,
Duplicate registration of records common to each generation can be eliminated, thereby effectively utilizing the storage capacity of the storage device, and management of each generation can be integrated and performed without switching files between generations. There is an advantage.
Further, according to the present invention, there is an advantage that generation management of each record can be performed using attribute information such as date and time information that matches the generation. Further, according to the present invention, there is an advantage that records can be easily modified or deleted, and records of each generation can be reliably stored and retrieved even by such changes in the contents of records.

【0064】また、本発明によれば、世代自体の指定を
行うことなく、およその日時を指定することによって所
望の世代のレコードを抽出でき、検索時におけるユーザ
ーの負担を軽減できるという利点がある。
Further, according to the present invention, it is possible to extract a record of a desired generation by specifying an approximate date and time without specifying the generation itself, and there is an advantage that the burden on the user at the time of retrieval can be reduced. .

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

【図1】 本発明に係るバージョン管理装置の全体構成
を示す概念図である。
FIG. 1 is a conceptual diagram showing an overall configuration of a version management device according to the present invention.

【図2】 第1世代のファイルの作成にあたってデータ
実体の登録が終了した状態を示す図である。
FIG. 2 is a diagram showing a state in which registration of a data entity has been completed in creating a first generation file.

【図3】 第1世代のファイルが完成された状態を示す
図である。
FIG. 3 is a diagram showing a state where a first generation file is completed.

【図4】 検索キー項目とその修正内容を示す図であ
る。
FIG. 4 is a diagram showing search key items and their correction contents.

【図5】 修正を行うレコードを含むファイルの内容を
示す図である。
FIG. 5 is a diagram showing the contents of a file including a record to be modified.

【図6】 データの更新がされる前のファイルの内容と
された後のファイルの内容を示す図である。
FIG. 6 is a diagram showing the contents of a file before data is updated and the contents of the file after the data is updated.

【図7】 第2世代が追加されたファイルの内容を示す
図である。
FIG. 7 is a diagram showing the contents of a file to which a second generation has been added.

【図8】 対話形式によるレコード修正にあたって表示
される検索画面を示す図である。
FIG. 8 is a diagram showing a search screen displayed when a record is modified in an interactive format.

【図9】 検索画面における検索キー項目の指定と指定
された検索キー項目のデータ実体の読取りを示す図であ
る。
FIG. 9 is a diagram showing designation of a search key item on a search screen and reading of a data entity of the designated search key item.

【図10】 ユーザーによる使用開始日時及びデータ実
体の入力を示す図である。
FIG. 10 is a diagram showing input of a use start date and time and a data entity by a user.

【図11】 レコードが追加されたファイルの内容を示
す図である。
FIG. 11 is a diagram showing the contents of a file to which a record has been added.

【図12】 第2世代が追加されたファイルの内容を示
す図である。
FIG. 12 is a diagram showing the contents of a file to which a second generation has been added.

【図13】 第2世代までが登録されたファイルの内容
を示す図である。
FIG. 13 is a diagram showing the contents of a file in which up to the second generation is registered.

【図14】 第3世代で削除マスクレコードが登録され
たファイルの内容を示す図である。
FIG. 14 is a diagram showing the contents of a file in which a deletion mask record is registered in the third generation.

【図15】 複数世代でレコードが共有されたファイル
の内容と各レコードが共有される世代を示す図である。
FIG. 15 is a diagram illustrating the contents of a file in which records are shared by multiple generations and the generation in which each record is shared.

【図16】 第1世代の検索結果を示す図である。FIG. 16 is a diagram showing a first generation search result.

【図17】 第2世代の検索結果を示す図である。FIG. 17 is a diagram showing search results of the second generation.

【図18】 第3世代の検索結果を示す図である。FIG. 18 is a diagram showing a third generation search result.

【図19】 検索部の動作を示すフローチャートであ
る。
FIG. 19 is a flowchart illustrating an operation of a search unit.

【図20】 従来のバージョン管理方法を示す図であ
る。
FIG. 20 is a diagram showing a conventional version management method.

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

10 世代統合ファイル、12 ファイル作成部、14
新規ファイル、16日時設定部、24 作業ファイ
ル、26 修正部、28 変更レコード抽出部、30
日時設定部、32 対話型修正部、34 追加判定部、
40 検索部、42 検索日時指定部。
10 generation integrated file, 12 file creation unit, 14
New file, 16 date and time setting part, 24 work file, 26 correction part, 28 change record extraction part, 30
Date and time setting part, 32 interactive correction part, 34 addition judgment part,
40 search part, 42 search date and time designation part.

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 517 G06F 12/00 520 G06F 17/30 370 G06F 17/24 554 Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 12/00 517 G06F 12/00 520 G06F 17/30 370 G06F 17/24 554

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 段階的に更新された各世代のレコード群
を管理するバージョン管理装置において、 前記各レコードの格納に先立って、各レコード毎にそれ
が最初に所属した世代のみを示す日時情報としての属性
情報を付与する属性付与手段と、 前記属性情報が付与された各レコードが検索キー項目に
対応付けられつつ格納される世代統合ファイルと、 新世代のレコード群が作成された場合に、そのレコード
群の中で修正された修正レコードのみを前記統合ファイ
ルへ追加格納する追加手段と、不要となったレコードと同一の内容を有しかつ新しい属
性情報及び削除フラグが付与された削除マスクレコード
を前記世代統合ファイルに追加格納する削除手段と、 前記世代統合ファイルから、前記属性情報に基づいて、
特定世代のレコードを検索するために、各検索キー項目
毎に、検索日時から戻って最も新しい属性情報が付与さ
れたレコードを検索する手段であって、前記削除マスク
レコードが検索された場合にその検索キー項目にはレコ
ードが存在しないものとして検索処理を行うレコード検
索手段と、 を備え、 前記世代統合ファイルには世代間で共通のレコードが共
有されることを特徴とするバージョン管理装置。
1. A version management apparatus for managing a record group of each generation updated stepwise, wherein prior to storage of each record, date and time information indicating only the generation to which the record first belongs for each record. an attribute assigning means for assigning the attribute information, each record said attribute information has been granted to the search key item
A generation integrated file that is stored while being correlated, and an additional unit that, when a new generation record group is created, additionally stores only the corrected records corrected in the record group in the integrated file, is unnecessary. New attribute with the same content as the record
Delete mask record with gender information and delete flag
From the generation integrated file based on the attribute information,
Each search key item to search for records of a specific generation
Each time, the newest attribute information is returned from the search date and time.
Means for searching for a deleted record, wherein the deletion mask
When a record is found, the record is
A record search means for performing a search process assuming that no code exists , wherein a common record is shared between generations in the generation integrated file.
【請求項2】 前記世代統合ファイルの内容をコピーし
て作業ファイルを生成する作業ファイル生成手段と、 前記作業ファイルの内容を基礎として新世代のレコード
群を作成するレコード修正手段と、 を有することを特徴とする請求項1記載のバージョン管
理装置。
2. A work file generating means for generating a work file by copying the contents of the generation integrated file, and a record correcting means for creating a new generation record group based on the contents of the work file. The version control device according to claim 1, wherein:
【請求項3】 前記世代統合ファイルを参照しつつ逐次
的に修正レコードを作成する対話型修正手段を有し、 前記追加手段は前記修正レコードを前記世代統合ファイ
ルに追加格納することを特徴とする請求項1記載のバー
ジョン管理装置。
3. An interactive modification unit for sequentially creating modification records while referring to the generation integration file, wherein the addition unit additionally stores the modification records in the generation integration file. The version management device according to claim 1.
【請求項4】 前記日時情報は各レコードを有効とする
日時を示す情報であることを特徴とする請求項2記載の
バージョン管理装置。
4. The version management apparatus according to claim 2, wherein the date and time information is information indicating a date and time when each record is valid.
【請求項5】 段階的に更新された各世代のレコード群
を管理するバージョン管理方法において、前記各レコードの格納に先立って、各レコード毎にそれ
が最初に所属した世代のみを示す日時情報としての属性
情報を付与する工程と、 前記属性情報が付与された各レコードを検索キー項目に
対応付けつつ世代統合ファイルに格納する工程と、 新世代のレコード群が作成された場合に、そのレコード
群の中で修正された修正レコードのみを前記統合ファイ
ルへ追加格納する工程と、 不要となったレコードと同一の内容を有しかつ新しい属
性情報及び削除フラグが付与された削除マスクレコード
を前記世代統合ファイルに追加格納する工程と、前記世
代統合ファイルから、前記属性情報に基づいて、特定世
代のレコードを検索するために、各検索キー項目毎に、
検索日時から戻って最も新しい属性情報が付与されたレ
コードを検索する工程であって、前記削除マスクレコー
ドが検索された場合にその検索キー項目にはレコードが
存在しないものとして検索処理を行う工程と、 を備え、 前記世代統合ファイルには世代間で共通のレコードが共
有される ことを特徴とするバージョン管理方法。
5. A version management method for managing a group of records of each generation updated in a stepwise manner, wherein each record is stored for each record prior to storage of said record.
Attribute as date and time information indicating only the generation to which the user first belongs
Assigning information, and each record to which the attribute information is assigned is used as a search key item.
The process of storing in the generation integrated file while associating, and when a new generation record group is created, the record
Only the modified records that have been modified in the group
To add a new attribute to the
Delete mask record with gender information and delete flag
Additionally storing in the generation integrated file,
Based on the attribute information, the specific world
In order to search for records of each generation, for each search key item,
Return from the search date and time
Searching for a code, wherein the deletion mask record is
When the search key is found, the search key item contains no record.
Comprising a step of performing a search process as missing, and the generation integrated common record co between generations in the file
Version control method characterized by having.
JP07503096A 1996-03-28 1996-03-28 Version control apparatus and method Expired - Fee Related JP3245047B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07503096A JP3245047B2 (en) 1996-03-28 1996-03-28 Version control apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07503096A JP3245047B2 (en) 1996-03-28 1996-03-28 Version control apparatus and method

Publications (2)

Publication Number Publication Date
JPH09265419A JPH09265419A (en) 1997-10-07
JP3245047B2 true JP3245047B2 (en) 2002-01-07

Family

ID=13564387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07503096A Expired - Fee Related JP3245047B2 (en) 1996-03-28 1996-03-28 Version control apparatus and method

Country Status (1)

Country Link
JP (1) JP3245047B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004164318A (en) 2002-11-13 2004-06-10 Hitachi Ltd Generation management method for backup data and storage controller to be used for this method
JP5675666B2 (en) * 2012-02-09 2015-02-25 株式会社野村総合研究所 Timed data history management system
JP6371090B2 (en) * 2014-03-26 2018-08-08 トッパン・フォームズ株式会社 Document file management system and document file management method
JP5841704B2 (en) * 2014-12-22 2016-01-13 株式会社野村総合研究所 Timed data history management system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6022254A (en) * 1983-07-15 1985-02-04 Fujitsu Ltd Maintenance method of library
JP2550531B2 (en) * 1986-08-01 1996-11-06 日本電気株式会社 Source program generation management method
JPH02196349A (en) * 1989-01-25 1990-08-02 Nec Corp File generation management system
JPH02259942A (en) * 1989-03-31 1990-10-22 Fujitsu Ltd Data base generation management processing system
JP2622418B2 (en) * 1989-11-27 1997-06-18 株式会社日立製作所 Information recording / reproducing method

Also Published As

Publication number Publication date
JPH09265419A (en) 1997-10-07

Similar Documents

Publication Publication Date Title
US5553279A (en) Lossless distribution of time series data in a relational data base network
JPH0916607A (en) Method for managing index in data base management system
JP2001282593A (en) Method and device of database-file cooperation
JPH07117895B2 (en) Version control method and apparatus for source data
JP3245047B2 (en) Version control apparatus and method
JPH10312396A (en) Data base system and computer-readable record medium where data base retrieval program is recorded
JP3484440B2 (en) Distributed database update method
JP3636773B2 (en) Information processing device for database check
US6085036A (en) Data base structure and management
JP3239924B2 (en) Relational database access control method
JP2643811B2 (en) Database reorganization method
JP2001216319A (en) Document managing method and its implementation device, and recording medium stored with processing program thereof
JP2828354B2 (en) Database management device
JP2002342137A (en) Device and method for managing document and recording medium
JP3772105B2 (en) Database management apparatus, method, program, and recording medium
JP2900873B2 (en) File management device
JPH05151056A (en) Data controller
JPH11250039A (en) Editing supporting method using database and recording medium storing program for the same
JP2001084271A (en) Information retrieving device, algorithm updating method thereof and computer-readable storage medium
JPH09167167A (en) Object retrieval method in object directing database
JP3255121B2 (en) Database search device, database search method, information processing device, recording medium storing program for causing computer to execute database search method
JP2023167310A (en) Attribute data storage device, method and program
JP2003280955A (en) Method and system for updating definition information in data extraction
JPH0687226B2 (en) Database management method
JPH07262063A (en) File controller

Legal Events

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