TWI283359B - System for accessing database in object-oriented program - Google Patents
System for accessing database in object-oriented program Download PDFInfo
- Publication number
- TWI283359B TWI283359B TW91122436A TW91122436A TWI283359B TW I283359 B TWI283359 B TW I283359B TW 91122436 A TW91122436 A TW 91122436A TW 91122436 A TW91122436 A TW 91122436A TW I283359 B TWI283359 B TW I283359B
- Authority
- TW
- Taiwan
- Prior art keywords
- database
- oriented program
- data
- program
- accessing
- Prior art date
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
I283359I283359
五、 發明説明() 發明領域: 本發明係有關於一種存取資料庫(Database)之系統,特 別疋有關於一種在物件導向程式(〇bject 〇riented pr〇gram ; OOP)中存取資料庫之系統。 發明背景: 資料庫是一種藉由電腦將資料儲存於其中之軟體系 、.先’其中廷些資料係以特定方式加以組織,冑以使這些資 ,可有效地被儲存、搜尋、與取用。㈤人資料庫在使用及 管理上較為簡易。然而,如果是針對包含許多資料庫檔案 的大型 > 料庫系統,則需要仰賴較專業的管理技術◎例如·· 如何快速找到全國各地的客戶與訂單資料?如何確保輪入 資料的正確性?如何避免不同地區的人員同時更改同一筆 資料?如何建立資料庫檔案之間的關聯性?如何使各資料 庫的格式可以相容共用? 若資料庫中的不同資料表(Table)中之攔位一再的重 複,則將造成資料的重複,進而導致儲存媒體的浪費等缺 點。反之,若不同的資料表間同時包括一唯一且共同的攔 位,則這些不同的資料表間之資料可藉由此唯一且共同的 襴位連結起來整合運用。例如,與員工有關的資料表可有 '、員工個人資料表〃與、、員工考績資料表〃等。此兩個資 料表中可具有一共同攔位,如、、職工編號〃,藉以將、、員 工個人資料表〃與、員工考績資料表〃中的資料連結起來 整合運用。此種資料庫即稱為關聯式(Relati〇nal^^料庫。 (請先閲讀背面之注意事項再場寫本頁}V. INSTRUCTIONS () Field of the Invention: The present invention relates to a system for accessing a database, and particularly to accessing a database in an object-oriented program (〇bject 〇riented pr〇gram; OOP) The system. BACKGROUND OF THE INVENTION: A database is a soft system in which data is stored by a computer. First, the data is organized in a specific manner so that these resources can be effectively stored, searched, and accessed. . (5) The human database is relatively easy to use and manage. However, if it is for a large > repository system that contains many database files, you need to rely on more professional management techniques. For example, how to quickly find customer and order information across the country? How to ensure the correctness of the rounded data? How can I prevent people in different regions from changing the same data at the same time? How to establish the association between database files? How to make the format of each database compatible? If the blocks in different tables in the database are repeated repeatedly, it will cause duplication of data, which will lead to waste of storage media. Conversely, if different data sheets include a unique and common block, the data between the different data sheets can be combined and used by the unique and common unit. For example, the employee-related data sheet may have ', employee profile information, and employee performance data sheet. The two materials tables can have a common block, such as the employee number, to link, and the employee's personal data sheet and the employee's performance data sheet. This kind of database is called the association (Relati〇nal^^.) (Please read the notes on the back and write this page again)
,、|呑,,|呑
I I I 缭_ 1283359I I I 缭_ 1283359
五、發明説明() (請先閲讀背面之注意事項再場寫本頁} 在關聯式資料庫中,資料係組織成資料表之形式。資 料表中的每個資料元素可以其所在的列(rgw)與棚(⑶刪) 之編號來定出其索引值。每一列的資料代表對商業上或其 它資料庫使用者有用或有意義之資料。而每一列資料中的 某一欄中之資料則代表具有某種特性或屬性之資料元素。 例如,公司之員工資料庫中的每一列可代表每一位特定的 員工。某一棚可代表員工的姓名,而另一欄則可代表員工 的編號。建立資料庫之程式設計師可根據實際需求來指定 列、欄、以及其它用來定義關聯式資料庫的規格(Schema) 之特性。 上述關聯式資料庫係在某種類型的程式語言的控制之 下,方能執行資料之儲存與取用功能,而此種程式語言例 如可為結構化查詢語言(Structured Query Language ; SQL)。由於結構化查詢語言與關聯式資料庫係在同時期一 起發展與改良’因此結構化查詢語言可妥善地處理關聯式 資料庫之資料。例如,結構化查詢語言的特徵之一為,可 讓程式設計師藉由指定一資料表中的某一元素所在之列與 棚之編號來存取此元素。 此外,物件導向程式化之程式設計方式已逐漸普及。 經濟部智慧財產局員工消費合作社印製 物件導向程式化的目標是藉由建立小而可重用的程式碼單 元來降低發展複雜軟體所需的時間與費用,其中這些小而 可重用的程式碼單元可加以快速且輕易地重組與重複使用 以建立新的程式。上述程式碼單元稱為物件(0bject)。物件 本紙張尺度適用中國國家標準(CNS)A4規格(210X297公釐) 1283359V. Inventions () (Please read the notes on the back and write this page again.) In the relational database, the data is organized into a data sheet. Each material element in the data table can be in its column ( Rgw) and shed ((3) delete) number to determine its index value. The data in each column represents information that is useful or meaningful to users of commercial or other database. The data in one column of each column of information is Represents a material element with a certain characteristic or attribute. For example, each column in a company's employee database can represent each specific employee. One shed can represent the employee's name and the other column can represent the employee's number. The programmer who builds the database can specify the columns, columns, and other features that define the schema of the relational database based on actual needs. The above-mentioned relational database is controlled by a certain type of programming language. Under the circumstance, the storage and retrieval functions of the data can be performed, and the programming language can be, for example, Structured Query Language (SQL). Because of the structured query Words and related databases are developed and improved at the same time. Therefore, structured query languages can properly process data in relational databases. For example, one of the features of structured query languages is that programmers can Specifying the column of a certain element in a data table and the number of the shed to access this element. In addition, the object-oriented stylized programming method has become popular. The Ministry of Economic Affairs, the Intellectual Property Bureau, the employee consumption cooperative, the printed object-oriented stylization The goal is to reduce the time and expense of developing complex software by building small, reusable code units that can be quickly and easily reorganized and reused to create new ones. Program. The above code unit is called object (0bject). The paper size of this object is applicable to China National Standard (CNS) A4 specification (210X297 mm) 1283359
五、發明説明() 導向程式語言,例如C + + ,开遺益4: % ^•丄& 可課程式没計師以一種較為 然且直覺的方式來進行程式兮外的 + 疋订程式。又a十的工作。藉著使用物件V. Invention Description () Guided programming language, such as C + +, Kai Yi 4: % ^•丄& can be used in a more intuitive and intuitive way to program + external program . Another ten work. By using objects
向程式語言的特殊工具斑炷傲,& 4 Μ 4 A 异興特徵,程式設計師能夠撰寫出 以定義軟體物件之程式石民,益v 4甘此古也 〜径氕碼,藉以模擬真實世界中的某些 件。軟體物件可模擬真實世界中的物件之屬性或特性, 在許多情況下,甚至可模擬其行為。因此,現今在多階 (Multi-Tier)系統中之客戶端程式通常會使用物件導向程 語言來撰寫所需程式。然而,本f上,物件導向程式化 言與關聯式資料庫間的連接介面並不完善。因此,當客 端的物件導向程式中需要存取資料庫的資料時,通常係 由在物件導向程式中使用内嵌式(Embedded)的結構化查 語言來存取資料庫中的資料β請參考第丨圖所繪示之習 在物件導向程式中存取資料庫之系統之示意圖。第1 _ 主要包括資料庫1 〇與物件導向程式4〇等元件。資料庠 中係存放使用者所需之資料。這些資料經程式設計師之 類後以許多不同的資料表之形式存放於資料庫1 〇中。每 不同的資料表中更包括欄名與列號等資訊。這些不同的 料表名稱與每一資料表中的攔名與列號等資訊即構成所 的資料庫規格1 5之抽象概念。 ^程式ά計師想在物件導向程式40中存取資料庫 中的資料時,係透過在物件導向程式4〇中嵌入結構化查 語言程式碼2 5來達成。亦即,物件導向程式4 0中除了 括具有各種不同功能之至少一個程式模組5 〇外,更包括 本纸張尺度適用中國國家標準(CNS)A4規格(210X297公釐) 導 用 足 層 言吾 戶 轉 言句 知 t ι〇 分 佃 資 言胃 10 詢 包 結Special tools for programming languages, & 4 Μ 4 A exotic features, programmers can write a program to define the soft objects of the stone people, benefit v 4 Gan this ancient also ~ path weight, to simulate the real Some pieces in the world. A soft object can simulate the properties or characteristics of an object in the real world, and in many cases can even simulate its behavior. Therefore, today's client programs in multi-Tier systems typically use the object-oriented language to write the required programs. However, on this f, the interface between the object-oriented programming and the associated database is not perfect. Therefore, when the object-oriented program needs to access the data of the database, it is usually used to access the data in the database by using the embedded structured query language in the object-oriented program. A schematic diagram of a system for accessing a database in an object-oriented program as depicted in the figure. The first _ mainly includes components such as the database 1 and the object-oriented program. The data 庠 is used to store the information required by the user. This information is stored in the database in the form of a number of different data sheets by the programmer. Information such as column names and column numbers is included in each different data sheet. These different material table names and information such as block names and column numbers in each data sheet constitute an abstract concept of the database specification 15. The programmer wants to access the data in the database in the object-oriented program 40 by embedding the structured language code 25 in the object-oriented program. That is to say, the object-oriented program 40 includes at least one program module 5 having various functions, and includes the Chinese National Standard (CNS) A4 specification (210×297 mm) for the paper scale. My family transcribes the sentence t ι〇分佃言言胃10 Inquiry
(請先閲讀背面之注意事項再場寫本頁J(Please read the notes on the back and write this page again.
1283359 A7 B7 五 經濟部智慧財產局員工消費合作社印製 發明説明(:) 構化查詢語言程式碼25,藉以使物件導向程式40可存取 資料庫1 0中的資料。然而,此種做法具有許多缺點。首先, 對於冗長的結構化查詢語言之處理而言,内嵌於物件導向 程式40中的結構化查詢語言程式碼25勢必難以撰寫。其 次,撰寫完成之内嵌於物件導向程式4 0中的結構化查詢語 言程式碼25事後難以維護。再者,由於結構化查詢語言之 語法本質所致,造成程式出錯的風險與可能性大為提高。 因此,有必要尋求解決之道。 發明目的及概述: 鑒於上述發明背景中,習知在物件導向程式中使用内 嵌式的結構化查詢語言來存取資料庫中的資料具有許多缺 點。首先,對於冗長的結構化查詢語言之處理而言,其程 式蝎難以撰寫。其次,撰寫完成之結構化查詢語言程式碼 事後難以維護。再者,對於結構化查詢語言程式而言,出 錯的風險與可能性極高。因此,本發明之一目的為提供一 種在物件導向程式中存取資料庫之系統,可用以簡化在物 件導向程式中存取資料庫所需撰寫之程式碼。 本發明之另一目的為長供一種在物件導向程式中存取 資料庫之系統,可用以減輕維護程式碼所需花費之精力。 本發明之再一目的為提供一種在物件導向程式中存取 資料庫之系統,可用以降低程式出錯之風險與可能性。 依據本發明之上述目的,因此本發明提供一種在物件 導向程式中存取資料庫之系統,此資料庫係由複數個資料 本纸張尺度適用中國國家標準(CNS)A4規格(210X297公釐) (請先閲讀背面之注意事項再填寫本頁) #· 訂. 線丨邊 A7 B7 經濟部智慧財產局員工消費合作社印製 1283359 五、發明説明() 表所組成,且此資料庫中之資料係根據一資料庫規格加以 分類,而此資料庫規格至少包括資料表中之複數個資料表 名稱與每一資料表名稱中之複數個攔位名稱,其中本發明 之在物件導向程式中存取資料庫之系統至少包括:產生 器;至少一資料庫物件,係由產生器根據資料庫之資料庫 規格所產生,其中每一資料庫物件具有複數個屬性,且資 料庫物件與屬性係分別對應於上述資料表名稱與攔位名 稱;以及資料庫存取引擎,係用以接受物件導向程式之呼 叫(Call),且根據資料庫物件之屬性之設定,在物件導向程 式中存取資料庫中之資料,其中資料庫物件係内嵌於物件 導向程式中。 發明詳細說明: 本發明係有關於一種在物件導向程式中存取資料庫之 系統。請參考第2圖所繪示之本發明之一較佳實施例之在 物件導向程式中存取資料庫之系統之示意圖。第2圖中主 要包括 > 料庫1 1 0、物件導向程式1 4 〇、產生器1 2 〇、資料 庫物件130、以及資料庫存取引擎16〇等元件,其中產生 器120、資料庫物件130、以及資料庫存取引擎16〇係本發 明之主要特徵。資料庫丨丨〇中係存放使用者所需之資料。 這些資料經程式設計師之分類後以許多不同的資料表之形 式存放於資料庫1 1 〇中。每個不同的資料表中更包括攔名 與列號等資訊。這些不同的資料表名稱與資料表中的欄名 與列號等資訊即構成所謂的資料庫規格丨丨5之抽象概念。 本紙張尺度適用中國國家標準(CNS)A4規格(210x297公爱) (請t閲讀背面之注意事項再場寫本頁)1283359 A7 B7 5 Ministry of Economic Affairs Intellectual Property Bureau Employees Consumption Cooperative Printed Description of Invention (:) Constructs a query language code 25 so that the object-oriented program 40 can access the data in the database 10. However, this approach has a number of disadvantages. First, for the processing of lengthy structured query languages, the structured query language code 25 embedded in the object-oriented program 40 is bound to be difficult to compose. Secondly, the structured query language code 25 embedded in the object-oriented program 40 is difficult to maintain afterwards. Furthermore, due to the grammatical nature of structured query languages, the risks and possibilities for program errors are greatly increased. Therefore, it is necessary to seek a solution. OBJECT AND SUMMARY OF THE INVENTION: In view of the above-described background of the invention, there are many disadvantages in the use of an embedded structured query language in an object-oriented program to access data in a database. First, for the processing of lengthy structured query languages, the process is difficult to write. Second, the completed structured query language code is difficult to maintain afterwards. Furthermore, for structured query language programs, the risks and possibilities for error are extremely high. Accordingly, it is an object of the present invention to provide a system for accessing a database in an object-oriented program that can be used to simplify the code required to access a database in an object-oriented program. Another object of the present invention is to provide a system for accessing a database in an object-oriented program that can be used to reduce the effort required to maintain the code. It is still another object of the present invention to provide a system for accessing a database in an object-oriented program that can be used to reduce the risk and likelihood of program errors. In accordance with the above objects of the present invention, the present invention therefore provides a system for accessing a database in an object-oriented program, the database being applied to a plurality of data sheets of the Chinese National Standard (CNS) A4 specification (210 X 297 mm). (Please read the notes on the back and fill out this page) #· 订. Line A7 B7 Ministry of Economic Affairs Intellectual Property Bureau Staff Consumer Cooperative Printed 1283359 V. Inventions () Forms and information in this database According to a database specification, the database specification includes at least a plurality of data table names in the data table and a plurality of block names in each data table name, wherein the invention is accessed in the object oriented program. The database system includes at least: a generator; at least one database object is generated by the generator according to a database specification of the database, wherein each database object has a plurality of attributes, and the database object and the attribute system respectively correspond to In the above data sheet name and the interception name; and the data inventory retrieval engine is used to accept the object-oriented program call (Call), and according to The attribute of the database object is set to access the data in the database in the object-oriented mode, wherein the database object is embedded in the object-oriented program. DETAILED DESCRIPTION OF THE INVENTION: The present invention relates to a system for accessing a database in an object oriented program. Please refer to the schematic diagram of a system for accessing a database in an object-oriented program according to a preferred embodiment of the present invention. The figure 2 mainly includes components such as a repository 1 1 0, an object orientation program 1 4 〇, a generator 1 2 〇, a database object 130, and a data inventory retrieval engine 16 ,, wherein the generator 120 and the database object 130, and the data inventory taking engine 16 are the main features of the present invention. The database contains the information required by the user. These materials are sorted by the programmer and stored in the database in a number of different data sheets. Each different data sheet also includes information such as block names and column numbers. The information such as the names of the different data sheets and the column names and column numbers in the data sheet constitute the abstract concept of the so-called database specification 丨丨5. This paper scale applies to the Chinese National Standard (CNS) A4 specification (210x297 public interest) (please read the note on the back and write this page again)
A7 B7 經濟部智慧財產局員工消費合作社印製 1283359 五、發明説明() 產生裔120係一萬用之物件產生程式,僅在本發明之 系統實施之初建立即可,以後即可永久使用。其功能在於 將資料庫規格1 1 5中的資料表名稱轉.變成為資料庫物件 1 3 0 ,而每一資料表中的攔位名稱等資訊即為資料庫物件 1 3 0之屬性。因此,當程式設計者需要在物件導向程式i 4〇 中設計存取資料庫丨10中的資料之程式時,可透過插入如 、資料庫物件名稱·欄位名稱(〇bject.fieldK之相關程式碼 來達成。例如,欲設定某一資料表(以、、資料庫物件名稱" 來代表)的某一欄位(以、'攔位名稱〃來代表)之值時,可藉 由撰寫如、、資料庫物件名稱·欄位名稱=值 (ObjeCt.neld = Value;T之程式碼來達成。此外,由於資料庫 物件1 3 0係以物件之形式在物件導向程式1 4 〇中被程式模 組150所取用,因此在程式撰寫時,可充分運用物件導向. 程式140的整合發展環境(Integrated Devel〇pment Environment ; IDE)之特色。亦即,程式設計師只要在物件 導向程式140中輸入、、資料庫物件名稱·〃之程式碼時,小 數點.〃的後面即會馬上出現此、、資料庫物件名稱"可用 的各種屬性之下拉式選單,藉以大幅節省程式設計師 輸入程式碼之時間與精力,並可避免產生因打字所造成的 錯誤。 如上所述,當程式設計師想在物件導向程式丨4〇中存 取資料庫1 1 0中的資料時,係透過在物件導向程式i 40中 喪入 > 料庫物件13 0來達成。亦即’物件導向程式14 〇中 (請先閲讀背面之注意事項再填寫本頁)A7 B7 Ministry of Economic Affairs Intellectual Property Bureau Employees Consumption Cooperative Printed 1283359 V. Invention Description () The Generating 120 Series Ten Thousand Object Generation Program can be created only at the beginning of the system implementation of the present invention and can be used permanently. Its function is to convert the data table name in the database specification 1 1 5 into the database object 1 3 0 , and the information such as the block name in each data table is the attribute of the database object 130. Therefore, when the programmer needs to design a program for accessing the data in the database 10 in the object orientation program, the program name, field name (〇bject.fieldK) can be inserted. The code is to be reached. For example, if you want to set the value of a field (represented by the name of the database object "), the value of the 'block name 〃 can be written by , the database object name · field name = value (ObjeCt.neld = Value; T code to achieve. In addition, because the database object 1 3 0 is in the form of objects in the object oriented program 14 4 program The module 150 is used, so that the program guide can fully utilize the features of the integrated development environment (IDE) of the program 140. That is, the programmer only needs to be in the object orientation program 140. When inputting, the name of the database object, and the code of the database, the decimal point, the name of the database object will appear immediately after the decimal point, and the available menus will be pulled down. The programmer enters the time and effort of the code and avoids errors caused by typing. As mentioned above, when the programmer wants to access the data in the database 1 1 0 in the object orientation program This is achieved by dropping the > library object 130 in the object orientation program i 40. That is, the object orientation program 14 is in the middle (please read the back note and then fill out this page)
A7 B7 1283359 - —--—^ 五、發明説明() '、了匕括具有各種不同功能之至少一個程式模組1 $ 〇外, 更包括 > 料庫物件1 3 0,藉以使物件導向程式140中可進 仃資料的初步設定工作。此外,物件導向程式1 40中更包 括資料庫存取引擎16〇,藉以進行資料的實際處理動作。 亦即,資料庫存取引擎160之功能為一萬用副程式,其僅 在本發明之系統實施之初建立即可,以後即可永久使用。 备物件導向程式丨4〇中插入數行與資料庫物件丨3 〇相關之 程式碼後’最後必定會以呼叫資料庫存取引擎丨6〇的方式 來實際執行資料庫1 1 〇中的資料之存取工作。 上述資料庫存取引擎160可具有結構化查詢語言之所 有功能。例如,資料庫存取引擎16〇可具有異動開始 (TransBegin)與異動結束(丁ransEND)之功能。此異動開始與 異動結束之功能為存取資料庫的資料之必要功能。如此, 當停電或當機時,客戶端與資料庫u〇端的資料仍可維持 一致性。此外,本發明中的資料庫存取引擎16〇中亦具有 插入(Insert)、修改(Update)、刪除(Delete)、以及載入 等功能。因此,本發明中的資料庫存取引擎丨6〇中之部分 程式可如下述: DB.TransBeginA7 B7 1283359 - —---^ V. Invention Description () ', including at least one program module with different functions 1 $ ,, including > library object 1 3 0, in order to make the object oriented The preliminary setting work of the data can be entered in the program 140. In addition, the object guiding program 140 further includes a data inventory taking engine 16 for performing the actual processing of the data. That is, the function of the data inventory taking engine 160 is a 10,000-use sub-program, which can be established only at the beginning of the implementation of the system of the present invention, and can be used permanently in the future. After the object-oriented program inserts several lines and the code associated with the database object 丨3 ', the data in the database 1 1 实际 will be actually executed by calling the data inventory engine 丨 6〇. Access work. The data inventory fetch engine 160 described above can have all of the functionality of a structured query language. For example, the data inventory retrieval engine 16 can have the function of TransBegin and Transaction End (Dings ransEND). The function of the start of the transaction and the end of the transaction is a necessary function for accessing the data of the database. In this way, when the power is cut off or down, the data of the client and the database can remain consistent. In addition, the data inventory taking engine 16 in the present invention also has functions of Insert, Update, Delete, and Load. Therefore, some of the programs in the data inventory engine of the present invention can be as follows: DB.TransBegin
Objectl.attrl=valuel Objectl.attr2 = value2 DB.Load(Objectl) 本紙張尺度適用中國國家標準(CNS)A4規格(210X297公釐) (fb閲讀背面之注意事項再場寫本頁) 經濟部智慧財產局員工消費合作社印製Objectl.attrl=valuel Objectl.attr2 = value2 DB.Load(Objectl) This paper size applies to China National Standard (CNS) A4 specification (210X297 mm) (fb read the back of the note and write this page again) Ministry of Economics intellectual property Bureau employee consumption cooperative printing
1283359五、發明説明() A7 B7 DB . Insert(Obj ect2) DB.Update(0bject2) 經濟部智慧財產局員工消費合作社印製 DB.Delete(Object) DB.TransEnd 〇 所以’藉由在物件導向程式140中使用資料庠物件 130,資料庫存取引擎160可於程式執行期間進行結構性查 詢語言之工作,而不需在物件導向程式丨4 〇中撰寫冗長、 不易維護、且又容易出錯的結構性查詢語言程式碼,而仍 可在物件導向程式140中存取資料庫1丨〇中的資料。 本發明之在物件導向程式中存取資料庫之系統可適用 於各種不同的關聯式資料庫,例如〇racle、DB2、或SqL Server等。此外,本發明之系統中的物件導向程式可以各 種不同的物件導向程式語言來撰寫,例如VB或C + +等。 此外’發明人將本發明之系統運用於實際之程式開發後, 可獲致之實際效益如下,首先,因程式錯誤而導致的損失 約減少新台幣300,000元/每支程式。再者,程式之開發時 間約減少2人日/每支程式,即約減少習知的丨/5 (習知程式 之開發時間約為1 〇人日/每支程式)。 綜合上述,本發明之一優點為提供一種在物件導向程 式中存取資料庫之系統,可用以簡化在物件導向程式中存 本紙張尺度適财關家標準(CNS)A4規格(21GX297公楚) ' ----^ (請先閲讀背面之注意事項再場寫本頁)1283359 V. Invention description () A7 B7 DB . Insert (Obj ect2) DB.Update (0bject2) Ministry of Economic Affairs Intellectual Property Bureau employee consumption cooperative printed DB.Delete (Object) DB.TransEnd 〇 so 'by object-oriented program Using the data object 130 in the 140, the data inventory retrieval engine 160 can perform the structured query language during the execution of the program without writing a lengthy, unmaintainable, and error-prone structure in the object orientation program. The language code is queried, and the data in the database 1 can still be accessed in the object orientation program 140. The system for accessing a database in an object-oriented program of the present invention can be applied to various related databases such as 〇racle, DB2, or SqL Server. In addition, the object orientation program in the system of the present invention can be written in a variety of different object oriented programming languages, such as VB or C++. In addition, the actual benefits that the inventors have after applying the system of the present invention to actual program development are as follows. First, the loss due to a program error is reduced by about NT$300,000 per program. Furthermore, the development time of the program is reduced by about 2 person/per program, that is, about 习/5 (the development time of the conventional program is about 1 day/per program). In summary, one of the advantages of the present invention is to provide a system for accessing a database in an object-oriented program, which can be used to simplify the paper-based standard (CNS) A4 specification (21GX297) in the object-oriented program. ' ----^ (Please read the notes on the back and write this page again)
、\一一口 線, \ one mouth line
1283359 … 五、發明說明() 取資料庫所需撰寫之程式碼。 本發明之另一優點為提供一種在物件導向程式中存取 資料庫之系統,可用以減輕維護程式碼所需花費之精力。 本發明之再一優點為提供一種在物件導向程式中存取 資料庫之系統,可用以降低程式出錯之風險與可能性。 如熟悉此技術之人員所瞭解的,以上所述僅為本發明 之較佳實施例而已,並非用以限定本發明之申請專利範 圍;凡其它未脫離本發明所揭示之精神下所完成之等效改 變或修飾,均應包含在下述之申請專利範圍内。 圖式簡單說明: 本發明的較佳實施例已於前述之說明文字中辅以下歹,J 圖示做更詳細的闡述,其中: 第1圖係繪示習知在物件導向程式中存取資料庫之系 統之示意圖;以及 第2圖係繪示本發明之一較佳實施例之在物件導向程 式中存取資料庫之系統之示意圖。 圈號對照說明: 1 〇 資料庫 15 資料庫規格 2 5 結構化查詢語言程式瑪4 0 ·物件導向程式 50 程式模組 (貧知閲讀背面之注意事項再場寫本頁)1283359 ... V. Description of the invention () Take the code required to write the database. Another advantage of the present invention is to provide a system for accessing a database in an object-oriented program that can be used to reduce the effort required to maintain the code. Still another advantage of the present invention is to provide a system for accessing a database in an object-oriented program that can be used to reduce the risk and likelihood of program errors. The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention as defined by the present invention; Modifications or modifications are intended to be included in the scope of the claims below. Brief Description of the Drawings: The preferred embodiment of the present invention has been supplemented by the following description of the text, and the J diagram is explained in more detail, wherein: Figure 1 shows the conventional access to data in the object-oriented program. A schematic diagram of a system of libraries; and FIG. 2 is a schematic diagram of a system for accessing a database in an object oriented program in accordance with a preferred embodiment of the present invention. The circle number comparison instructions: 1 〇 database 15 database specifications 2 5 structured query language program 4 0 · object-oriented program 50 program module (poor reading on the back of the note)
、一· 線Line
經濟部智慧財產局員工消費合作社印製 1 1 5資料庫規 130資料庫物 1 5 0程式模組 件 11 0資料庫 120產生器 140物件導向程式 160資料庫存取引擎 10 本紙張尺度適用中國國家標準(CNS)A4規格(210X297公楚)Ministry of Economic Affairs Intellectual Property Bureau Staff Consumer Cooperatives Printing 1 1 5 Database Specifications 130 Databases 1 50 Program Modules 11 0 Database 120 Generators 140 Object Orientation Program 160 Data Stock Picking Engine 10 Paper Size Applicable to China Standard (CNS) A4 specification (210X297 public Chu)
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91122436A TWI283359B (en) | 2002-09-27 | 2002-09-27 | System for accessing database in object-oriented program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91122436A TWI283359B (en) | 2002-09-27 | 2002-09-27 | System for accessing database in object-oriented program |
Publications (1)
Publication Number | Publication Date |
---|---|
TWI283359B true TWI283359B (en) | 2007-07-01 |
Family
ID=39428156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW91122436A TWI283359B (en) | 2002-09-27 | 2002-09-27 | System for accessing database in object-oriented program |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI283359B (en) |
-
2002
- 2002-09-27 TW TW91122436A patent/TWI283359B/en not_active IP Right Cessation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8140468B2 (en) | Systems and methods to extract data automatically from a composite electronic document | |
US9613115B2 (en) | Generating programs based on input-output examples using converter modules | |
US8972930B2 (en) | Generating text manipulation programs using input-output examples | |
US6279018B1 (en) | Abbreviating and compacting text to cope with display space constraint in computer software | |
US5732262A (en) | Database definition language generator | |
CN107145480B (en) | Method for compiling XBRL report based on Word | |
US20040123101A1 (en) | Computer-implemented system and method for managing data integrity validation rules | |
US20070255694A1 (en) | Document-drafting system using document components | |
WO2015009297A1 (en) | Systems and methods for extracting table information from documents | |
JP2006178946A (en) | File format, method and computer program product for representing workbook | |
WO2016060552A1 (en) | System generator module for electronic document and electronic file | |
Currim et al. | Adding temporal constraints to XML schema | |
CN116090416B (en) | Standard writing method, system, equipment and medium based on standard knowledge graph | |
Raymond et al. | Markup reconsidered | |
CN113703777A (en) | Code generation method and device based on database table, storage medium and equipment | |
CN112668281A (en) | Automatic corpus expansion method, device, equipment and medium based on template | |
TWI283359B (en) | System for accessing database in object-oriented program | |
Bell et al. | Towards everyday language information retrieval systems via minicomputers | |
JPH0133866B2 (en) | ||
US20090138461A1 (en) | Method for discovering design documents | |
CN112949274A (en) | Document data entry method and system | |
US7865489B2 (en) | System and computer program product for discovering design documents | |
Anderl | Some Reflections on the Database of Medieval Chinese Texts as a Multi-Purpose Tool for Research, Teaching, and International Collaboration | |
JP3345522B2 (en) | Program development support device using data item parts | |
Dimitriadis et al. | Designing linguistic databases: A primer for linguists |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MK4A | Expiration of patent term of an invention patent |