Claims
- 1. A method for handling within a database system a data item that is associated with a data type whose native structure is not known to said database system, the method comprising the steps of:
said database system receiving user input that specifies a set of attributes; said database system receiving user input that specifies a data type that is supported by said database system for each attribute in said second set of attributes; said database system receiving user input that specifies an external routine for accessing a first attribute of said set of attributes, wherein said external routine expects said data item to have said native structure; said database system invoking said external routine to access said at least one attribute; in response to invoking said external routine, said database system receiving from said external routine a value that is structured according to the data type associated with said first attribute.
- 2. The method of claim 1 further comprising the step of maintaining said data item in said native structure as the data item is passed between said database system and routines that expect said data item to be in said native structure.
- 3. The method of claim 1 wherein said native structure has a plurality of attributes, and said plurality of attributes do not have a one-to-one correspondence with said set of attributes.
- 4. The method of claim 3 wherein the at least one attribute does not correspond to any of said plurality of attributes.
- 5. A computer-readable medium carrying one or more sequences of instructions for handling within a database system a data item that is associated with a data type whose native structure is not known to said database system, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
said database system receiving user input that specifies a pickling mechanism and an unpickling mechanism for said data type; prior to storing said data item to non-volatile memory, said database system invoking said pickling mechanism to transform said data item from said native structure to a storable format; upon reading said data item from non-volatile memory, said database system invoking said unpickling mechanism to transform said data item from said storable format to said native structure; and maintaining said data item in said native structure as the data item is passed between said database system and routines that expect said data item to be in said native structure.
- 6. The computer-readable medium of claim 5 wherein:
the step of invoking an unpickling mechanism is performed by invoking a runtime subsystem for a programming environment associated with the data type; and the step of invoking a pickling mechanism is performed by invoking said runtime subsystem for the programming environment associated with the data type.
- 7. The computer-readable medium of claim 5 wherein:
the computer-readable medium includes the sequences of instructions for performing the steps of
the database system registering a first user-implemented routine for pickling data items that belong to said data type; the database system registering a second user-implemented routine for unpickling data items that belong to said data type; the step of invoking a pickling mechanism is performed by invoking said first user-implemented routine; and the step of invoking an unpickling mechanism is performed by invoking said second user-implemented routine.
- 8. The computer-readable medium of claim 5 further comprising instructions for performing the step of said database system receiving a type declaration associated with said data type, wherein said type declaration specifies one or more attributes that are of data types that are supported by said database system.
- 9. The computer-readable medium of claim 8 further comprising sequences of instructions for performing the steps of:
said database system registering a user-specified computer-readable medium associated with a first attribute of said one or more attributes; said database system invoking said user-specified computer-readable medium to access said first attribute.
- 10. The computer-readable medium of claim 9 further comprising instructions for performing the steps of:
said database system registering a second user-specified computer-readable medium associated with a second attribute of said one or more attributes; said database system invoking said second user-specified computer-readable medium to access said second attribute.
- 11. The computer-readable medium of claim 8 wherein:
said native structure has a plurality of attributes; and said plurality of attributes do not have a one-to-one correspondence with said one or more attributes specified by said type declaration.
- 12. The computer-readable medium of claim 11 wherein said native structure has an attribute that does not correspond to any of said one or more attributes specified by said type declaration.
- 13. The computer-readable medium of claim 11 wherein said native structure does not have any attribute that corresponds to one of said one or more attributes specified by said type declaration.
RELATED APPLICATIONS
[0001] This application is a divisional of U.S. patent application Ser. No. 09/629,541, filed on Jul. 31, 2000, entitled “Opaque Types,” the contents of which are incorporated herein by reference in its entirety; this application is a continuation of U.S. Pat. No. 6,286,015 B1, issued on Sep. 4, 2001, entitled “Opaque Types,” the contents of which are incorporated herein by reference in its entirety, and which was copending with aforementioned U.S. patent application Ser. No. 09/629,541.
Divisions (1)
|
Number |
Date |
Country |
Parent |
09629541 |
Jul 2000 |
US |
Child |
10192411 |
Jul 2002 |
US |