System and method for providing user defined types in a database system
Abstract
A database system and method allows a user to write program code in a high-level programming language that implements a class that defines the structure of a user-defined type and methods that can be invoked on instances of the type. The class is then registered with the database system, which enforces a specific contract for user-defined types against the class. The contract comprises the following requirements. First, the class must specify one of a plurality of different formats for persisting instances of the user-defined type in a database store. Second, the class must be capable of returning a null value for the user-defined type. Third, the class must provide a method for converting the user-defined type to another type. Once these requirements are satisfied, the database system enables instances of the user-defined type to be created. A user-defined type can be used in all contexts where any other built-in type can be used. This includes defining columns of tables, declaring variables and parameters to functions and stored procedures, and evaluating expressions of the user-defined type in SQL queries and updates. Preferably, the database system stores metadata about the use
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-readable storage medium having stored thereon computer-executable instructions that, when executed on a computer system, causes the computer system to perform the step of: receiving code that implements a class defining the structure of a user-defined type and methods that can be invoked on instances of the user-defined type; enforcing a contract against the class, the contract comprising: a first requirement that the class specify one of a plurality of different formats for persisting instances of the user-defined type in a database store; a second requirement that the class be cap
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- Andrew Eisenberg et al., SQL: 1999, formerly known as SQL3, Mar. 1999, SIGMOD Record, vol. 28, No. 1, 131138.
- Andrews, T. et al., "Combining Language and Database Advances in an Object-Oriented Development Environment", OOPSLA Proceedings, Oct. 4-8, 1987, 430-440.
- Berg, C., "How Do I Create Persistent Java Objects?", Dr. Dobb's Journal, 1997, 22(4), 98-101.
- Bhattacharya, S. et al., "Coordinating Backup/Recovery and Data Consistency Between Database and File Systems", ACM SIGMOD, Jun. 4-6, 2002, 500-511.
- Biliris, A., "The Performance of Three Database Storage Structures for Managing Large Objects", ACM SIGMOD, 1992, 276-285.