摘要:
A method, system, and computer program product for reducing dependency calculation time in object persistence with circular referential integrity dependency is provided. The method includes building a graph using foreign key dependency from object to relational mapping, where nodes of the graph are object types and connected directionally from a source containing a foreign key to a target of a foreign key reference. The method further comprises topologically sorting the graph to order dependencies among the nodes including circular dependencies. The method also includes encapsulating the circular dependencies as a complex node. Furthermore, the method comprises performing object dependency calculations on the nodes and the complex node in the graph. The results of the object dependency calculations are used to generate a sequence in which the objects can be modified in a relational database.
摘要:
A method, system, and computer program product for reducing dependency calculation time in object persistence with circular referential integrity dependency is provided. The method includes building a graph using foreign key dependency from object to relational mapping, where nodes of the graph are object types and connected directionally from a source containing a foreign key to a target of a foreign key reference. The method further includes topologically sorting the graph to order dependencies among the nodes including circular dependences. The method also includes encapsulating the circular dependencies as a complex node. Furthermore, the method includes performing object dependency calculations on the nodes and the complex node in the graph. The results of the object dependency calculations are used to generate a sequence in which the objects can be modified in a relational database.
摘要:
The invention controls the persistence of server component objects during a transaction, thereby minimizing the number of times that a program accesses a database. The invention also minimizes the number of operations needed. The invention caches the database operations required to persist server component objects until a client object program commits the transaction or until the program needs to access the server component objects. The invention comprises an improved container program that creates server component objects, associates each server component object with a transaction, maintains the server component objects in a cache, filters out unnecessary database operations and then flushes the cache at the appropriate time so that a server component object is persisted only when a client program commits an associated transaction or another object attempts to access the server component object.
摘要:
The present invention provides methods, apparatus and computer instructions for a container managed persistent support architecture that meets the Enterprise Java Bean (EJB) Specification. The support architecture provides application programmers a model for balancing generated components with runtime code to better optimize flexibility and efficiency of applications. Six generated components: concrete bean, bean adaptor binding, injector, extractor, data cache entry and function set, are used in combination with runtime code to perform typical operations of CMP entity beans.
摘要:
An apparatus and method enable batch processing of database updates without modifying generated code, i.e., without redeployment of the application server or application. A batch mechanism intercepts calls from the generated code, compiles updates into batches, and processes the updates to the database in batches. In this manner the batch mechanism takes advantage of the batch processing capabilities of the database without modifying the generated code.
摘要:
A method, apparatus, and computer program product in a data processing system for avoiding excessive database round trips. A list of a database object fields affected by queries is compiled by analyzing instructions in a database query language. A list of database object fields affected by queries is also compiled by analyzing database object relationships. Using the combined list of affected database object fields, when a find operation is invoked, a determination is made as to whether the affected database object fields have been modified. Next, if the affected database object fields have been modified, database updates are generated for the affected database objects containing the affected database object fields. After that, the database updates are executed after all affected database object fields have been processed. Finally, the queries are submitted.
摘要:
The invention controls the persistence of server component objects during a transaction, thereby minimizing the number of times that a program accesses a database. The invention also minimizes the number of operations needed. The invention caches the database operations required to persist server component objects until a client object program commits the transaction or until the program needs to access the server component objects. The invention comprises an improved container program that creates server component objects, associates each server component object with a transaction, maintains the server component objects in a cache, filters out unnecessary database operations and then flushes the cache at the appropriate time so that a server component object is persisted only when a client program commits an associated transaction or another object attempts to access the server component object.
摘要:
The present invention provides methods, apparatus and computer instructions for a container managed persistent support architecture that meets the Enterprise Java Bean (EJB) Specification. The support architecture provides application programmers a model for balancing generated components with runtime code to better optimize flexibility and efficiency of applications. Six generated components: concrete bean, bean adaptor binding, injector, extractor, data cache entry and function set, are used in combination with runtime code to perform typical operations of CMP entity beans.
摘要:
An apparatus, system, and method to identify a region of an image including a barcode based on, at least in part, an entity specific feature associated with the barcode; detect a codeword boundary for the barcode based on, at least in part, an adaptive boundary determination mechanism; and decode the codeword based on, at least in part, a plurality of metrics associated with the entity.
摘要:
A method, an apparatus, and computer instructions are provided for a context based cache infrastructure to enable subset query over a cached object. Responsive to detecting a query to a root context of a context tree, the tree is traversed for a parent context of a subcontext corresponding to the name and value pair, which is identified by a user in the query. If the parent context caches all query results, the query results are iterated and the remaining name and value pairs are filtered out. However, if the parent context does not cache all query results, the traversing step is repeated for next parent context of the subcontext until a root context is encountered. If a root context is encountered, a query is issued to the database for the name and value pair and the result of the database query is cached in a new context.