Multi-object fetch component
First Claim
1. A method for implementing and retrieving multiple business objects across a network in one access operation, comprising the steps of:
- providing a business object and a plurality of related objects on a database, wherein the related objects are related to the business object;
declaring a fetch specification for declaring what business object and plurality of related objects are going to be fetched and how the business object and related objects that are being fetched relate to each other;
generating an object identifier comprising;
(1) a relationship indicator that represents how the business object and related objects relate to each other, (2) a unique row identifier generated by the database, (3) an identifier generated by a utility, and (4) a unique string generated from one or more attributes of the business object;
loading the object identifier when the business object starts to implement instances of the business object and the related objects without retrieving the business object and the related objects from the database;
sending an access query across the network to a server when data for the business object is to be retrieved from the database;
wherein the access query is based on the fetch specification;
receiving from the server a query result, wherein the query result includes data for the business object and plurality of related objects;
providing a warning upon retrieval of objects missing at least one attribute, wherein the warning includes information on how to handle and resolve the at least one missing attribute; and
instantiating the business object and the plurality of related objects based on the data in the query result.
5 Assignments
0 Petitions
Accused Products
Abstract
A system, method, and article of manufacture are provided for retrieving multiple business objects across a network in one access operation. A business object and a plurality of remaining objects are provided on a persistent store. Upon receiving a request for the business object, it is established which of the remaining objects are related to the business object. The related objects and the business object are retrieved from the persistent store in one operation and it is determined how the retrieved related objects relate to the business object and each other. A graph of relationships of the business and related objects is instantiated in memory.
-
Citations
18 Claims
-
1. A method for implementing and retrieving multiple business objects across a network in one access operation, comprising the steps of:
-
providing a business object and a plurality of related objects on a database, wherein the related objects are related to the business object;
declaring a fetch specification for declaring what business object and plurality of related objects are going to be fetched and how the business object and related objects that are being fetched relate to each other;
generating an object identifier comprising;
(1) a relationship indicator that represents how the business object and related objects relate to each other, (2) a unique row identifier generated by the database, (3) an identifier generated by a utility, and (4) a unique string generated from one or more attributes of the business object;
loading the object identifier when the business object starts to implement instances of the business object and the related objects without retrieving the business object and the related objects from the database;
sending an access query across the network to a server when data for the business object is to be retrieved from the database;
wherein the access query is based on the fetch specification;
receiving from the server a query result, wherein the query result includes data for the business object and plurality of related objects;
providing a warning upon retrieval of objects missing at least one attribute, wherein the warning includes information on how to handle and resolve the at least one missing attribute; and
instantiating the business object and the plurality of related objects based on the data in the query result. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program embodied on a computer readable medium for implementing and retrieving multiple business objects across a network in one access operation, comprising:
-
a code segment that provides a business object and a plurality of related objects on a database, wherein the related objects are related to the business object;
a code segment that declares a fetch specification for declaring what business object and plurality of related objects are going to be fetched and how the business object and related objects that are being fetched relate to each other;
a code segment that generates an object identifier comprising;
(1) a relationship indicator that represents how the business object and related objects relate to each other, (2) a unique row identifier generated by the database, (3) an identifier generated by a utility, and (4) a unique string generated from one or more attributes of the business object;
a code segment that loads the object identifier when the business object starts to implement instances of the business object and the related objects without retrieving the business object and the related objects from the database;
a code segment that sends an access query across the network to a server when data for the business object is to be retrieved from the database;
wherein the access query is based on the fetch specification;
a code segment that receives from the server a query result, wherein the query result includes data for the business object and plurality of related objects;
providing a warning upon retrieval of objects missing at least one attribute, wherein the warning includes information on how to handle and resolve the at least one missing attribute; and
a code segment that instantiates the business object and the plurality of related objects based on the data in the query result. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system for implementing and retrieving multiple business objects across a network in one access operation, comprising:
-
logic that provides a business object and a plurality of related objects on a database, wherein the related objects are related to the business object;
logic that declares a fetch specification for declaring what business object and plurality of related objects are going to be fetched and how the business object and related objects that are being fetched relate to each other;
logic that generates an object identifier comprising;
(1) a relationship indicator that represents how the business object and related objects relate to each other, (2) a unique row identifier generated by the database, (3) an identifier generated by a utility, and (4) a unique string generated from one or more attributes of the business object;
logic that loads the object identifier when the business object starts to implement instances of the business object and the related objects without retrieving the business object and the related objects from the database;
logic that sends an access query across the network to a server when data for the business object is to be retrieved from the database;
wherein the access query Is based on the fetch specification;
logic that receives from the server a query result, wherein the query result includes data for the business object and plurality of related objects;
providing a warning upon retrieval of objects missing at least one attribute, wherein the warning includes information on how to handle and resolve the at least one missing attribute; and
logic that instantiates the business object and the plurality of related objects based on the data in the query result. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification