KR100519453B1 - Apparatus and method for controlling work of database used in object-oriented application - Google Patents

Apparatus and method for controlling work of database used in object-oriented application Download PDF

Info

Publication number
KR100519453B1
KR100519453B1 KR10-2002-0081825A KR20020081825A KR100519453B1 KR 100519453 B1 KR100519453 B1 KR 100519453B1 KR 20020081825 A KR20020081825 A KR 20020081825A KR 100519453 B1 KR100519453 B1 KR 100519453B1
Authority
KR
South Korea
Prior art keywords
work
database
name
data
query data
Prior art date
Application number
KR10-2002-0081825A
Other languages
Korean (ko)
Other versions
KR20040055200A (en
Inventor
이재목
Original Assignee
유징테크주식회사
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 유징테크주식회사 filed Critical 유징테크주식회사
Priority to KR10-2002-0081825A priority Critical patent/KR100519453B1/en
Publication of KR20040055200A publication Critical patent/KR20040055200A/en
Application granted granted Critical
Publication of KR100519453B1 publication Critical patent/KR100519453B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

본 발명은 데이터베이스 작업제어장치 및 방법에 관한 것으로서, 본 발명은 응용프로그램으로부터 데이터베이스 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하는 제1과정과, 제1과정에서 작업요청데이터가 생성되면, 작업할 데이터베이스로의 접근을 가능하도록 하는 쿼리데이터에 작업요청데이터의 모든 정보를 삽입하는 제2과정과, 제2과정에서 쿼리데이터에 작업요청데이터의 모든 정보가 삽입되면, 그 쿼리데이터에 의거하여 데이터베이스를 통해 작업하고자 하는 작업유형을 식별하는 제3과정과, 제3과정에서 작업유형이 식별되면, 식별된 작업유형에 해당되는 쿼리문을 생성한 후 생성된 쿼리문을 이용하여 데이터베이스를 작업 처리하는 제4과정과, 제4과정에서 데이터베이스를 이용한 작업처리가 완료되면, 그 결과를 응용프로그램으로 제공하는 제5과정으로 이루어지는 것을 특징으로 한다. 본 발명에 의하면, 응용프로그램으로부터의 데이터베이스 작업명령(예컨대, 데이터 삭제, 수정, 삽입, 검색 등)발생시, 그 작업명령에 따른 쿼리문을 제공하여 해당 쿼리문을 통해 데이터베이스를 작업할 수 있도록 지원함으로써 모든 응용프로그램이 데이터베이스 프레임워크의 변경에 관계없이 데이터베이스를 작업할 수 있도록 하는 효과가 있다.The present invention relates to an apparatus and method for controlling a database operation. The present invention relates to a first step of generating work request data based on the work command when a work command for a database work is generated from an application program. When the work request data is generated, the second step of inserting all the information of the work request data into the query data to enable access to the database to work, and in the second step if all the information of the work request data is inserted into the query data In the third step of identifying a work type to be worked through the database based on the query data, and if the work type is identified in the third step, a query statement generated after generating a query statement corresponding to the identified work type The fourth process of processing the database using the database, and the process of using the database in the fourth process is completed. Characterized in that the result made of a fifth process of providing the application. According to the present invention, when a database work command (eg, data deletion, modification, insertion, retrieval, etc.) from an application program is generated, a query statement according to the work command is provided to support the operation of the database through the corresponding query statement. This has the effect of allowing all applications to work with the database regardless of changes in the database framework.

Description

객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어장치 및 방법{Apparatus and method for controlling work of database used in object-oriented application}Apparatus and method for controlling work of database used in object-oriented application}

본 발명은 데이터베이스 작업제어장치 및 방법에 관한 것으로서, 보다 상세하게는 객체지향 응용프로그램에서 데이터베이스를 이용한 작업 수행시, 응용프로그램에서의 직접적인 쿼리문 생성없이 데이터베이스에 접근하여 원하는 작업을 처리할 수 있도록 한 데이터베이스 작업제어장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for controlling a database job, and more particularly, to performing a job using a database in an object-oriented application program so as to be able to access a database and process a desired job without generating a direct query statement in the application program. It relates to a database job control apparatus and method.

일반적으로, 응용프로그램은 데이터베이스에 접근하여 원하는 작업(예컨대, 데이터 삭제, 데이터 삽입, 데이터 수정, 데이터 검색 등)을 수행하고자 할 경우, 직접 쿼리(Query)문을 작성한 후 작성된 쿼리문을 이용하여 데이터베이스를 작업 처리하는 일련의 과정을 수행하여야만 하였다.In general, when an application program wants to access a database and perform a desired operation (for example, deleting data, inserting data, modifying data, or retrieving data), the application program directly writes a query statement and then uses the created query statement. We had to carry out a series of processes.

이와 같이, 응용프로그램에서 직접 쿼리문을 작성하여 데이터베이스를 작업하는 방식은 데이터베이스 프레임워크 변경시, 그 쿼리문을 가지는 응용프로그램을 수정해야만 한다.As such, the way of working with a database by writing query statements directly in the application program must modify the application program having the query statement when the database framework changes.

그 결과, 데이터베이스 프레임워크 변경시마다 쿼리문을 가지는 응용프로그램을 수정해야 함으로써 응용프로그램의 많은 유지-보수량을 유발시키고, 잦은 응용프로그램의 수정으로 인해 응용프로그램의 고유한 특성을 저하시킬 수 있으며, 또한, 전체 시스템의 안정성 문제를 야기시킬 수 있다.As a result, it is necessary to modify the application program with the query statement every time the database framework is changed, which leads to a large amount of maintenance and maintenance of the application, and the inherent characteristics of the application may be degraded due to frequent application changes. This may cause stability problems of the whole system.

본 발명은 이러한 문제점을 해결하기 위해 안출된 것으로서, 객체지향 응용프로그램에서 데이터베이스를 이용한 작업 수행시, 별도의 쿼리문을 제공하여 데이터베이스를 이용한 작업을 수행할 수 있도록 한 데이터베이스 작업제어장치 및 방법을 제공하는데 그 목적이 있다.The present invention has been made to solve such a problem, and provides a database job control apparatus and method for performing a task using a database by providing a separate query statement when performing the task using a database in an object-oriented application program. Its purpose is to.

상기 목적을 달성하기 위한 본 발명에 따른 데이터베이스 작업제어장치는 응용프로그램으로부터 데이터베이스 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하여 쿼리데이터 제공부로 전달함으로써 리턴되는 쿼리데이터를 작업처리부로 전달하는 작업요청부; 작업요청부로부터 작업요청데이터가 전달되면, 작업할 데이터베이스로의 접근을 가능하도록 하는 쿼리데이터에 접근요청데이터의 모든 정보를 삽입한 후 그 쿼리데이터를 작업요청부로 전달하는 쿼리데이터 제공부; 작업요청부로부터 쿼리데이터를 입력받아 데이터베이스를 통해 작업하고자 하는 작업유형을 인지하고, 그 작업유형에 따른 쿼리문을 생성하여 생성된 쿼리문을 통해 데이터베이스를 작업처리하는 작업처리부; 및 작업처리부의 작업완료에 따른 결과를 응용프로그램으로 제공하는 결과제공부를 포함하여 구성되는데 그 특징이 있다.The database job control apparatus according to the present invention for achieving the above object generates a job request data based on the job command when the job command for the database job from the application program, the query data returned by passing to the query data provider Work request unit for transmitting to the work processing unit; When the work request data is transmitted from the work request unit, the query data providing unit for inserting all the information of the access request data into the query data to enable access to the database to work and delivers the query data to the work request unit; A job processing unit which receives the query data from the job requesting unit, recognizes a job type to be worked through the database, and generates a query statement according to the job type and processes the database through the generated query statement; And a result providing unit for providing a result according to the work completion of the work processing unit to the application program.

또한, 상기 목적을 달성하기 위한 본 발명에 따른 데이터베이스 작업제어방법은 응용프로그램으로부터 데이터베이스 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하는 제1과정과, 제1과정에서 작업요청데이터가 생성되면, 작업할 데이터베이스로의 접근을 가능하도록 하는 쿼리데이터에 작업요청데이터의 모든 정보를 삽입하는 제2과정과, 제2과정에서 쿼리데이터에 작업요청데이터의 모든 정보가 삽입되면, 그 쿼리데이터에 의거하여 데이터베이스를 통해 작업하고자 하는 작업유형을 식별하는 제3과정과, 제3과정에서 작업유형이 식별되면, 식별된 작업유형에 해당되는 쿼리문을 생성한 후 생성된 쿼리문을 이용하여 데이터베이스를 작업 처리하는 제4과정과, 제4과정에서 데이터베이스를 이용한 작업처리가 완료되면, 그 결과를 응용프로그램으로 제공하는 제5과정을 포함하여 이루어지는데 그 특징이 있다.In addition, the database job control method according to the present invention for achieving the above object is a first step of generating a job request data based on the job command when a job command for a database job occurs from the application program, and the first step In the second step of inserting all the information of the work request data into the query data to enable access to the database to work when the work request data is generated in step 2, and inserting all the information of the work request data into the query data in the second step If the work type is identified in the third step and the work type is identified in the third step, the generated query statement is generated after generating a query statement corresponding to the identified work type. The fourth process of processing a database using a statement, and the fourth process of processing a database using a statement is completed. If, makin comprises a fifth process of providing the result to the application, there is the feature.

이하, 첨부된 도면에 의거하여, 본 발명에 따른 데이터베이스 작업제어장치 및 방법에 대한 바람직한 실시예를 상세하게 설명한다.Hereinafter, on the basis of the accompanying drawings, a preferred embodiment of a database job control apparatus and method according to the present invention will be described in detail.

도 1은 본 발명의 일 실시예에 따른 데이터베이스 작업제어장치에 대한 개략적인 블록도이다. 도 1을 참조하면, 본 발명에 따른 데이터베이스 작업제어장치는 작업요청부(100), 쿼리데이터 제공부(110), 작업처리부(120), 결과제공부(130) 및 데이터베이스(140)를 포함하여 구성된다.1 is a schematic block diagram of a database job control apparatus according to an embodiment of the present invention. Referring to FIG. 1, the database job control apparatus according to the present invention includes a job request unit 100, a query data provider 110, a job processor 120, a result provider 130, and a database 140. It is composed.

작업요청부(100)는 응용프로그램으로부터 데이터베이스(140)의 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하여 쿼리데이터 제공부(110)로 전달한다.When the work request unit 100 generates a work command for the work of the database 140 from the application program, the work request data is generated and transmitted to the query data providing unit 110 based on the work command.

이때, 작업요청데이터에는 작업하고자 하는 데이터베이스에 대한 이름정보인 데이터베이스명과, 그 데이터베이스에 포함된 테이블들 중 작업하고자 하는 테이블(이하, 작업테이블이라 함)에 대한 이름정보인 테이블명(즉, 작업테이블명)과, 해당 작업테이블을 이루는 기본항목들에 대한 이름정보인 기본항목명과 각 기본항목명에 대한 값(value)인 기본항목값들로 이루어진 기본항목그룹과, 해당 작업테이블을 바탕으로 작업하고자 하는 작업유형이 포함된다.At this time, the work request data includes a database name which is name information of a database to be worked on, and a table name (ie, work table) which is name information on a table to be worked among (hereinafter, referred to as a work table) among tables included in the database. Name), a basic item group consisting of basic item names that are name information for basic items that make up the work table, and basic item values that are values for each basic item name, and the work table to be worked on The type of work is included.

여기서, 작업유형으로는 작업테이블을 바탕으로 소정의 기본항목명에 대한 기본항목값의 삭제를 위한 삭제(delete)작업유형과, 해당 작업테이블에 새로운 항목명 및 그 항목명에 대한 항목값을 삽입하기 위한 삽입(insert)작업유형과, 작업테이블을 바탕으로 소정 기본항목명에 대한 기본항목값을 새로운 항목값으로 수정하기 위한 수정(update)작업유형과, 작업테이블로부터 소정 기본항목명에 대한 기본항목값을 검색하기 위한 검색(find)작업유형 등이 있다.Here, the job type is a delete job type for deleting a base item value for a predetermined base item name based on the work table, and an insert for inserting a new item name and an item value for the item name into the work table. (insert) an operation type, an update operation type for modifying a base item value for a given base item name to a new item value based on the job table, and retrieving a base item value for a given base item name from the job table. For example, a search task type.

한편, 작업유형이 삽입작업유형일 경우, 작업요청데이터에는 작업테이블에 새롭게 삽입하고자 하는 항목명(이하, 작업대상항목명이라 함)과 그 항목명에 대한 항목값(이하, 작업대상항목값이라 함)으로 이루어진 작업대상항목그룹이 더 포함된다.On the other hand, when the job type is an insert job type, the job request data includes an item name (hereinafter referred to as the job target item name) to be newly inserted into the job table and an item value for the item name (hereinafter referred to as the job target item value). The work item group is further included.

또한, 작업유형이 수정작업유형일 경우, 작업요청데이터에는 작업테이블을 이루는 기본항목값들 중 수정하고자 하는 기본항목값에 대한 기본항목명(이하, 작업대상항목명이라 함)과 그 기본항목명에 대한 이전 기본항목값을 대체할 새로운 항목값(이하, 작업대상항목값이라 함)으로 이루어진 작업대상항목그룹이 더 포함된다.In addition, when the work type is a modified work type, the work request data includes a basic item name (hereinafter referred to as a work target item name) for the basic item value to be modified among the basic item values constituting the work table and the previous default for the basic item name. The work item group further includes a new item value (hereinafter, referred to as a work item item value) to replace the item value.

쿼리데이터 제공부(110)는 작업할 데이터베이스(140)로의 접근을 가능하도록 하는 쿼리데이터(query data)를 복수 개 포함하는 쿼리데이터그룹을 관리한다.The query data provider 110 manages a query data group including a plurality of query data for enabling access to the database 140 to be worked on.

도 2는 쿼리데이터의 구성예를 나타낸 도면으로서, 도 2를 참조하면, 쿼리데이터는 현재 쿼리데이터의 작업지원가능여부를 기록하기 위한 플래그필드(201)와, 데이터베이스명을 기록하기 위한 패키지네임필드(202)와, 작업테이블명을 기록하기 위한 테이블네임필드(203)와, 작업테이블을 바탕으로 작업하고자 하는 작업유형을 기록하기 위한 작업유형필드(204)와, 작업테이블을 이루는 기본항목들 중 작업하고자 하는 항목들에 대한 항목명 및 그 항목명에 대한 항목값을 기록하기 위한 작업대상항목그룹필드(205)와, 작업테이블을 이루는 기본항목들에 대한 기본항목명 및 각 기본항목명에 대한 기본항목값을 기록하기 위한 기본항목그룹필드(206)를 포함한다.FIG. 2 is a diagram showing an example of the configuration of query data. Referring to FIG. 2, the query data includes a flag field 201 for recording whether the current query data can be supported for work, and a package name field for recording a database name. 202, a table name field 203 for recording the work table name, a work type field 204 for recording the work type to be worked on the work table, and basic items constituting the work table. Work item group field 205 for recording the item name for the item to be worked on and the item value for the item name, the basic item name for the basic items constituting the work table, and the basic item value for each basic item name. A basic item group field 206 for recording.

도 3a는 기본항목그룹필드(206)의 구조를 나타낸 예시도로서, 도 3a를 참조하면, 기본항목그룹필드(206)에는 작업테이블을 이루는 복수의 기본항목들에 대한 기본항목명과 각 기본항목명에 대한 기본항목값이 교대로 기록된다. 예컨대, 짝수번째 인덱스(즉, 인덱스0, 인덱스2,..,인덱스n)에는 기본항목명이 기록되고, 홀수번째 인덱스(즉, 인덱스1, 인덱스3,..,인덱스n+1)에는 짝수번째 인덱스에 기록된 각 기본항목명에 대한 기본항목값들이 기록된다.FIG. 3A is an exemplary view showing the structure of the basic item group field 206. Referring to FIG. 3A, the basic item group field 206 includes basic item names and a plurality of basic item names for a plurality of basic items forming a work table. The default item values are recorded alternately. For example, a base item name is recorded at an even index (ie, index 0, index 2, .., index n), and an even number at an odd index (ie, index 1, index 3, .., index n + 1). Basic item values are recorded for each basic item name recorded in the index.

도 3b는 삽입작업유형에 따른 작업대상항목그룹필드(205)의 구조를 나타낸 예시도로서, 도 3b를 참조하면, 작업대상항목그룹필드(205)에는 작업테이블에 새롭게 삽입하고자 하는 항목들에 대한 항목명(즉, 작업대상항목명)과 각 작업대상항목명에 대한 항목값(즉, 작업대상항목값)이 교대로 기록된다.3B is an exemplary view showing a structure of a work target item group field 205 according to an insertion task type. Referring to FIG. 3B, work target item group field 205 includes items to be newly inserted into a work table. The item name (ie work item name) and the item value (ie work item value) for each work item name are recorded alternately.

도 3c는 수정작업유형에 따른 작업대상항목그룹필드(205)의 구조를 나타낸 예시도로서, 도 3c를 참조하면, 작업대상항목그룹필드(205)에는 작업테이블을 이루는 기본항목값들 중 수정하고자 하는 기본항목값에 대한 기본항목명(즉, 작업대상항목명)과 상기 기본항목값을 대체할 새로운 항목값(즉, 작업대상항목값)이 교대로 기록된다.3C is an exemplary view showing a structure of a work target item group field 205 according to a corrected work type. Referring to FIG. 3C, a work target item group field 205 is intended to be modified among basic item values forming a work table. The basic item name (ie, work item name) for the basic item value and the new item value (that is, work item value) to replace the basic item value are alternately recorded.

예컨대, 제3기본항목값과 제4기본항목값을 수정할 경우, 인덱스0에는 수정하고자 하는 제3기본항목값의 제3기본항목명이 제1작업대상항목명으로 설정되어 기록되고, 인덱스1에는 제3기본항목값을 대체할 새로운 항목값이 제1작업대상항목값으로 설정되어 기록된다, 마찬가지로, 인덱스2 및 인덱스3에도 제4기본항목값에 대한 작업대상항목명 및 작업대상항목값이 각각 기록된다.For example, when the third basic item value and the fourth basic item value are modified, the third basic item name of the third basic item value to be modified is set as the first work item item name in the index 0, and the third basic item value is recorded in the index 1 and the third basic item value. A new item value to replace the base item value is set and recorded as the first work item value. Similarly, the work target item name and work target item value for the fourth basic item value are also recorded in the index 2 and the index 3, respectively.

한편, 삭제작업유형 및 검색작업유형에 대하여, 작업대상항목그룹필드(205)에는 작업대상항목명들 및 각 작업대상항목명에 대한 작업대상항목값들이 기록되지 않는다.On the other hand, for the deletion job type and the retrieval job type, the job target item group fields 205 do not record the job target item names and the job target item values for each job target item name.

쿼리데이터 제공부(110)는 쿼리데이터그룹을 관리하며, 작업요청부(100)로부터 작업요청데이터가 전달되면, 쿼리데이터그룹에 포함된 복수의 쿼리데이터 각각에 대하여 작업지원가능여부를 판단한다. 즉, 각 쿼리데이터의 플래그필드(201)에 기록된 정보에 의거하여 해당 쿼리데이터가 현재 타 응용프로그램으로부터의 데이터베이스(140) 작업명령에 따른 작업을 지원하고 있는지 여부를 판단한다.The query data providing unit 110 manages the query data group. When the work request data is transmitted from the work request unit 100, the query data providing unit 110 determines whether work support is possible for each of the plurality of query data included in the query data group. That is, based on the information recorded in the flag field 201 of each query data, it is determined whether the corresponding query data currently supports a job according to the database 140 work command from another application program.

그리고, 소정의 쿼리데이터가 작업지원 가능한 것으로 판단되면, 쿼리데이터 제공부(110)는 작업요청데이터에 포함된 모든 정보를 해당 쿼리데이터의 각 필드에 매칭시켜 삽입함으로써, 작업요청데이터의 모든 정보가 포함된 쿼리데이터(이하, 작업보조-쿼리데이터라 함)를 도출한다.And, if it is determined that the predetermined query data can be supported by the job, the query data provider 110 inserts all the information included in the job request data into each field of the corresponding query data, thereby inserting all the information of the job request data. Derived query data (hereinafter referred to as work assistant-query data) is derived.

한편, 쿼리데이터 제공부(110)는 쿼리데이터그룹에 포함된 모든 쿼리데이터의 작업지원가능여부를 판단한 결과, 모든 쿼리데이터가 작업지원 불가능한 것으로 판단되면, 새로운 쿼리데이터를 생성하여 쿼리데이터그룹에 저장하고 해당 새로운 쿼리데이터의 각 필드에 작업요청데이터에 포함된 모든 정보를 삽입함으로써 작업보조-쿼리데이터를 도출한다.On the other hand, the query data providing unit 110 determines whether all the query data included in the query data group can support the work, if it is determined that all the query data is not available for work, generates new query data and stores it in the query data group The work assistant-query data is derived by inserting all the information contained in the work request data into each field of the new query data.

이후, 쿼리데이터 제공부(110)는 도출된 작업보조-쿼리데이터를 작업요청데이터에 추가하여 작업요청부(100)로 전달한다.Thereafter, the query data providing unit 110 adds the derived work assistant-query data to the work request data and transmits it to the work request unit 100.

이때, 작업요청부(100)는 쿼리데이터 제공부(110)로부터 작업보조-쿼리데이터가 추가된 작업요청데이터를 입력받아 작업처리부(120)로 전달한다.In this case, the work request unit 100 receives the work request data added with the work assistant-query data from the query data providing unit 110 and transmits the work request data to the work processing unit 120.

작업처리부(120)는 작업요청부(100)로부터 작업보조-쿼리데이터가 추가된 작업요청데이터를 입력받아, 해당 작업요청데이터에 추가된 작업보조-쿼리데이터를 분석하여 데이터베이스(140)를 바탕으로 이루어질 작업유형을 식별하고, 식별된 작업유형에 따른 쿼리문을 생성하여 그 쿼리문을 이용한 데이터베이스(140) 작업을 처리한다.The work processor 120 receives work request data to which work assistant-query data is added from the work request unit 100, and analyzes work assistant-query data added to the work request data based on the database 140. Identifies the type of work to be made, generates a query statement according to the identified work type, and processes the work of the database 140 using the query statement.

여기서, 작업처리부(120)가 작업유형에 따라 생성하는 쿼리문에 대하여 좀더 상세히 설명하면 다음과 같다.Here, the query processing generated by the job processor 120 according to the job type will be described in more detail as follows.

먼저, 작업유형이 데이터베이스(140)에 포함된 테이블들 중 작업하고자 하는 테이블(즉, 작업테이블)을 이루는 기존의 기본항목들 중 소정 기본항목에 대한 기본항목값의 삭제를 위한 삭제작업유형일 경우, 작업처리부(120)는 작업보조-쿼리데이터에 포함된 작업테이블명과, 기본항목그룹에 의거하여 삭제-쿼리문을 생성한다.First, when the work type is a delete operation type for deleting a basic item value for a predetermined basic item among the existing basic items forming a table (that is, a work table) among the tables included in the database 140, The job processing unit 120 generates a delete-query statement based on the work table name included in the work assistant-query data and the basic item group.

예컨대, 작업처리부(120)는 [delete from 작업테이블명 where 제1기본항목명 = '제1기본항목값' and 제2기본항목명 = '제2기본항목값']으로 이루어지는 삭제-쿼리문을 생성한다. 이때, 삭제-쿼리문은 작업테이블에 위치하고 있는 제1기본항목명에 해당되는 제1기본항목값과 제2기본항목명에 해당되는 제2기본항목값의 삭제를 나타낸다.For example, the job processor 120 generates a delete-query statement consisting of [delete from work table name where first basic item name = 'first basic item value' and second basic item name = 'second basic item value']. . At this time, the delete-query statement indicates the deletion of the first basic item value corresponding to the first basic item name located in the work table and the second basic item value corresponding to the second basic item name.

이후, 작업처리부(120)는 상기 삭제-쿼리문을 이용하여 데이터베이스(140)내에 위치한 작업테이블로부터 제1기본항목명과 제2기본항목명 각각에 대한 항목값인 제1기본항목값과 제2기본항목값을 삭제한다.Thereafter, the job processing unit 120 uses the delete-query statement to determine the first basic item name and the second basic item which are item values for each of the first basic item name and the second basic item name from the work table located in the database 140. Delete the value.

한편, 작업유형이 기존의 작업테이블에 새로운 항목명(즉, 작업대상항목명)과 그 항목명에 대한 항목값(즉, 작업대상항목값)의 삽입을 위한 삽입작업유형일 경우, 작업처리부(120)는 작업보조-쿼리데이터에 포함된 작업테이블명, 기본항목그룹 및 작업대상항목그룹에 의거하여 삽입-쿼리문을 생성한다.On the other hand, if the job type is an insert job type for inserting a new item name (ie, a work target item name) and an item value (that is, work target item value) for the existing work table, the work processor 120 An insert-query statement is created based on the work table name, basic item group, and work target item group included in the sub-query data.

예컨대, 작업처리부(120)는 [insert into 작업테이블명(제1기본항목명, 제2기본항목명, 제1작업대상항목명) value('제1기본항목값', '제2기본항목값', '제1작업대상항목값')]으로 이루어지는 삽입-쿼리문을 생성한다. 여기서, 삽입-쿼리문은 작업테이블을 이루는 기존의 제1기본항목명 및 제2기본항목명에 연속하여 새로운 제1작업대상항목명과 해당 제1작업대상항목명에 대한 제1작업대상항목값의 삽입을 나타낸다.For example, the job processing unit 120 inserts [insert into a work table name (first basic item name, second basic item name, first working object item name) value ('first basic item value', 'second basic item value', ' First-entry item value ')] to generate an insert-query statement. Here, the insert-query statement indicates the insertion of the new first target item name and the first target item value for the first target item name in succession to the existing first basic item name and the second basic item name forming the work table. .

이후, 작업처리부(120)는 상기 삽입-쿼리문을 이용하여 데이터베이스(140)의 해당 작업테이블에 새로운 항목명인 제1작업대상항목명과 해당 제1작업대상항목명에 대한 항목값인 제1작업대상항목값을 삽입한다.Thereafter, the job processing unit 120 uses the insert-query statement to generate a first work target item name, which is a new item name, and an item value for the first work target item name, in the corresponding work table of the database 140. Insert a value.

또한, 작업유형이 기존의 작업테이블에 위치한 기본항목들 중 소정의 기본항목에 대한 기본항목값을 새로운 항목값으로 수정하기 위한 수정작업유형일 경우, 작업처리부(120)는 작업보조-쿼리데이터에 포함된 작업테이블명, 기본항목그룹 및 작업대상항목그룹에 의거하여 수정-쿼리문을 생성한다.In addition, when the work type is a modified work type for modifying the basic item value for a predetermined basic item among the basic items located in the existing work table to a new item value, the work processor 120 is included in the work assistant-query data. Create a modify-query statement based on the work table name, basic item group, and target item group.

예컨대, 작업처리부(120)는 [update 작업테이블명 set 제1작업대상항목명 = '제1작업대상항목값', 제2작업대상항목명 = '제2작업대상항목값' where 제1기본항목명 = '제1기본항목값' and 제2기본항목명 = '제2기본항목값']으로 이루어지는 수정-쿼리문을 생성한다.For example, the work processing unit 120 may include [update work table name set first work target item name = 'first work target item value', second work target item name = 'second work target item value' where first basic item name = ' Create a modified-query statement consisting of 'first basic item value' and second basic item name = 'second basic item value'.

여기서, 도 3c를 도시된 바와 같이, 제1작업대상항목명 및 제2작업대상항목명은 수정하고자 하는 기본항목값들(예컨대, 제3기본항목값, 제4기본항목값)에 대한 기본항목명들(예컨대, 제3기본항목명, 제4기본항목명)을 각각 의미한다.Here, as shown in Figure 3c, the first target item name and the second target item name is the basic item name (for example, the third basic item value, the fourth basic item value) to be modified ( For example, each of the third basic item name and fourth basic item name).

따라서, 상기 수정-쿼리문은 작업테이블을 이루는 제1기본항목명 및 제1기본항목값과 제2기본항목명 및 제2기본항목값을 조건으로 하여, 제3기본항목명 및 제4기본항목명 각각에 대한 기본항목값들(즉, 제3기본항목값, 제4기본항목값)의 제1작업대상항목값 및 제2작업대상항목값으로의 수정을 나타낸다.Accordingly, the modified-query statement is performed on each of the third basic item name and the fourth basic item name, subject to the first basic item name and the first basic item value, the second basic item name, and the second basic item value constituting the work table. The modification of the basic item values (ie, the third basic item value, the fourth basic item value) to the first and second work item values.

이후, 작업처리부(120)는 상기 수정-쿼리문을 이용하여 해당 작업테이블에 위치한 제3기본항목명에 대한 제3기본항목값을 제1작업대상항목값으로 수정하고, 또한, 제4기본항목명에 대한 제4기본항목값을 제2작업대상항목값으로 수정한다.Thereafter, the job processing unit 120 modifies the third basic item value for the third basic item name located in the corresponding work table to the first working target item value by using the modified-query statement, and also applies the fourth basic item name to the fourth basic item name. The fourth basic item value for the second target item value is modified.

마지막으로, 작업유형이 작업테이블을 이루는 기본항목들 중 소정 개수의 기본항목들에 대한 기본항목값들의 검색을 위한 검색작업유형일 경우, 작업처리부(120)는 작업보조-쿼리데이터에 포함된 작업테이블명에 의거하여 검색-쿼리문을 생성한다.Lastly, when the work type is a search work type for searching basic item values for a predetermined number of basic items among the basic items constituting the work table, the work processing unit 120 includes a work table included in the work assistant-query data. Generate a search-query statement based on the command name.

예컨대, 작업처리부(120)는 [sp_columns@table_name = '작업테이블명']으로 이루어지는 검색-쿼리문을 생성한다. 이후, 작업처리부(120)는 상기 검색-쿼리문을 이용하여 작업테이블을 이루는 모든 항목들에 대한 항목명 및 각 항목명에 대한 항목값들을 검색한다. 이하에서는, 작업테이블로부터 검색된 항목명을 원본항목명이라 하고, 그 원본항목명에 대한 항목값을 원본항목값이라 한다.For example, the work processor 120 generates a search-query statement composed of [sp_columns @ table_name = 'work table name']. Thereafter, the job processor 120 searches for item names for all items constituting the job table and item values for each item name using the search-query statement. Hereinafter, the item name retrieved from the work table is called the original item name, and the item value for the original item name is called the original item value.

그리고, 작업처리부(120)는 데이터베이스(140)를 바탕으로 삭제/삽입/수정 작업을 완료하면, 해당 삭제/삽입/수정 작업의 정상처리완료에 따른 결과데이터를 결과제공부(130)로 전송하고, 검색작업을 완료하면, 작업테이블을 바탕으로 검색된 원본항목명들 및 각 원본항목명에 대한 원본항목값들을 포함하는 결과데이터를 결과제공부(130)로 전송한다.Then, when the processing unit 120 completes the deletion / insertion / modification task based on the database 140, the task processing unit 120 transmits the result data according to the normal processing completion of the corresponding deletion / insertion / modification task to the result providing unit 130. After completing the search operation, the result data including the original item names and the original item values for each original item name are transmitted to the result providing unit 130 based on the work table.

여기서, 도 4는 결과데이터의 구성예를 나타낸 도면으로서, 도 4를 참조하면, 결과데이터는 삭제/삽입/수정에 따른 결과를 기록하기 플래그필드(301)와, 검색에 따른 원본항목명들을 기록하기 위한 원본항목명그룹필드(302)와, 원본항목명그룹필드(302)에 기록된 원본항목명의 순서에 맞추어 각 원본항목명에 대한 원본항목값을 기록하기 위한 원본항목값그룹필드(303)로 구성된다.4 is a diagram showing an example of the configuration of the result data. Referring to FIG. 4, the result data is a flag field 301 for recording the result of deletion / insertion / modification and original item names for the search. The original item name group field 302 and the original item value group field 303 for recording the original item value for each original item name in the order of the original item name recorded in the original item name group field 302.

따라서, 작업처리부(120)는 삭제/삽입/수정작업을 정상적으로 완료하면, 결과데이터의 플래그필드(301)에 'true'를 기록하고, 그렇지 않으면 'false'를 기록함으로써 삭제/삽입/수정작업 각각에 따른 결과데이터를 도출한다. 한편, 작업처리부(120)는 검색작업에 따라 검색된 원본항목명들을 원본항목명그룹필드(302)에 기록하고, 각 원본항목명에 대한 원본항목값들을 원본항목값그룹필드(303)에 기록함으로써 결과데이터를 도출한다.Accordingly, when the delete / insert / modify operation is normally completed, the job processor 120 records 'true' in the flag field 301 of the result data, otherwise records 'false' to delete / insert / modify the respective operations. Derived result data according to Meanwhile, the job processor 120 records the original item names searched according to the search operation in the original item name group field 302, and records the result data by recording the original item values for each original item name in the original item value group field 303. To derive.

결과제공부(130)는 응용프로그램으로부터의 작업명령 발생에 따라 작업요청부(100)에서 생성되는 작업요청데이터를 입력받아 작업하고자 하는 데이터베이스명, 작업하고자 하는 작업테이블명, 기본항목명들 및 각 기본항목명에 대한 기본항목값들을 포함하는 기본항목그룹, 작업유형 등을 인지하고 있다.The result providing unit 130 receives the work request data generated by the work requesting unit 100 according to the occurrence of the work command from the application program, a database name to be worked on, a work table name to be worked on, basic item names, and each basic Recognizes basic item group, work type, etc., including basic item values for item name.

그 결과, 작업처리부(120)로부터 결과데이터가 입력되면, 그 결과데이터가 어떤 작업에 의한 결과데이터인지를 파악하여 삭제/삽입/수정작업에 의한 결과데이터이면 그 결과데이터를 응용프로그램으로 전달하고, 검색작업에 의한 결과데이터이면, 해당 결과데이터의 원본항목명그룹필드(302)에 기록된 원본항목명들과 원본항목값그룹필드(303)에 기록된 원본항목값들을 바탕으로, 응용프로그램으로부터 검색 요청된 기본항목명에 대한 기본항목값에 매칭되는 원본항목값만을 추출하여 응용프로그램으로 전달한다.As a result, when the result data is input from the job processing unit 120, the result data is identified by what job the result data, and if the result data by the deletion / insertion / modification operation, the result data is transferred to the application program, If the result data is a result of a search operation, a search request is made from an application program based on the original item names recorded in the original item name group field 302 and the original item values recorded in the original item value group field 303 of the result data. Only the original item value matching the basic item value for the basic item name is extracted and delivered to the application.

도 5는 본 발명의 실시예에 따른 결과제공부(130)의 검색결과 제공과정을 설명하기 위한 설명도이다.5 is an explanatory diagram for explaining a search result providing process of the result providing unit 130 according to an embodiment of the present invention.

도 5를 참조하면, 결과제공부(130)는 작업요청부(100)로부터 작업요청데이터를 입력받고 작업처리부(120)로부터 결과데이터를 입력받아, 작업요청데이터에 의거하여 해당 결과데이터가 검색작업에 의거한 결과데이터로 판단되면, 작업요청데이터로부터 기본항목그룹(401)을 추출하고, 결과데이터로부터 원본항목명그룹(402)과 원본항목값그룹(403)을 추출한다. 여기서, 원본항목값그룹(403)에는 원본항목명그룹(402)에 기록된 원본항목명들에 대한 원본항목값들이 해당 원본항목명들의 인덱스에 맞추어 기록된다.Referring to FIG. 5, the result providing unit 130 receives work request data from the work request unit 100 and receives result data from the work processing unit 120, and the corresponding result data is searched based on the work request data. If it is determined based on the result data, the basic item group 401 is extracted from the work request data, and the original item name group 402 and the original item value group 403 are extracted from the result data. Here, in the original item value group 403, original item values for original item names recorded in the original item name group 402 are recorded in accordance with the indexes of the corresponding original item names.

그리고, 결과제공부(130)는 기본항목그룹(401)의 인덱스0에 위치한 제1기본항목명(예컨대, A)을 추출하여 해당 제1기본항목명이 원본항목명그룹(402)에 존재하는지 검색한다. 이때, 원본항목명그룹(402)에 상기 제1기본항목명과 동일한 항목명(예컨대, 제3원본항목명)이 존재하면, 원본항목값그룹(403)을 바탕으로 제1기본항목명에 대한 제1기본항목값(예컨대, "*")과 동일한 제3원본항목명에 대한 제3원본항목값이 존재하는지 검색한다.The result providing unit 130 extracts a first basic item name (eg, A) located at index 0 of the basic item group 401 and searches whether the first basic item name exists in the original item name group 402. At this time, if the same item name as the first basic item name (eg, the third original item name) exists in the original item name group 402, the first basic item value for the first basic item name based on the original item value group 403. Search for whether there is a third original item value for a third original item name equal to (eg, "*").

여기서, 제1기본항목값과 동일한 제3원본항목값이 원본항목값그룹(403)에 존재하면, 그 원본항목값을 추출하여 응용프로그램으로 전달하고, 그렇지 않으면, 다음 짝수번째 인덱스(예컨대, 인덱스2)에 대하여 상술한 과정을 반복한다.Here, if the third original item value equal to the first basic item value exists in the original item value group 403, the original item value is extracted and passed to the application, otherwise, the next even index (e.g., index) Repeat the above process for 2).

한편, 도 5에 도시된 바와 같이, 원본항목명그룹(402)에 제2기본항목명(예컨대, B)에 매칭되는 제1원본항목명(예컨대, B)이 존재하고, 원본항목값그룹(403)에 제2기본항목명에 대한 제2기본항목값(예컨대, "nice")과 동일한 제1원본항목명에 대한 제1원본항목값(예컨대, "nice")이 존재하면, 결과제공부(130)는 상기 제1원본항목값(예컨대, nice)을 원본항목값그룹(403)으로부터 추출한다. 마찬가지로, 결과제공부(130)는 원본항목값그룹(403)으로부터 제2원본항목값(예컨대, free)을 추출한다.Meanwhile, as shown in FIG. 5, a first original item name (eg, B) matching the second basic item name (eg, B) exists in the original item name group 402, and is present in the original item value group 403. If there is a first original item value (e.g., "nice") for the first original item name that is equal to the second basic item value (e.g., "nice") for the second basic item name, then the result provider 130 A first original item value (eg, nice) is extracted from the original item value group 403. Similarly, the result providing unit 130 extracts a second original item value (eg, free) from the original item value group 403.

이후, 결과제공부(130)는 원본항목값그룹(403)을 바탕으로 원본항목값을 추출할 때마다 추출된 원본항목값을 응용프로그램으로 전달하거나, 원본항목값그룹(403)을 바탕으로 원본항목값의 추출이 완료되면, 추출된 복수의 원본항목값을 그룹으로 설정하여 응용프로그램으로 전달한다.Thereafter, the result providing unit 130 delivers the extracted original item value to the application whenever the original item value is extracted based on the original item value group 403, or based on the original item value group 403. When the extraction of the item value is completed, the extracted plurality of original item values are set as a group and transmitted to the application program.

도 6은 본 발명의 일 실시예에 따른 데이터베이스 작업제어방법에 대한 처리 흐름도이다.6 is a flowchart illustrating a database job control method according to an embodiment of the present invention.

도 6을 참조하면, 본 발명에 따른 데이터베이스 작업제어장치의 작업요청부(100)는 응용프로그램으로부터 데이터베이스(140)의 작업을 위한 작업명령이 입력되면(s100), 그 작업명령에 의거하여 작업요청데이터를 생성한다(s110). 여기서, 작업요청데이터에 대한 설명은 작업요청부(100)의 설명시 언급되었으므로 생략한다.Referring to FIG. 6, when the work request unit 100 of the database work control apparatus according to the present invention receives a work command for the work of the database 140 from an application program (s100), the work request is based on the work command. Generate data (s110). Here, the description of the work request data is omitted since it was mentioned in the description of the work request unit 100.

쿼리데이터 제공부(110)는 s110단계에서 생성된 작업요청데이터가 입력되면, 복수의 쿼리데이터들 중 작업지원 가능한 쿼리데이터를 추출하여 그 쿼리데이터에 작업요청데이터의 모든 정보를 삽입함으로써 작업보조-쿼리데이터를 도출한 후, 그 작업보조-쿼리데이터를 작업요청데이터에 추가하여 작업요청부(100)로 전달한다(s120).The query data providing unit 110, when the job request data generated in step s110 is input, extracts the query data capable of supporting the work from the plurality of query data and inserts all the information of the job request data into the query data. After deriving the query data, the work assistant-query data is added to the work request data and transferred to the work request unit 100 (S120).

이때, 작업요청부(100)는 작업보조-쿼리데이터를 포함하는 작업요청데이터를 쿼리데이터 제공부(110)로부터 전달받아 작업처리부(120)로 전달한다.In this case, the work request unit 100 receives work request data including work assistant-query data from the query data providing unit 110 and transmits the work request data to the work processing unit 120.

작업처리부(120)는 작업요청부(100)로부터 작업요청데이터를 입력받아 그 작업요청데이터에 포함된 작업보조-쿼리데이터를 분석하여 응용프로그램으로부터 요청된 작업유형을 식별하고, 식별된 작업유형에 따라 쿼리문을 생성한 후, 생성된 쿼리문을 이용하여 데이터베이스(140)를 작업한다(s130, s140, s150). 여기서, s130단계, s140단계, s150단계들의 상세한 설명은 작업처리부(120)의 설명시 언급되었으므로 생략한다.The work processor 120 receives work request data from the work request unit 100, analyzes work assistant-query data included in the work request data, identifies a work type requested from an application program, and identifies the work type. After generating the query statement, the database 140 is operated using the generated query statement (s130, s140, s150). In this case, detailed descriptions of the steps s130, s140, and s150 are omitted in the description of the work processor 120 and thus will be omitted.

그리고, 작업처리부(120)는 쿼리문을 이용하여 데이터베이스(140) 작업을 완료한 후, 작업완료에 따른 결과데이터를 도출한다(s160).Then, the work processor 120 derives the result data according to the work completion after completing the work of the database 140 using the query statement (S160).

결과제공부(130)는 s160단계에서 도출된 결과데이터를 분석하여 그 결과데이터가 삭제/삽입/수정작업에 의거한 결과데이터로 판단되면(s170), 해당 결과데이터를 응용프로그램으로 제공한다(s180).The result providing unit 130 analyzes the result data derived in step S160 and if the result data is determined to be result data based on the deletion / insertion / modification operation (s170), provides the result data to the application program (s180). ).

한편, 결과데이터가 검색작업에 의거한 결과데이터로 판단되면(s170), 응용프로그램으로부터 검색 요청된 기본항목값에 매칭되는 항목값만을 결과데이터로부터 추출하여 응용프로그램으로 제공한다(s190).On the other hand, if the result data is determined to be the result data based on the search operation (s170), only the item value matching the basic item value requested to search from the application program is extracted from the result data and provided to the application program (s190).

도 7은 본 발명의 실시예에 따른 쿼리데이터 제공단계(s120)에 대한 처리 흐름도로서, 도 7을 참조하면, 먼저, 쿼리데이터 제공부(110)는 복수의 쿼리데이터를 포함하는 쿼리데이터그룹을 관리하고(s121), 작업요청부(100)로부터 작업요청데이터가 전달되면 상기 쿼리데이터그룹에 포함된 복수의 쿼리데이터들 중 작업지원 가능한 쿼리데이터가 존재하는지 검색한다(s122).FIG. 7 is a flowchart illustrating a query data providing step s120 according to an embodiment of the present invention. Referring to FIG. 7, first, the query data providing unit 110 includes a query data group including a plurality of query data. In operation S121, when the job request data is transmitted from the job request unit 100, it is searched whether there is a job supportable query data among the plurality of query data included in the query data group (S122).

상기 검색결과(s122), 작업지원 가능한 쿼리데이터가 검색되면(s123), 쿼리데이터그룹으로부터 상기 쿼리데이터를 추출하고(s124), 그렇지 않으면, 새로운 쿼리데이터를 생성하고 생성된 쿼리데이터를 쿼리데이터그룹에 추가한다(s125).When the search result (s122), the query data that can support the work is searched (s123), the query data is extracted from the query data group (s124), otherwise, new query data is generated and the generated query data is converted into the query data group To add (s125).

그리고, s124단계 또는 s125단계를 통해 획득한 쿼리데이터에 작업요청데이터의 모든 정보를 삽입함으로써 작업요청데이터의 모든 정보를 포함하는 쿼리데이터인 작업보조-쿼리데이터를 도출한다(s126).Then, by inserting all the information of the work request data into the query data obtained in step s124 or step s125 to derive the work assistant-query data that is the query data including all the information of the work request data (s126).

이후, s126단계에서 도출된 작업보조-쿼리데이터를 작업요청데이터에 추가한 후, 해당 작업보조-쿼리데이터를 포함한 작업요청데이터를 작업요청부(100)로 전달한다(s127).Thereafter, after adding the work assistant-query data derived in step s126 to the work request data, the work request data including the work assistant-query data is transferred to the work request unit 100 (s127).

도 8은 본 발명의 일 실시예에 따른 검색결과 제공단계(s190)에 대한 처리 흐름도이다. 도 8을 참조하면, 먼저, 결과제공부(130)는 작업요청데이터로부터 기본항목그룹을 추출하고, 검색작업에 따른 결과데이터로부터 원본항목명그룹 및 원본항목값그룹을 추출한다(s191).8 is a flowchart illustrating a search result providing step s190 according to an embodiment of the present invention. Referring to FIG. 8, first, the result providing unit 130 extracts a basic item group from the work request data, and extracts an original item name group and an original item value group from the result data according to the search operation (S191).

그리고, 기본항목그룹으로부터 소정의 기본항목명을 추출한 후(s192), 그 기본항목명과 동일한 항목명인 원본항목명이 원본항목명그룹에 존재하는지 검색한다(s193).After the predetermined basic item name is extracted from the basic item group (s192), it is searched whether the original item name that is the same item name as the basic item name exists in the original item name group (s193).

상기 검색결과(s193), 원본항목명그룹을 바탕으로 기본항목명과 동일한 항목명인 원본항목명이 검색되면(s194), 상기 기본항목명에 대한 기본항목값과 동일한 항목값인 원본항목값이 원본항목값그룹에 존재하는지 검색하고(s195), 그렇지 않으면, 기본항목그룹으로부터 다음 기본항목명을 추출한 후(s200), 그 기본항목명과 동일한 항목명인 원본항목명이 원본항목명그룹에 존재하는지 검색하는 단계(s193)로 복귀한다.When the original item name that is the same item name as the base item name is searched based on the search result (s193) (s194), the original item value that is the same item value as the base item value for the base item name is added to the original item value group. If it is present (s195), otherwise, after extracting the next basic item name from the basic item group (s200), the process returns to the step (s193) of searching whether the original item name which is the same item name as the basic item name exists in the original item name group. .

이어서, s195단계의 검색결과, 원본항목값그룹을 바탕으로 기본항목명에 대한 기본항목값과 동일한 원본항목값이 검색되면(s196), 기본항목값과 동일한 원본항목값을 추출하고(s197), 원본항목값이 검색되지 않으면(s196), 기본항목그룹으로부터 다음 기본항목명을 추출하는 단계(s200)로 복귀한다.Subsequently, when the original item value identical to the basic item value for the basic item name is searched based on the search result of the original item value group in step s195 (s196), the same original item value as the basic item value is extracted (s197). If the item value is not found (s196), the process returns to the step (s200) of extracting the next basic item name from the basic item group.

마지막으로, 기본항목그룹에서 추출된 현재의 기본항목명이 해당 기본항목그룹의 마지막 기본항목명에 해당되는지를 판단하고(s198), 판단결과 기본항목그룹의 마지막 기본항목명에 해당되면, s197단계에서 추출된 원본항목값을 응용프로그램으로 전달하고(s199), 그렇지 않으면, 기본항목그룹으로부터 다음 기본항목명을 추출하는 단계(s200)로 복귀한다.Finally, it is determined whether the current basic item name extracted from the basic item group corresponds to the last basic item name of the basic item group (s198). If the determination result corresponds to the last basic item name of the basic item group, it is extracted in step s197. The original item value is transmitted to the application program (s199), otherwise, the process returns to step S200 of extracting the next basic item name from the basic item group.

여기서, 도 8은 결과제공부(130)가 원본항목값그룹으로부터 추출된 원본항목값들을 그룹으로 하여 한꺼번에 응용프로그램으로 제공하는 방법을 설명한 것이다. 한편, 결과제공부(130)는 원본항목값그룹으로부터 원본항목값이 추출될 때마다 개별적으로 그 원본항목값을 응용프로그램으로 제공할 수도 있다.Here, FIG. 8 illustrates a method in which the result providing unit 130 provides the original item values extracted from the original item value group to the application program at once. On the other hand, the result providing unit 130 may provide the original item value to the application program each time the original item value is extracted from the original item value group.

이제까지 본 발명에 대하여 그 바람직한 실시예를 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로, 개시된 실시예는 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

본 발명에 의하면, 응용프로그램으로부터의 데이터베이스 작업명령(예컨대, 데이터 삭제, 수정, 삽입, 검색 등)발생시, 그 작업명령에 따른 쿼리문을 제공하여 해당 쿼리문을 통해 데이터베이스를 작업할 수 있도록 지원함으로써 모든 응용프로그램이 데이터베이스 프레임워크의 변경에 관계없이 데이터베이스를 작업할 수 있도록 하는 효과가 있다.According to the present invention, when a database work command (eg, data deletion, modification, insertion, retrieval, etc.) from an application program is generated, a query statement according to the work command is provided to support the operation of the database through the corresponding query statement. This has the effect of allowing all applications to work with the database regardless of changes in the database framework.

도 1은 본 발명의 일 실시예에 따른 데이터베이스 작업제어장치에 대한 개략적인 블록도,1 is a schematic block diagram of a database job control apparatus according to an embodiment of the present invention;

도 2는 본 발명의 일 실시예에 따른 쿼리데이터의 구성예를 나타낸 도면,2 is a view showing a configuration example of query data according to an embodiment of the present invention;

도 3a는 본 발명의 일 실시예에 따른 기본항목그룹필드의 구조를 나타낸 예시도,3A is an exemplary view showing the structure of a basic item group field according to an embodiment of the present invention;

도 3b는 본 발명의 일 실시예에 따른 삽입작업유형에 따른 작업대상항목그룹필드의 구조를 나타낸 예시도,3B is an exemplary view showing the structure of a work target item group field according to an insertion work type according to an embodiment of the present invention;

도 3c는 본 발명의 일 실시예에 따른 수정작업유형에 따른 작업대상항목그룹필드의 구조를 나타낸 예시도,3C is an exemplary view showing the structure of a work target item group field according to a modified work type according to an embodiment of the present invention;

도 4는 본 발명의 일 실시예에 따른 결과데이터의 구성예를 나타낸 도면,4 is a view showing an example of the configuration of the result data according to an embodiment of the present invention;

도 5는 본 발명의 일 실시예에 따른 결과제공부의 검색결과 제공과정을 설명하기 위한 설명도,5 is an explanatory diagram for explaining a search result providing process of a result providing unit according to an embodiment of the present invention;

도 6은 본 발명의 일 실시예에 따른 데이터베이스 작업제어방법에 대한 처리 흐름도,6 is a process flow diagram for a database job control method according to an embodiment of the present invention;

도 7은 본 발명의 일 실시예에 따른 쿼리데이터 제공단계에 대한 처리 흐름도,7 is a flowchart illustrating a query data providing step according to an embodiment of the present invention;

도 8은 본 발명의 일 실시예에 따른 검색결과 제공단계에 대한 처리 흐름도이다.8 is a flowchart illustrating a search result providing step according to an embodiment of the present invention.

♣ 도면의 주요 부분에 대한 부호의 설명 ♣♣ Explanation of symbols for the main parts of the drawing ♣

100 : 작업요청부 110 : 쿼리데이터 제공부100: work request unit 110: query data provider

120 : 작업처리부 130 : 결과제공부120: processing unit 130: results providing unit

140 : 데이터베이스140: database

Claims (13)

응용프로그램으로부터 데이터베이스 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하는 제1과정―여기서, 제1과정은 상기 작업명령을 분석하여 작업하고자 하는 데이터베이스에 대한 이름정보인 데이터베이스명과, 해당 데이터베이스에 포함된 테이블 중 작업하고자 하는 테이블에 대한 이름정보인 작업테이블명과, 해당 작업테이블을 바탕으로 작업하고자 하는 작업유형과, 작업테이블을 이루는 기본항목들에 대한 이름정보인 기본항목명 및 각 기본항목명에 대한 데이터인 기본항목값으로 이루어진 기본항목그룹을 포함하는 작업요청데이터를 생성함―과,When a work command for a database operation is generated from an application program, a first process of generating work request data based on the work instruction, wherein the first process is name information of a database to be analyzed and analyzed. Work table name which is the name of the database, name information about the table to work among the tables included in the database, work type to work based on the work table, and basic item name which is the name information about the basic items that make up the work table. And a job request data including a basic item group consisting of a basic item value which is data for each basic item name. 상기 제1과정에서 작업요청데이터가 생성되면, 작업할 데이터베이스로의 접근을 가능하도록 하는 쿼리데이터에 작업요청데이터의 모든 정보를 삽입하는 제2과정―여기서, 제2과정은 복수의 쿼리데이터를 갖는 쿼리데이터그룹을 관리하는 제2-1과정과, 작업요청데이터가 생성되면 복수의 쿼리데이터 각각에 대하여 작업지원 가능여부를 판단하고 그 결과 작업지원 가능한 쿼리데이터를 추출하는 제2-2과정과, 상기 제2-2과정에서 작업지원 가능한 쿼리데이터가 추출되지 않으면 새로운 쿼리데이터를 생성하고 생성된 쿼리데이터를 쿼리데이터그룹에 추가하는 제2-3과정과, 상기 제2-2과정 또는 상기 제2-3과정을 통해 획득한 쿼리데이터의 각 필드에 작업요청데이터의 모든 정보를 삽입하는 제2-4과정으로 이루어짐―과,A second process of inserting all the information of the work request data into the query data enabling access to the database to be worked on when the work request data is generated in the first process, wherein the second process has a plurality of query data; Steps 2-1 of managing the query data group; Steps 2-2 of Determining whether or not work support is possible for each of the plurality of query data when the work request data is generated; Steps 2-3 of generating new query data and adding the generated query data to the query data group if the query data capable of supporting work in step 2-2 is not extracted; and step 2-2 or the second step. In step 2-4, all information of the work request data is inserted into each field of the query data acquired through step 3; 상기 제2과정에서 쿼리데이터에 작업요청데이터의 모든 정보가 삽입되면, 그 쿼리데이터에 의거하여 데이터베이스를 통해 작업하고자 하는 작업유형을 식별하는 제3과정과,A third step of identifying a work type to be worked through the database based on the query data when all information of the work request data is inserted into the query data in the second step; 상기 제3과정에서 작업유형이 식별되면, 식별된 작업유형에 해당되는 쿼리문을 생성한 후 생성된 쿼리문을 이용하여 데이터베이스를 작업 처리하는 제4과정과,If the work type is identified in the third process, a fourth process of processing a database using the generated query statement after generating a query statement corresponding to the identified work type; 상기 제4과정에서 데이터베이스를 이용한 작업처리가 완료되면, 그 결과를 응용프로그램으로 제공하는 제5과정을 포함하여 이루어지는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어방법.And a fifth process of providing a result to an application program when the job processing using the database is completed in the fourth process. 삭제delete 제1항에 있어서, 상기 쿼리데이터는The method of claim 1, wherein the query data is 쿼리데이터의 작업지원가능여부를 기록하기 위한 플래그필드와,A flag field for recording whether or not the query data can be supported; 데이터베이스명을 기록하기 위한 패키지네임필드와,A package name field for recording the database name, 작업테이블명을 기록하기 위한 테이블네임필드와,A table name field for recording the work table name, 작업유형을 기록하기 위한 작업유형필드와,A job type field for recording the job type, 작업테이블을 이루는 기본항목들 중 작업하고자 하는 항목들에 대한 항목명 및 그 항목명에 대한 항목값을 기록하기 위한 작업대상항목그룹필드와,A work target item group field for recording the item name for the item to be worked among the basic items forming the work table and the item value for the item name; 작업테이블을 이루는 기본항목들에 대한 기본항목명 및 각 기본항목명에 대한 기본항목값을 기록하기 위한 기본항목그룹필드로 이루어지는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어방법.A method for controlling database operations used in an object-oriented application, comprising: a basic item name for basic items constituting a work table and a basic item group field for recording basic item values for each basic item name. 삭제delete 삭제delete 삭제delete 응용프로그램으로부터 데이터베이스 작업을 위한 작업명령이 발생하면, 그 작업명령에 의거한 작업요청데이터를 생성하여 쿼리데이터 제공부로 전달함으로써 리턴되는 쿼리데이터를 작업처리부로 전달하는 작업요청부―여기서, 작업요청부는 작업명령에 의거하여, 작업하고자 하는 데이터베이스에 대한 이름정보인 데이터베이스명과, 해당 데이터베이스에 포함된 테이블 중 작업하고자 하는 테이블에 대한 이름정보인 작업테이블명과, 해당 작업테이블을 바탕으로 작업하고자 하는 작업유형과, 작업테이블을 이루는 기본항목들에 대한 이름정보인 기본항목명 및 각 기본항목명에 대한 데이터인 기본항목값으로 이루어진 기본항목그룹을 포함하는 작업요청데이터를 생성함―;When a work command for working with a database is generated from an application program, a work request unit which delivers the returned query data to the work processing unit by generating work request data based on the work command and passing it to the query data providing unit. According to the work command, the database name which is the name information of the database to be worked on, the name of the work table which is the name information about the table to be worked among the tables included in the database, the job type to be worked on the work table and Creating a work request data including a basic item group consisting of a basic item name which is name information of basic items constituting a work table and a basic item value which is data for each basic item name; 상기 작업요청부로부터 작업요청데이터가 전달되면, 작업할 데이터베이스로의 접근을 가능하도록 하는 쿼리데이터에 작업요청데이터의 모든 정보를 삽입한 후 그 쿼리데이터를 작업요청부로 전달하는 쿼리데이터 제공부;When the work request data is transmitted from the work request unit, the query data providing unit for inserting all the information of the work request data into the query data to enable access to the database to work and delivers the query data to the work request unit; 상기 작업요청부로부터 쿼리데이터를 입력받아 데이터베이스를 통해 작업하고자 하는 작업유형을 인지하고, 그 작업유형에 따른 쿼리문을 생성하여 생성된 쿼리문을 통해 데이터베이스를 작업처리하는 작업처리부; 및A job processing unit which receives the query data from the job request unit, recognizes a job type to be worked through the database, and generates a query statement according to the job type to process the database through the generated query statement; And 상기 작업처리부의 작업완료에 따른 결과를 응용프로그램으로 제공하는 결과제공부를 포함하여 구성되는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어장치.And a result providing unit for providing a result according to the job completion of the job processing unit to an application program. 삭제delete 제7항에 있어서, 상기 쿼리데이터 제공부는The method of claim 7, wherein the query data providing unit 작업지원가능여부를 기록하기 위한 플래그필드와,A flag field for recording job support, 데이터베이스명을 기록하기 위한 패키지네임필드와,A package name field for recording the database name, 작업테이블명을 기록하기 위한 테이블네임필드와,A table name field for recording the work table name, 작업유형을 기록하기 위한 작업유형필드와,A job type field for recording the job type, 작업테이블을 이루는 기본항목들 중 작업하고자 하는 항목들에 대한 항목명 및 그 항목명에 대한 항목값을 기록하기 위한 작업대상항목그룹필드와,A work target item group field for recording the item name for the item to be worked among the basic items forming the work table and the item value for the item name; 작업테이블을 이루는 기본항목들에 대한 기본항목명 및 각 기본항목명에 대한 기본항목값을 기록하기 위한 기본항목그룹필드로 이루어지는 복수의 쿼리데이터를 쿼리데이터그룹으로 관리하는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어장치.In an object-oriented application program, a plurality of query data including a basic item name for basic items constituting a work table and a basic item group field for recording basic item values for each basic item name are managed as a query data group. Database job control unit used. 제7항에 있어서, 상기 쿼리데이터 제공부는The method of claim 7, wherein the query data providing unit 작업요청부로부터 작업요청데이터가 전달되면, 쿼리데이터그룹에 포함된 쿼리데이터들의 플래그필드를 바탕으로 각 쿼리데이터들의 작업지원가능여부를 판단하여 작업지원 가능한 쿼리데이터를 추출하고, 추출된 쿼리데이터의 각 필드에 작업요청데이터의 모든 정보를 삽입하는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어장치.When the work request data is delivered from the work request unit, the query data that can support the work is extracted based on the flag fields of the query data included in the query data group, and the query data that can support the work is extracted. A database job control device for use in an object-oriented application, characterized by inserting all information of job request data into each field. 제7항에 있어서, 상기 쿼리데이터 제공부는The method of claim 7, wherein the query data providing unit 쿼리데이터그룹에 포함된 쿼리데이터들의 플래그필드를 바탕으로 각 쿼리데이터들의 작업지원가능여부를 판단하고, 그 결과 작업지원 가능한 쿼리데이터가 추출되지 않으면, 새로운 쿼리데이터를 생성하여 그 쿼리데이터의 각 필드에 작업요청데이터의 모든 정보를 삽입하는 것을 특징으로 하는 객체지향 응용프로그램에서 사용되는 데이터베이스 작업제어장치.Based on the flag fields of the query data included in the query data group, it is determined whether the query data can be supported for work. If the query data that can support the work is not extracted as a result, new fields are created for each field of the query data. A database job control device for use in an object-oriented application, characterized by inserting all the information of the job request data into. 삭제delete 삭제delete
KR10-2002-0081825A 2002-12-20 2002-12-20 Apparatus and method for controlling work of database used in object-oriented application KR100519453B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2002-0081825A KR100519453B1 (en) 2002-12-20 2002-12-20 Apparatus and method for controlling work of database used in object-oriented application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2002-0081825A KR100519453B1 (en) 2002-12-20 2002-12-20 Apparatus and method for controlling work of database used in object-oriented application

Publications (2)

Publication Number Publication Date
KR20040055200A KR20040055200A (en) 2004-06-26
KR100519453B1 true KR100519453B1 (en) 2005-10-06

Family

ID=37347916

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2002-0081825A KR100519453B1 (en) 2002-12-20 2002-12-20 Apparatus and method for controlling work of database used in object-oriented application

Country Status (1)

Country Link
KR (1) KR100519453B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101552914B1 (en) * 2007-01-30 2015-10-01 에스케이커뮤니케이션즈 주식회사 Web server application framework web application processing method using the framework and computer readable medium processing the method
WO2016036049A1 (en) * 2014-09-05 2016-03-10 네이버 주식회사 Search service providing apparatus, system, method, and computer program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5018133B2 (en) * 2007-02-27 2012-09-05 富士通株式会社 Job management apparatus, cluster system, and job management program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101552914B1 (en) * 2007-01-30 2015-10-01 에스케이커뮤니케이션즈 주식회사 Web server application framework web application processing method using the framework and computer readable medium processing the method
WO2016036049A1 (en) * 2014-09-05 2016-03-10 네이버 주식회사 Search service providing apparatus, system, method, and computer program

Also Published As

Publication number Publication date
KR20040055200A (en) 2004-06-26

Similar Documents

Publication Publication Date Title
US5924103A (en) Works-in-progress in an information management system
JP5323300B2 (en) System and method for narrowing a search using index keys
US6134543A (en) Incremental maintenance of materialized views containing one-to-one lossless joins
KR101213798B1 (en) Complex data access
US7769752B1 (en) Method and system for updating display of a hierarchy of categories for a document repository
US8010887B2 (en) Implementing versioning support for data using a two-table approach that maximizes database efficiency
JP2020140699A (en) Method, apparatus, facility, and medium for storing and requesting data
JPS61170842A (en) Updating of snap shot table for related database system
CN111143368A (en) Relational database data comparison method and system
JP2001014329A (en) Database processing method and implementation device, and medium stored with the processing program
US20190303486A1 (en) Dynamic hash partitioning for large-scale database management systems
JP2020123320A (en) Method, apparatus, device and storage medium for managing index
EP1349082A1 (en) Method and apparatus for querying relational databases
KR100519453B1 (en) Apparatus and method for controlling work of database used in object-oriented application
JP5287071B2 (en) Database management system and program
CN112148739B (en) Ciphertext index method and system independent of encryption database
JPH06215037A (en) Automatic updating device for index
JPH09305622A (en) Method and system for managing data base having document retrieval function
JPH07146880A (en) Document retrieval device and method therefor
JP2004126680A (en) Sql masking type database access method and computer program
JP2003030040A (en) Hush indexes of object database system and non-unique index management system
JP3980326B2 (en) Data management method and computer-readable recording medium
KR100319773B1 (en) Method for controlling cursor on navigation-based dataset
JP2000066933A (en) Time series data management system
CN115292322A (en) Data query method, device, equipment and medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
J201 Request for trial against refusal decision
B701 Decision to grant
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120920

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20130923

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20140922

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20150914

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee