The present invention relates generally to the field of application development and more particularly to database application design.
Currently, when designing an application that interacts with a hierarchical database, it is common practice to distribute the application into at least two tiers, which typically includes core services (i.e., the main services of the application) and business logic. Usually, an application programmer is required to develop these separately from the database, using a programming language and other modeling and design tools. However, there are challenges regarding management and interaction of the core services since they are stored separately from the database. With respect to management, core services are typically provided at a lower level than the business logic and there are unique considerations which apply to core services which do not apply to business logic. For example, the core services traditionally interact with the database, and since the core services reside separately from the database, there is the potential for deadlock risks, lock contention, and performance criteria. With respect to interaction, it is common for business logic and core services to blur boundaries since there is no strict interface design. Furthermore, without an interface specifically designed for the core services, it is difficult for the user (i.e., application developer or application programmer) to make changes, update, manage or interact specifically with the core services.
Since in the current environment, core services are typically separate from the database system and the access logic does not reside on the same physical machine as the database, users may experience adverse affects such as performance issues. These performance issues may result from the compounded lock contention and latency that is typically experienced in networked environments. Additionally, since the access points are not restricted, the content of the database is potentially exposed across the network environment and as such there are security risks involved. Furthermore, since the business logic is more computationally expensive, there may be an increase with respect to the architecture costs associated with having the core services residing separately from the business logic.
A processor-implemented method for designing, developing, implementing and maintaining a core service related to a database is provided. The processor-implemented method may include displaying a graphical user interface and identifying, from the graphical user interface, the core service. Then the processor-implemented method may include determining, from the graphical user interface, a type of folder request based on the identified core service and accessing a folder based on the determining of the type of folder request. The processor-implemented method may further include determining a lock order based on the accessed folder; and manipulating the accessed folder based on the determining of the lock order.
These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings. The various features of the drawings are not to scale as the illustrations are for clarity in facilitating one skilled in the art in understanding the invention in conjunction with the detailed description. In the drawings:
Detailed embodiments of the claimed structures and methods are disclosed herein; however, it can be understood that the disclosed embodiments are merely illustrative of the claimed structures and methods that may be embodied in various forms. This invention may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete and will fully convey the scope of this invention to those skilled in the art. In the description, details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the presented embodiments.
The present invention relates generally to application development, and more particularly to database application design. The following described exemplary embodiments provide a system, method and program product for managing, maintaining and interacting with the core services of a database.
Currently, in database design, the core services are separate from the database system and the access logic does not reside on the same physical machine as the database. As previously described, core services are typically provided at a lower level than the business logic and there are unique considerations which apply to core services which do not apply to business logic. Furthermore, the core services traditionally interact with the database, and since the core services reside separately from the database, there is the potential for deadlock risks, lock contention, and performance criteria. A deadlock may occur when a process or thread enters a waiting state because a resource requested is being held by another waiting process, which in turn is waiting for another resource. For example, an operating system may be trying to read a page from the same thread that is already trying to read the same page. Additionally, since there is not an interface specifically designed for the core services, it is difficult for the user to make changes, update, manage or interact specifically with the core services.
Also, since the access points are not restricted, the content of the database is potentially exposed across the network environment and as such there are security risks involved. Furthermore, since the business logic is more computationally expensive, there may be an increase with respect to the architecture costs associated with having the core services residing separately from the business logic. By allowing the core services to execute on the database platform, where they run optimally and most cost effectively, and the business logic to reside on an external platform, which may be much lower cost than the database system, the developers are able to integrate their application in the most cost effective architecture possible.
Therefore, there exists a need for providing core services that are designed, integrated, and co-located with the database server itself. This may lead to more efficient processing times, reduced lock contention, deadlock elimination, and intuitive design and interface. Furthermore, users may be able to develop core services that do not contain business logic and are easily managed and invoked. Additionally, by allowing the core services to execute on the database platform, where they run optimally and most cost effectively, and the business logic to reside on an external platform, which may be much lower cost than the database system, the developers may be able to integrate their application in the most cost effective architecture possible.
According to at least one embodiment of the present invention, a graphical user interface (GUI) may be utilized by an application developer to implement a core service for a database. As previously described, a core service may be one of the main services of a database application. For example, if the application is a train service application, then a core service of the train service application may be booking a ticket on the train. The core services may be designed, developed, integrated and co-located with the database server itself. As such, this may lead to more efficient processing times, reduced lock contention, deadlock elimination and intuitive design and interface. Furthermore, users may develop core services that do not contain business logic and are easily managed an invoked.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The following described exemplary embodiments provide a system, method and program product to provide a GUI that would allow an application developer to implement a core service. Using the method, the core services may be designed, integrated, and co-located with the database server itself, which may lead to more efficient processing times, reduced lock contention, deadlock elimination, and intuitive design and interface. As such, users may be able to develop core services that do not contain business logic and are easily managed and invoked.
Furthermore, another key advantage of providing the user interface (i.e., GUI) is the database system itself is able to “adopt” the core services as functions available from the database system itself. In an environment where performance is critical, integrating the core services as an extension of the database itself may provide some key advantages, such as reduced lock contention. As previously described, integrating the access logic on the same physical machine as the database reduces latency typically seen in networked environments. Another advantage may be higher security. By never exposing the content of the database across a network, access points are restricted to those defined by the developer. Additionally, another advantage may be the cost effectiveness of the architecture. Typically business logic is more computationally expensive and does not need to reside on the same physical machine as the database. By allowing the core services to execute on the database platform, where they run optimally and most cost effectively, and the business logic to reside on an external platform, which may be much lower cost than the database system, this allows developers to integrate their application in the most cost effective architecture possible.
Referring to
The client computer 102 may communicate with database 112 running on server computer 114 via the communications network 110. The communications network 110 may include connections, such as wire, wireless communication links, or fiber optic cables. As will be discussed with reference to
As previously described, the client computer 102 may access database 112, running on server computer 114 via the communications network 110. For example, a user using an application program 108 running on a client computer 102 may connect via a communication network 110 to database 112 which may be running on server computer 114. Additionally, an application program developer may utilize the core service developer 116 running on server 114 to manage, maintain and interact with the core services of a database 112. The core service developer process is explained in more detail below with respect to
Referring now to
According to one implementation of the present embodiment, at 202, a user may log into a user interface (i.e., the GUI). Then, at 204, the user may begin working with a core service. The user may begin working with either an existing service or a new service that the user is creating. For example, the user may begin working with a core service for a train service application that is associated with a database relating to the train service data. Next, at 206, the user must select either a defined folder locator or a fileroom or cabinet to work with. For example, the user may be presented with a tree view of the hierarchical stored data with levels consisting of filerooms, cabinets, and folder locators and the user may select which of these the user will be working with. For example, with respect to a train service application, the user may choose to work with a specific folder locator that is associated with the location (i.e., departure station and arrival station) and a date to book a ticket on the train.
Then, at 208, the core service developer 116 (
Optionally, at 210, the user may be able to specify a fileroom/cabinet, and choose to create a new folder. Then at 214, the requested folder is accessed and the user may decide if a read from the selected folder or an update to the selected folder is to be performed. If a read to the folder is going to be performed, then the user may be allowed to read the records within the folder at 222 or receive an output value from the folder. With respect to the train service example above, if the user wants to count the remaining number of tickets available to be sold and there are not any tickets remaining to be sold, then the user may receive “zero” as the output and the service will end notifying the user that there is no availability on the train. If the user wants to perform a read from the folder, then the user would be able to access the folder and read the data. For example, the user may be able to access the folder and count the number of tickets that are available to be sold.
If at 214 an update to the folder is going to be performed (i.e., no read), then at 216, once a folder is obtained, either through creation or through location, the core service developer 116 (
However, if at 218, the core service developer 116 (
For example, to locate existing records, a user may be presented with the defined record types for the folder. Each field in a record may be used as selection criteria, including the record type and version. Then after a record has been retrieved, the user may update the record using input values, retrieve fields as stored values or output values, or follow a field reference to another folder. Once all records of interest are complete, the user may retain the lock on the folder and proceed to a new folder locator. Once all folders have been closed and the user is finished implementing the core service, the set of output values is displayed as a result set. With respect to the train service example above, the user may wish to change the number of available tickets from 10 to 9 and then the lock would be released from the folder and a response may be returned to the user that one ticket was sold.
As a result, lock scopes and transaction scopes are an important concept as multiple folders may be locked and updated atomically. One major advantage the core service developer provides is maintaining a list of “Lock Patterns”. Through the use of the Lock Patterns, the GUI is able to alert the developer to a potential deadlock condition, ensuring the same order or locking is done across all core services.
Data processing system 800, 900 is representative of any electronic device capable of executing machine-readable program instructions. Data processing system 800, 900 may be representative of a smart phone, a computer system, PDA, or other electronic devices. Examples of computing systems, environments, and/or configurations that may represented by data processing system 800, 900 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, network PCs, minicomputer systems, and distributed cloud computing environments that include any of the above systems or devices.
User client computer 102 (
Each set of internal components 800a, b also includes a R/W drive or interface 832 to read from and write to one or more portable computer-readable tangible storage devices 936 such as a CD-ROM, DVD, memory stick, magnetic tape, magnetic disk, optical disk or semiconductor storage device. A software program 108 can be stored on one or more of the respective portable computer-readable tangible storage devices 936, read via the respective R/W drive or interface 832 and loaded into the respective hard drive 830.
Each set of internal components 800a, b also includes network adapters or interfaces 836 such as a TCP/IP adapter cards, wireless wi-fi interface cards, or 3G or 4G wireless interface cards or other wired or wireless communication links. A software program 108 in client computer 102 can be downloaded to client computer 102 from an external computer via a network (for example, the Internet, a local area network or other, wide area network) and respective network adapters or interfaces 836. From the network adapters or interfaces 836, the software program 108 in client computer 102 is loaded into the respective hard drive 830. The network may comprise copper wires, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
Each of the sets of external components 900a, b can include a computer display monitor 920, a keyboard 930, and a computer mouse 934. External components 900a, b can also include touch screens, virtual keyboards, touch pads, pointing devices, and other human interface devices. Each of the sets of internal components 800a, b also includes device drivers 840 to interface to computer display monitor 920, keyboard 930 and computer mouse 934. The device drivers 840, R/W drive or interface 832 and network adapter or interface 836 comprise hardware and software (stored in storage device 830 and/or ROM 824).
Aspects of the present invention have been described with respect to block diagrams and/or flowchart illustrations of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer instructions. These computer instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The aforementioned programs can be written in any combination of one or more programming languages, including low-level, high-level, object-oriented or non object-oriented languages, such as Java, Smalltalk, C, and C++. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). Alternatively, the functions of the aforementioned programs can be implemented in whole or in part by computer circuits and other hardware (not shown).
The foregoing description of various embodiments of the present invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible. Such modifications and variations that may be apparent to a person skilled in the art of the invention are intended to be included within the scope of the invention as defined by the accompanying claims.