Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Using Data Encapsulated Programs to Instantiate Data

IP.com Disclosure Number: IPCOM000014611D
Original Publication Date: 2001-Mar-01
Included in the Prior Art Database: 2003-Jun-20
Document File: 4 page(s) / 81K

Publishing Venue

IBM

Abstract

Object oriented programing has for years described the use of data encapsulation within programs which only allows access to data through the use of programs (methods). This invention describes program encapsulation within data and defines the Data E ncapsulated Program (DEP) data object which provides access to the DEP and its associated data. The following is the definition of a DEP data object: The DEP data object is comprised of the DEP, the DEP data, the DEP data interface and the instantiated DEP data. The DEP is the program imbedded in the raw data. The DEP data is comprised of the raw data with a DEP. The DEP data interface is the program that loads the DEP data, prepares the DEP for execution, executes the DEP and returns requested data to its invoker (e.g. a data access method). The DEP instantiated data is the data resulting from the execution of the DEP. Through the use of the DEP data object, programs can retrieve DEP instantiated data. These data retrieval programs do not need to be changed and therefore do not need to be aware of any data transformation performed by the DEP. This invention only provides the ability to instantiate and retrieve DEP data. The instantiated DEP data is presented to the retrieving program as if it were raw data (i.e. unprocessed/unmodified). The DEP data, which could be character or binary in nature, is by definition raw data initially recorded with a DEP. When the DEP data is to be retrieved the retrieving program invokes the data access method which invokes a DEP data interface which loads the DEP data and executes the DEP. The DEP modifies the data by performing variable substitution on the data using local and/or global environment data. It also includes or excludes pieces of data or sets of record(s) based on the environment data or lack thereof and/or it may generate data (e.g. mathematical tables or sequences). The program retrieving the DEP instantiated data need not be aware of this data transformation except possibly to indicate to the data access method that this transformation is to be performed. The perception of the retrieving program is that the data retrieved (the instantiation of the DEP data) is what was recorded (i.e. unmodified).

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 43% of the total text.

Page 1 of 4

Using Data Encapsulated Programs to Instantiate Data

  Object oriented programing has for years described the use of data encapsulation within programs which only allows access to data through the use of programs (methods). This invention describes program encapsulation within data and defines the Data E ncapsulated Program (DEP) data object which provides access to the DEP and its associated data. The following is the definition of a DEP data object:

The DEP data object is comprised of the DEP, the DEP data, the DEP data interface and the instantiated DEP data. The DEP is the program imbedded in the raw data. The DEP data is comprised of the raw data with a DEP. The DEP data interface is the program that loads the DEP data, prepares the DEP for execution, executes the DEP and returns requested data to its invoker
(e.g. a data access method). The DEP instantiated data is the data resulting from the execution of the DEP. Through the use of the DEP data object, programs can retrieve DEP instantiated data. These data retrieval programs do not need to be changed and therefore do not need to be aware of any data transformation performed by the DEP.

This invention only provides the ability to instantiate and retrieve DEP data. The instantiated DEP data is presented to the retrieving program as if it were raw data (i.e. unprocessed/unmodified). The DEP data, which could be character or binary in nature, is by definition raw data initially recorded with a DEP. When the DEP data is to be retrieved the retrieving program invokes the data access method which invokes a DEP data interface which loads the DEP data and executes the DEP. The DEP modifies the data by performing variable substitution on the data using local and/or global environment data. It also includes or excludes pieces of data or sets of record(s) based on the environment data or lack thereof and/or it may generate data (e.g. mathematical tables or sequences). The program retrieving the DEP instantiated data need not be aware of this data transformation except possibly to indicate to the data access method that this transformation is to be performed. The perception of the retrieving program is that the data retrieved (the instantiation of the DEP data) is what was recorded (i.e. unmodified).

This invention provides serveral advantages.

Using this invention can provide a savings of secondary storage

(e.g. disk space). This is accomplished by sharing the same file among multiple environments instead of using a separate file for each environment. A savings in time can be achieved to maintain a single file verses

multiple files whenever changes are required. Since variable substitution and other data transformations can be


1.


2.


3.

1

Page 2 of 4

done at the access method interface, this relieves the need of programs accessing the data from doing these same data transformations. This invention thus simplifies and speeds the development and delivery of programs. Individual fields or s...