Computer-implemented program product and method of deferring allocation of storage for array elements of objects
First Claim
Patent Images
1. A computer implemented method of deferring allocation of storage for array elements of objects, comprising the steps of:
- receiving a request to instantiate an object of a class where the class has a definition that specifies a default value for each data member of an array element;
allocating storage space for the object without storage space for an array element if the instantiation request does not specify an initial value for any of the data members of the array element;
receiving a request to modify a data member of the array element;
determining if storage space for the array element has been allocated;
if storage space for the array element has not been allocated, allocating storage space for the array element and initializing each data member of the array element to the specified default value; and
modifying the data member of the array element as specified in the modification request.
2 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods for accessing a relational database through an object-oriented querying interface are provided. A class of objects that are to be stored in the relational database are defined. One or more relational database tables are created and a mapping is produced that maps each data member of an object to one or more columns in a relational database table. Additionally, object-oriented paradigms like inheritance may be supported and the allocation of storage for array elements may be deferred until necessary.
-
Citations
4 Claims
-
1. A computer implemented method of deferring allocation of storage for array elements of objects, comprising the steps of:
-
receiving a request to instantiate an object of a class where the class has a definition that specifies a default value for each data member of an array element;
allocating storage space for the object without storage space for an array element if the instantiation request does not specify an initial value for any of the data members of the array element;
receiving a request to modify a data member of the array element;
determining if storage space for the array element has been allocated;
if storage space for the array element has not been allocated, allocating storage space for the array element and initializing each data member of the array element to the specified default value; and
modifying the data member of the array element as specified in the modification request. - View Dependent Claims (2)
-
-
3. A computer program product that defers allocation of storage for array elements of objects, comprising:
-
computer code that receives a request to instantiate an object of a class where the class has a definition that specifies a default value for each data member of an array element;
computer code that allocates storage space for the object without storage space for an array element if the instantiation request does not specify an initial value for any of the data members of the array element;
computer code that receives a request to modify a data member of the array element;
computer code that determines if storage space for the array element has been allocated;
computer code that allocates storage space for the array element and initializes each data member of the array element to the specified default value if storage space for the array element has not been allocated;
computer code that modifies the data member of the array element as specified in the modification request; and
a computer readable medium that stores the computer codes. - View Dependent Claims (4)
-
Specification