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.
- 2. The method of claim 1, wherein each array element is stored as a row in a relational database table.
- 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.
- 4. The computer program product of claim 3, wherein each array element is stored as a row in a relational database table.
Parent Case Info
This application is a continuation of application Ser. No. 08/856,375 filed on May 14, 1997, now U.S. Pat. No. 6,047,284.
US Referenced Citations (16)
Foreign Referenced Citations (5)
Number |
Date |
Country |
WO 9504960 |
Feb 1995 |
WO |
WO 9527255 |
Oct 1995 |
WO |
WO 9634350 |
Oct 1996 |
WO |
WO 9703406 |
Jan 1997 |
WO |
WO 9852131 |
Nov 1998 |
WO |
Non-Patent Literature Citations (1)
Entry |
Chenho Kung, “Object Subclass Hierarchy in SQL: A Simple Approach,” Jul. 1900, Communications of the ACM, vol. 33, No. 7. |
Continuations (1)
|
Number |
Date |
Country |
Parent |
08/856375 |
May 1997 |
US |
Child |
09/454519 |
|
US |