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. In a computer system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type comprises a plurality of fields, each of said plurality of fields being assigned any 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 data of the other of said plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field, a method comprising:
- 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 databasestoring 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.
2 Assignments
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.
37 Citations
24 Claims
-
1. In a computer system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type comprises a plurality of fields, each of said plurality of fields being assigned any 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 data of the other of said plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field, a method comprising:
-
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 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. In a computer system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type comprises a plurality of fields, each of said plurality of fields being assigned any 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 data of the other of said plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field, a method comprising:
-
receiving a request to store an object that is an instance of the user defined type; determining 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; storing the data in said at least one designated field of said plurality of fields of the instance of the user defined type as a file outside of the database store; 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; receiving a call from an application, via an application programming interface to a file system of the computer system, to open the file in which the data of said at least one field is stored outside the database store, wherein the call identifies the field of the object by its identity within the database store; determining 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 executing the call to open the file using the determined path. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer readable storage medium having program code stored thereon for use in a computer system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type comprises a plurality of fields, each of said plurality of fields being assigned any 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 data of the other of said plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field, said program code, when executed on a computer system, causing the computer system to:
-
create 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; receive 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; determine 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; store 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 store 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 (14, 15, 16)
-
-
17. A computer readable storage medium having program code stored thereon for use in a computer system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type comprises a plurality of fields, each of said plurality of fields being assigned any 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 data of the other of said plurality of fields of the type definition while maintaining the assigned data type of said at least one designated field, said program code, when executed on a computer system, causing the computer system to:
-
receive a request to store an object that is an instance of the user defined type; determine 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; store the data in said at least one designated field of said plurality of fields of the instance of the user defined type as a file outside of the database store; store 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; receive a call from an application, via an application programming interface to a file system of the computer system, to open the file in which the data of said at least one field is stored outside the database store, wherein the call identifies the field of the object by its identity within the database store; determining from the identity of the field of the object within the database store a path within the file system of the computer to the file containing the data of that field of the object; and executing the call to open the file using the determined path. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification