System and method for storing and retrieving a field of a user defined type outside of a database store in which the type is defined
First Claim
1. A method for storing data in a database store of a computer system, comprising:
- defining a type of an object that can be persisted in the database store, wherein the type definition comprises a plurality of fields;
assigning each of said plurality of fields one of a plurality of data types supported by the database store;
designating at least one of the plurality of fields of the type definition as containing data that is to be stored as a file outside of the database store separately from the data of the other fields of the plurality of fields of the type definition while maintaining its association to said other fields as part of the defined type and while maintaining the assigned data type of said at least one designated field;
creating a unique dedicated directory within a file system of the computer system for storing files containing the data of said at least one designated field of instances of the user defined type;
receiving requests to store objects that are different instances of the user defined type, and for each such request to store an object that is an instance of the user defined type;
determining from the designation of said at least one field of the instance of the user defined type that the data of that field is to be stored as a file outside of the database store;
storing the data of said at least one designated field of the instance of the user defined type as a respective file within the created directory; and
storing the data in each of the other fields of said plurality of fields of the instance of the user defined type within the database store.
1 Assignment
0 Petitions
Accused Products
Abstract
A type of an object that can be persisted in a database store is defined by a user. The type definition comprises fields and behaviors, each field having a respective data type. One or more fields of the type definition may be designated as containing data of a type that is to be stored as a file outside of the database store and separately from the other fields of the type definition. When a request is received to store an object that is an instance of the user defined type, the data in any so designated field of the object is stored in a file outside of the database store, preferably within a file system of the computer on which the database store is implemented. The data in each of the other fields of the object is stored within the database store in the usual manner. The database store maintains a link, or reference, between the persisted object and the data of the field that is stored as a file outside of the database store. Applications are provided “out of band” access, via the file system of the computer, to the file in which the data of given field is stored outside the database store.
34 Citations
19 Claims
-
1. A method for storing data in a database store of a computer system, comprising:
-
defining a type of an object that can be persisted in the database store, wherein the type definition comprises a plurality of fields; assigning each of said plurality of fields one of a plurality of data types supported by the database store; designating at least one of the plurality of fields of the type definition as containing data that is to be stored as a file outside of the database store separately from the data of the other fields of the plurality of fields of the type definition while maintaining its association to said other fields as part of the defined type and while maintaining the assigned data type of said at least one designated field; creating a unique dedicated directory within a file system of the computer system for storing files containing the data of said at least one designated field of instances of the user defined type; receiving requests to store objects that are different instances of the user defined type, and for each such request to store an object that is an instance of the user defined type; determining from the designation of said at least one field of the instance of the user defined type that the data of that field is to be stored as a file outside of the database store; storing the data of said at least one designated field of the instance of the user defined type as a respective file within the created directory; and storing the data in each of the other fields of said plurality of fields of the instance of the user defined type within the database store. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer system comprising:
-
a database store in which an object that is an instance of a user defined type can be persisted, wherein a definition of the user defined type comprises a plurality of fields, each field being assigned one of a plurality of data types supported by the database store, at least one of said plurality of fields of the definition being designated as containing data that is to be stored as a file outside of the database store separately from the other fields of the plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field; and a database engine that receives a request to store an object that is an instance of the user defined type and that, in response, determines from the designation of said at least one field that the data of that field is to be stored as a file outside of the database store, stores the data in said at least one designated field of the plurality of fields of the instance of the user defined type as a file outside of the database store and stores the data in each of the other fields of the plurality of fields of the instance of the user defined type within the database store, wherein a unique dedicated directory is created within a file system of the computer system for storing files containing the data of said at least one designated field of instances of the user defined type and wherein the database engine stores the data of said at least one designated field of instances of the user defined type as respective files within the created dedicated directory. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A computer system comprising:
-
a database store in which an object that is an instance of a user defined type can be persisted, wherein a definition of the user defined type comprises a plurality of fields, each field being assigned one of a plurality of data types supported by the database store, at least one of said plurality of fields of the definition being designated as containing data that is to be stored as a file outside of the database store separately from the other fields of the plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field; a database engine that receives a request to store an object that is an instance of the user defined type and that, in response, determines from the designation of said at least one field that the data of that field is to be stored as a file outside of the database store, stores the data in said at least one designated field of the plurality of fields of the instance of the user defined type as a file outside of the database store and stores the data in each of the other fields of the plurality of fields of the instance of the user defined type within the database store; and a file system having an application programming interface, wherein when the file system receives a call from an application, via the application programming interface to the file system of the computer system, to open the file in which the data of said at least one designated field is stored, and wherein the call identifies the field of the object by its identity within the database store, the computer system determines from the identity of the field of the object within the database store a path within the file system of the computer system to the file containing the data of that field of the object and executes the call to open the file using the determined path. - View Dependent Claims (17, 18, 19)
-
Specification