Selected data structures and process logic combine to form a useful computing system. This computing system may further contain useful sub-systems, each of which is re-usable and belongs to one of the following three architectural tiers.
First Tier:
The first tier contains database objects and processes that are common to most commercial data processing computer systems. This level is the infrastructure that supports capabilities such as user authentication and access security, workflow, document management, data journaling, information regarding people and organizations, address management, etc.
Second Tier:
The second tier contains database objects and processes that are common to most business administration processes regardless of specific commercial industry. This level supports capabilities such as automated correspondence, customer billing, cash processing, general ledger accounting, etc.
Third Tier:
The third tier contains database objects and processes that are specific to a commercial business such as the insurance industry. Many of these system resources are shareable among different insurance products, but some are specific to an insurance product line. This level includes capabilities such as calculation of health insurance premium rates or submitted claim benefit determination. Capabilities that are specific to a business and/or product can often be added as plug-ins to the current architecture (e.g. banking industry—calculation of savings account interest earnings).
In particular, presentation logic 18 controls the formatting of visual objects used to input or display data. This includes forms (display screens), reports, e-mail, and other presentation methods. Business logic 20, within business logic layer 14, that typically controls process flow, validates data values, calculates values, etc. As much as possible, program code that supports business logic 20 is separated from the program code that supports presentation logic 18. Functionality of business logic 20 is often included within stored procedures of database 24 or in shared libraries. Data access layer 16 facilitates storage of business data structures and data separate from program logic. Business data often describe rules that define how processes are to be performed. Program logic changes are not normally required to support such things as product changes because system 10 is designed to be “data driven”. Data access layer 16 includes logic that enforces data integrity constraints upon data stored within tables 26. Database triggers associated with tables 26 perform this logic.
In an example of operation, data selection function 22 invokes one or more stored procedures of database 24 to retrieve certain information from tables 26 that is then displayed to a user by presentation logic 18 of presentation layer 12. If implementation of database 24 within data access layer 16 changes (e.g., a different database is used), data selection function 22 of business logic layer 14 also needs to change since underlying structure of tables 26 may introduce new data selection criteria. Such changes typically cost development time for business logic layer 14, even though business logic layer 14 selects the same data from the database.
In one embodiment, a method retrieves a formatted data value from a data layer to a business logic layer. The method invokes a formatted variable abstraction procedure from the business logic layer, passes at least one parameter to the formatted variable abstraction procedure (the at least one parameter identifying a formatted system variable), and builds a dynamic statement based upon the formatted system variable such that execution of the dynamic statement: accesses a formatted variable table based upon the formatted system variable to locate information relating to the formatted system variable; retrieves one or more data items based upon the information; formats the data items to form the formatted data value based upon the information; and returns the formatted data value to the business logic layer.
In another embodiment, a method abstracts data between a business logic layer and a data layer. The method invokes a data abstraction procedure from the business logic layer with at least one parameter identifying a formatted system variable; accesses, from the data abstraction procedure, a first database table to retrieve a package name and program name based upon the formatted system variable; builds a dynamic statement within the data abstraction procedure (if the package name and program name indicate a valid procedure) that, upon execution, invokes the procedure to retrieve a formatted data value; retrieves the formatted data value from the first database table based upon the formatted system variable if the package name and program name does not indicate the valid procedure; and returns the formatted data value to the business logic layer.
In another embodiment, a software product has instructions, stored on computer-readable media, wherein the instructions, when executed by a computer, perform steps for data abstraction between a business logic layer and a data layer, including: instructions for invoking a data abstraction procedure from the business logic layer with at least one parameter identifying a formatted system variable; instructions for accessing, from the data abstraction procedure, a first database table to retrieve a package name and program name based upon the formatted system variable; instructions for building, if the package name indicates a valid package, a dynamic statement within the data abstraction procedure that, upon execution, invokes a procedure, identified by the program name and the package name, to retrieve a formatted data value; instructions for retrieving, if the package name does not indicate a valid package, the formatted data value from the first database table based upon the formatted system variable; and instructions for returning the formatted data value to the business logic layer.
In another embodiment, a system abstracts data between a business logic layer and a data layer, including: means for invoking a formatted variable abstraction procedure from the business logic layer; means for passing at least one parameter to the formatted variable abstraction procedure, the at least one parameter identifying a formatted system variable; and means for building a dynamic statement based upon the formatted system variable such that execution of the dynamic statement: accesses a formatted variable table based upon the formatted system variable to locate information relating to the formatted system variable; retrieves one or more data items based upon the information; formats the data items to form the formatted data value based upon the information; and returns the formatted data value to the business logic layer.
Systems and methods disclosed hereinbelow were originally designed to solve a letter-processing problem. System-generated letters, known as dynamic letters, often use data values from a database that are merged into the letter. These dynamic letters do not have hard coded logic that is specific to each letter for retrieving the data values. Dynamic letters may, for example, include fields that reference variables by name. By creating ‘formatted system variables’ that access the database and return formatted data, any complexity related to the retrieval of data from the database is hidden from the business logic layer. These formatted system variables can be used by any program that requires properly formatted specific values retrieved from the database. For example, dynamic letters, generated by the system, may contain one or more references to one or more formatted system variables. Use of formatted system variables standardizes the nature of the data retrieval as described in further detail below.
Formatted system variables may also be used to display a list of relevant values associated with a business transaction. This list allows a user to see related data without having to navigate to other inquiry screens, for example. In another example, the list may be specific to a type of transaction. In yet another example, formatted system variables may be used as a convenient way to share complex logic used to retrieve one or more values.
Software used with the system may serve to organize logic and data into separate layers, as listed below. Altogether, the system may provide certain advantages that are independent of technology platform; in particular, although not entirely independent, each layer is substantially unchanged if the technology used for another layer is changed. For example, if JAVA replaces Oracle Forms for presentation, then the business logic layer is unaffected.
Formatted system variables are used within the business logic layer and are part of the first architectural tier. Business logic in the second and third architectural tiers may also benefit from systems and methods described herein as a convenient data access utility.
In an example of operation, generate function 114, within client business logic 112, generates dynamic letter 116 that includes a reference 117. Based upon reference 117, generate function 114 accesses a formatted variable abstraction procedure 118 that then accesses formatted variables table 126 to locate a formatted system variable 127 identified by reference 117. Formatted system variable 127 may include instructions for accessing one or more of data table 122, programs table 128 and system table 130 to determine a formatted system value result 111 that is passed back to generate function 114 for inclusion into dynamic letter 116. Letter 110 may then be viewed by operation of present function 108 within presentation layer 102. Since generate function 114 accesses formatted variable abstraction procedure 118, it may not utilize specific knowledge of database 120 (i.e., knowledge of data table 122, programs table 128 or system table 130). Thus, if database 120 changes, business logic layer 104 may not be affected; that is, formatted variable abstraction procedure 118 may be modified without requiring modification of generate function 114.
Application server 213 may operate as an Oracle Application Server supporting JAVA, forms services, and report services. As such, an application server that supports JAVA may be used where the presentation layer is developed in JAVA. Other languages and tools may be used without departing from the scope hereof.
Mail server 212 may also communicate database requests and responses between database server 214 and remote database users. Multiple application servers 213 may also be implemented to improve performance.
Database server 214 may run Oracle as a relational database but other relational databases may be used without departing from the scope hereof. The data access layer 106 (
Other servers may provide services such as a web server, e-mail gateway, etc. Servers 211, 212, 213 and 214 may include one or more local disks or may connect to storage area network (SAN) 217 and thus may not contain local disks. Servers 211, 212, 213 and 214 may also contain multiple network interface cards (NIC) that allow connection to a server backbone 210 to increase communication performance between servers 211, 212, 213 and 214.
Fiber optical connections 234 are illustratively shown connecting servers 211, 212, 213 and 214 to SAN switch 216. Servers 211, 212, 213 and 214 are also illustratively shown connecting to a main office switch 224 via Ethernet network cables 233 and may utilize internet protocol (IP) traffic.
A user may access resources of data processing system 200 using workstations 231 (e.g., workstations 231(A) and 231(B)). Each workstation 231 may, for example, run Windows OS or Linux. Workstations 231 may, for example, run a web browsing application (‘browser’) such as Mozilla or Microsoft Internet Explorer. The browser may load an Oracle browser JAVA plug-in to enhance the browser's capabilities and provide many keyboard functions to enhance user productivity. Workstations 231 are illustratively shown connecting into the network via workgroup switch 232 and main office switch 224.
Users may also access resources of data processing system 200 via internet 221 through router 225, firewalls 227 and 229 and data management zone (DMZ) network switch 226. DMZ network switch 226 is shown facilitated by DMZ server 230. If application server 213 is implemented as an Oracle Application server, DMZ server 230 may contain Oracle Web Cache software running on a web server (e.g., Apache).
Network connections between SAN 217 and main office switch 224 allow SAN 217 to be managed by one or more of workstations 231.
In an example of operation, application system program module 255 calls a formatted variable abstraction procedure 251 for each data value retrieved. Formatted variable abstraction procedure 251 is, for example, a database procedure and may represent formatted variable abstraction procedure 118. Input parameters passed during the call to formatted variable abstraction procedure 251 may include a tag name and a key value. Formatted variable abstraction procedure 251 builds a dynamic SQL statement that calls an appropriate procedure (e.g., a procedure 254) in one of database packages 252. Formatted variable abstraction procedure 251 may, for example, utilize a formatted variables table (e.g., formatted variables table 126,
Procedure 254 then retrieves data from application system database 253, formatting it as needed, and returns the data to formatted variable abstraction procedure 251 in the following parameters: return status, return value, subject key value and image. Procedure 251 then in turn responds back to program 255 with these same parameters. The return value may represent formatted system variable result 111,
Static values may also be defined in the formatted variables table (e.g., formatted variable table 126,
In the following example of operation, the current date is to be formatted as “Month DD, YYYY” (e.g., “May 19, 2005”) and returned as a formatted variable (e.g., formatted system variable result 111,
Upon return of control from procedure ais_p009_get_fv, a returned status is first checked to determine if ais_p009_get_fv was successful. If the returned status indicates success (i.e., p_return_status equals “SUCCESS”) the returned value of p_return_value contains the current date formatted appropriately. If the returned status does not indicate success, further logic may, for example, determine a cause of the failure.
Code Sample 2 may, for example, be replaced by any other SQL statement, or other logic, that places a formatted variable result into a global variable called “v$_formatted_value”. Code Sample 2 may be stored once and need not be repeated throughout the system.
In a second example, Code Sample 3 shows one exemplary invocation of procedure ais_p009_get_fv to retrieve a text value that represents a person's first name based upon an insurance claim charge submitted on their behalf. In this example, the identifier of the claim charge is “123456”, and therefore p_key_value is set to the value “123456” to enable location of the database row of the claim charge. The tag name that identifies the stored procedure is “clc.insured_first_name”. Once executed, this procedure returns the first name of the person in the parameter named p_return_value. The primary key identifier of the row that stores the insured's name will be returned in the variable named p_subject_key_value. The returned subject key value may be used by the calling program to directly read the identified row at a later time if required.
If procedure ais_p009_get_fv has completed successfully then p_return_value contains the first name of the insured (e.g. “Fred”) whose claim identifier is “123456”. The value for p_subject_key_value contains an identifier (key value) of a row in the database table in which the name is stored. (This subject key value is normally used only for debugging.) In this example, the p_image value is null since an image value is not being retrieved.
Package AIS_P007_CLAIM_CHARGE_VALUES may include many other procedures that retrieve other business data values without departing from the scope hereof. A recommended organization of each package is to only include procedures that use the same entry point (i.e., where p_key_value represents the same information, such as claim charge identifier, for each externally invoked procedure within the package).
Changes may be made in the above methods and systems without departing from the scope hereof. It should thus be noted that the matter contained in the above description or shown in the accompanying drawings should be interpreted as illustrative and not in a limiting sense. The following claims are intended to cover all generic and specific features described herein, as well as all statements of the scope of the present method and system, which, as a matter of language, might be said to fall there between.
Number | Name | Date | Kind |
---|---|---|---|
5459827 | Allouche et al. | Oct 1995 | A |
5768590 | Kimura et al. | Jun 1998 | A |
5813019 | Van De Vanter | Sep 1998 | A |
5815713 | Sanders | Sep 1998 | A |
5842020 | Faustini | Nov 1998 | A |
5857212 | Van De Vanter | Jan 1999 | A |
5875332 | Wang et al. | Feb 1999 | A |
5897622 | Blinn et al. | Apr 1999 | A |
5930512 | Boden et al. | Jul 1999 | A |
6061513 | Scandura | May 2000 | A |
6120553 | Sidwell | Sep 2000 | A |
6356887 | Berenson et al. | Mar 2002 | B1 |
6601234 | Bowman-Amuah | Jul 2003 | B1 |
6615199 | Bowman-Amuah | Sep 2003 | B1 |
6615253 | Bowman-Amuah | Sep 2003 | B1 |
20010034849 | Powers | Oct 2001 | A1 |
20020049788 | Lipkin et al. | Apr 2002 | A1 |
20020178078 | OToole | Nov 2002 | A1 |
20040015408 | Rauen et al. | Jan 2004 | A1 |
20040134369 | East | Jul 2004 | A1 |
20050039119 | Parks et al. | Feb 2005 | A1 |
20050216830 | Turner et al. | Sep 2005 | A1 |
20060190434 | Dettinger et al. | Aug 2006 | A1 |
20070083495 | Dettinger et al. | Apr 2007 | A1 |
20100333077 | Shachar et al. | Dec 2010 | A1 |
Entry |
---|
Motomichi Toyama et al. , “Advances in Database Technology EDBT'98” , Springer Berlin Heidelber , 1998 , <http://link.springer.com/content/pdf/10.1007%2FBFb0101002.pdf> pp. 1-15. |
Rekha Bhowmik et al. , “Managing Reference Tables Using Oracle Dynamic SQL and Metadata” , IEEE , 2003 , <http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=1270646> pp. 399-403. |
Russel A. McClure et al. , “SQL DOM: Compile Time Checking of Dynamic SQL Statements” , ACM , 2005 , <http://delivery.acm.org/10.1145/1070000/1062487/p88-mcclure.pdf>, pp. 1-9. |
Number | Date | Country | |
---|---|---|---|
20080126291 A1 | May 2008 | US |