# US 2003/0078902 A1 · Method, system, and program for maintaining a database of data objects

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0078902 A1
- Document ID: US20030078902A1
- Status: Published application
- Kind: A1
- Application number: 10/038,892
- Filed: 2001-10-22
- Published: 2003-04-24
- Earliest claimed: 2001-10-22
- Assignees: Sun Microsystems, Inc.
- Inventors: Terence Leong; Mahima Mallikarjuna; Julian S. Taylor
- Web page: https://patentgrep.com/patent/US20030078902A1

## CPC

- G06F 9/4493: {Object persistence}
- G06F 16/289: {Object oriented databases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is a method, system, and program for maintaining a database of data objects. A first data object implemented in a first programming language including attributes and attribute values for a class is received. The first data object is transformed to a second data object implemented in a second programming language, wherein the second data object includes the attributes and attribute values of the class included in the first data object. The second data object is added to the database, wherein the database is capable of storing multiple data objects implemented in the second programming language.

## Claims

### Claim 1

A method for maintaining a database of data objects, comprising:
receiving a first data object implemented in a first programming language including attributes and attribute values for a class;
transforming the first data object to a second data object implemented in a second programming language, wherein the second data object includes the attributes and attribute values of the class included in the first data object; and
adding the second data object to the database, wherein the database is capable of storing multiple data objects implemented in the second programming language.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a class schema including information on the class and attributes of the first data object; and
using the received class schema to transform the first data object to the second data object.

### Claim 3 (depends on 2)

The method of claim 2, wherein using the received class schema to transform the first data object to the second data object further comprises:
generating a source code file in the second programming language to implement the class and attributes included in the class schema;
compiling the source code file to generate an executable file that implements methods of the class;
using one method of the class to construct the second data object; and
including the attribute values from the first data object into the second data object.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the source code file in the second programming language further comprises:
generating statements into the source code file to define SET and GET interfaces for each attribute in the class.

### Claim 5 (depends on 4)

The method of claim 4, wherein including the attribute values from the first data object into the second data object further comprises:
using at least one GET method in the first programming language to access the attribute values from the first data object; and
using at least one SET method in the second programming language to set each attribute in the second data object to the corresponding accessed attribute value.

### Claim 6 (depends on 4)

The method of claim 4, wherein including the attribute values from the first data object into the second data object further comprises:
using at least one GET method in the first programming language to access the attribute values from the first data object; and
generating statements into the source code file to set the attributes in the second data object to the accessed attribute values from the first data object, wherein compiling the source code file produces the second data object with the attribute values set to the attribute values accessed from the first data object.

### Claim 7 (depends on 2)

The method of claim 2, wherein the class schema includes for each attribute a name, data type and length of the attribute.

### Claim 8 (depends on 2)

The method of claim 2, wherein the class schema is implemented in an Extensible Markup Language (XML) file.

### Claim 9 (depends on 1)

The method of claim 1, wherein the database comprises an object oriented database.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first programming language comprises a non-Java object oriented language and wherein the second programming language comprises the Java programming language.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
receiving a third data object implemented in the second programming language; and
adding the third data object to the database.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving a third data object implemented in a third programming language including attributes and attribute values for one class;
transforming the third data object to a fourth data object implemented in the second programming language, wherein the fourth data object includes the attributes and attribute values of the class included in the third data object; and
adding the fourth data object to he database.

### Claim 13

A method for returning data objects from a database to an application that processes data objects in a first programming language, comprising:
receiving a request from the application for at least one data object in the database having attributes and attribute values of a class;
accessing each requested data object from the database, wherein data objects in the database are implemented in a second programming language;
transforming each accessed data object to one transformed data object implemented in the first programming language, wherein each transformed data object includes the attributes and attribute values of the class in each accessed data object; and
returning each transformed data object in the first programming language to the application that initiated the request.

### Claim 14 (depends on 13)

The method of claim 13, wherein transforming each accessed data object to one transformed data object further comprises for each requested data object:
using a GET interface in the second programming language to access the attribute values in the accessed data object; and
using a SET interface in the first programming language to add each accessed attribute value from the accessed data object to the transformed data object.

### Claim 15 (depends on 13)

The method of claim 13, wherein the application that processes data objects in the first programming language comprises a first application, further comprising:
receiving a request for at least one data object in the database from a second application that processes data objects in the second programming language;
accessing each requested data object from the database; and
returning each data object accessed from the database in response to the request from the second application to the second application.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
providing at least one class schema, wherein each class schema includes information on one class and attributes of the class of at least one data object in the database, wherein transforming each accessed data object to one transformed data object further comprises, for each accessed data object, using information on the attributes in the class schema for the class of the accessed data object to transform the accessed data object to the transformed data object.

### Claim 17 (depends on 16)

The method of claim 16, wherein each class schema includes a length of each attribute in the class, and wherein using the information on the attributes in the class schema to transform each accessed data object to one transformed data object further comprises:
accessing information on the length for each attribute in the class schema to generate the transformed data object to have a size at least equal to the lengths of all of the attributes in the class.

### Claim 18 (depends on 13)

The method of claim 13, wherein the application requesting the at least one data object is capable of processing data objects in one of the first programming language or a third programming language, further comprising:
determining whether the application requesting the at least one data object processes data objects in the first programming language or the third programming language, wherein the step of transforming each accessed data object to the first programming language occurs if the application requesting the at least one data object processes data objects in the first programming language;
transforming each accessed data object to one transformed data object implemented in the third programming language if the application requesting the at least one data object processes data objects in the third programming language; and
returning each transformed data object in the third programming language to the application that initiated the request.

### Claim 19

A method for providing information on a class, comprising:
receiving a definition of a class and attributes in the class;
generating a file; and
adding information on the class and each attribute in the received class definition to the generated file.

### Claim 20 (depends on 19)

The method of claim 19, wherein adding information on each attribute to the generated file further comprises:
adding information on a name, length and data type of each attribute in the class in the received class definition to the generated file.

### Claim 21 (depends on 19)

The method of claim 19, further comprising:
generating at least one tagged element into the file including information on each attribute in the class.

### Claim 22 (depends on 21)

The method of claim 21, wherein generating the at least one tagged element into the file for each attribute in the class further comprises for each attribute of the class:
generating one tagged element into the file including information on a name of the attribute;
generating one tagged element into the file including information on a length of the attribute; and
generating one tagged element into the file including information on a data type of the attribute.

### Claim 23 (depends on 21)

The method of claim 21, wherein the generated file comprises an Extensible Markup Language (XML) file.

### Claim 24 (depends on 19)

The method of claim 19, further comprising:
accessing the definition of the class, including information on attributes of the class, from a source code file of the class.

### Claim 25

A system for maintaining a database of data objects, comprising:
a computer readable medium including the database of data objects;
means for receiving a first data object implemented in a first programming language including attributes and attribute values for a class;
means for transforming the first data object to a second data object implemented in a second programming language, wherein the second data object includes the attributes and attribute values of the class included in the first data object; and
means for adding the second data object to the database, wherein the database stores data objects implemented in the second programming language.

### Claim 26 (depends on 25)

The system of claim 25, further comprising:
means for receiving a class schema including information on the class and attributes of the first data object; and
means for using the received class schema to transform the first data object to the second data object.

### Claim 27 (depends on 26)

The system of claim 26, wherein the means for using the received class schema to transform the first data object to the second data object further performs:
generating a source code file in the second programming language to implement the class and attributes included in the class schema;
compiling the source code file to generate an executable file that implements methods of the class;
using one method of the class to construct the second data object; and
including the attribute values from the first data object into the second data object.

### Claim 28 (depends on 26)

The system of claim 26, wherein the class schema includes for each attribute a name, data type and length of the attribute.

### Claim 29 (depends on 25)

The system of claim 25, further comprising:
means for receiving a third data object implemented in the second programming language; and
means for adding the third data object to the database.

### Claim 30

A system for managing database requests from an application that processes data objects in a first programming language, comprising:
a computer readable medium including a database having data objects implemented in a second programming language;
means for receiving a request from the application for at least one data object in the database having attributes and attribute values of a class;
means for accessing each requested data object from the database;
means for transforming each accessed data object to one transformed data object implemented in the first programming language, wherein each transformed data object includes the attributes and attribute values of the class in each accessed data object; and
means for returning each transformed data object in the first programming language to the application that initiated the request.

### Claim 31 (depends on 30)

The system of claim 30, wherein the means for transforming each accessed data object to one transformed data object further performs for each requested data object:
using a GET interface in the second programming language to access the attribute values in the accessed data object; and
using a SET interface in the first programming language to add each accessed attribute value from the accessed data object to the transformed data object.

### Claim 32 (depends on 30)

The system of claim 30, wherein the application that processes data objects in the first programming language comprises a first application, further comprising:
means for receiving a request for at least one data object in the database from a second application that processes data objects in the second programming language;
means for accessing each requested data object from the database; and
means for returning each data object accessed from the database in response to the request from the second application to the second application.

### Claim 33 (depends on 30)

The system of claim 30, further comprising:
means for providing at least one class schema, wherein each class schema includes information on one class and attributes of the class of at least one data object in the database, wherein the means for transforming each accessed data object to one transformed data object further performs, for each accessed data object, using information on the attributes in the class schema for the class of the accessed data object to transform the accessed data object to the transformed data object.

### Claim 34 (depends on 30)

The system of claim 30, wherein the application requesting the at least one data object processes data objects in one of the first programming language or a third programming language, further comprising:
means for determining whether the application requesting the at least one data object processes data objects in the first programming language or the third programming language, wherein the accessed data object is transformed to the first programming language if the application requesting the at least one data object processes data objects in the first programming language;
means for transforming each accessed data object to one transformed data object implemented in the third programming language if the application requesting the at least one data object processes data objects in the third programming language; and
means for returning each transformed data object in the third programming language to the application that initiated the request.

### Claim 35

A system for providing information on a class, comprising:
a computer readable medium;
means for receiving a definition of a class and attributes in the class;
means for generating a file in the computer readable medium; and
means for adding information on the class and each attribute in the received class definition to the generated file.

### Claim 36 (depends on 35)

The system of claim 35, wherein the means for adding information on each attribute to the generated file further performs:
adding information on a name, length and data type of each attribute in the class in the received class definition to the generated file.

### Claim 37

An article of manufacture including code for maintaining a database of data objects, wherein the code causes operations to be performed comprising:
receiving a first data object implemented in a first programming language including attributes and attribute values for a class;
transforming the first data object to a second data object implemented in a second programming language, wherein the second data object includes the attributes and attribute values of the class included in the first data object; and
adding the second data object to the database, wherein the database is capable of storing multiple data objects implemented in the second programming language.

### Claim 38 (depends on 37)

The article of manufacture of claim 37, further comprising:
receiving a class schema including information on the class and attributes of the first data object; and
using the received class schema to transform the first data object to the second data object.

### Claim 39 (depends on 38)

The article of manufacture of claim 38, wherein using the received class schema to transform the first data object to the second data object further comprises:
generating a source code file in the second programming language to implement the class and attributes included in the class schema;
compiling the source code file to generate an executable file that implements methods of the class;
using one method of the class to construct the second data object; and
including the attribute values from the first data object into the second data object.

### Claim 40 (depends on 39)

The article of manufacture of claim 39, wherein generating the source code file in the second programming language further comprises:
generating statements into the source code file to define SET and GET interfaces for each attribute in the class.

### Claim 41 (depends on 40)

The article of manufacture of claim 40, wherein including the attribute values from the first data object into the second data object further comprises:
using at least one GET method in the first programming language to access the attribute values from the first data object; and
using at least one SET method in the second programming language to set each attribute in the second data object to the corresponding accessed attribute value.

### Claim 42 (depends on 40)

The article of manufacture of claim 40, wherein including the attribute values from the first data object into the second data object further comprises:
using at least one GET method in the first programming language to access the attribute values from the first data object; and
generating statements into the source code file to set the attributes in the second data object to the accessed attribute values from the first data object, wherein compiling the source code file produces the second data object with the attribute values set to the attribute values accessed from the first data object.

### Claim 43 (depends on 38)

The article of manufacture of claim 38, wherein the class schema includes for each attribute a name, data type and length of the attribute.

### Claim 44 (depends on 38)

The article of manufacture of claim 38, wherein the class schema is implemented in an Extensible Markup Language (XML) file.

### Claim 45 (depends on 37)

The article of manufacture of claim 37, wherein the database comprises an object oriented database.

### Claim 46 (depends on 37)

The article of manufacture of claim 37, wherein the first programming language comprises a non-Java object oriented language and wherein the second programming language comprises the Java programming language.

### Claim 47 (depends on 37)

The article of manufacture of claim 37, further comprising:
receiving a third data object implemented in the second programming language; and
adding the third data object to the database.

### Claim 48 (depends on 37)

The article of manufacture of claim 37, further comprising:
receiving a third data object implemented in a third programming language including attributes and attribute values for one class;
transforming the third data object to a fourth data object implemented in the second programming language, wherein the fourth data object includes the attributes and attribute values of the class included in the third data object; and
adding the fourth data object to he database.

### Claim 49

An article of manufacture including code for returning data objects from a database to an application that processes data objects in a first programming language, wherein the code causes operations to be performed comprising:
receiving a request from the application for at least one data object in the database having attributes and attribute values of a class;
accessing each requested data object from the database, wherein data objects in the database are implemented in a second programming language;
transforming each accessed data object to one transformed data object implemented in the first programming language, wherein each transformed data object includes the attributes and attribute values of the class in each accessed data object; and
returning each transformed data object in the first programming language to the application that initiated the request.

### Claim 50 (depends on 49)

The article of manufacture of claim 49, wherein transforming each accessed data object to one transformed data object further comprises for each requested data object:
using a GET interface in the second programming language to access the attribute values in the accessed data object; and
using a SET interface in the first programming language to add each accessed attribute value from the accessed data object to the transformed data object.

### Claim 51 (depends on 49)

The article of manufacture of claim 49, wherein the application that processes data objects in the first programming language comprises a first application, farther comprising:
receiving a request for at least one data object in the database from a second application that processes data objects in the second programming language;
accessing each requested data object from the database; and
returning each data object accessed from the database in response to the request from the second application to the second application.

### Claim 52 (depends on 49)

The article of manufacture of claim 49, further comprising:
providing at least one class schema, wherein each class schema includes information on one class and attributes of the class of at least one data object in the database, wherein transforming each accessed data object to one transformed data object further comprises, for each accessed data object, using information on the attributes in the class schema for the class of the accessed data object to transform the accessed data object to the transformed data object.

### Claim 53 (depends on 52)

The article of manufacture of claim 52, wherein each class schema includes a length of each attribute in the class, and wherein using the information on the attributes in the class schema to transform each accessed data object to one transformed data object farther comprises:
accessing information on the length for each attribute in the class schema to generate the transformed data object to have a size at least equal to the lengths of all of the attributes in the class.

### Claim 54 (depends on 49)

The article of manufacture of claim 49, wherein the application requesting the at least one data object is capable of processing data objects in one of the first programming language or a third programming language, further comprising:
determining whether the application requesting the at least one data object processes data objects in the first programming language or the third programming language, wherein the step of transforming each accessed data object to the first programming language occurs if the application requesting the at least one data object processes data objects in the first programming language;
transforming each accessed data object to one transformed data object implemented in the third programming language if the application requesting the at least one data object processes data objects in the third programming language; and
returning each transformed data object in the third programming language to the application that initiated the request.

### Claim 55

An article of manufacture including code for providing information on a class, wherein the code causes operations to be performed comprising:
receiving a definition of a class and attributes in the class;
generating a file; and
adding information on the class and each attribute in the received class definition to the generated file.

### Claim 56 (depends on 55)

The article of manufacture of claim 55, wherein adding information on each attribute to the generated file further comprises:
adding information on a name, length and data type of each attribute in the class in the received class definition to the generated file.

### Claim 57 (depends on 55)

The article of manufacture of claim 55, further comprising:
generating at least one tagged element into the file including information on each attribute in the class.

### Claim 58 (depends on 57)

The article of manufacture of claim 57, wherein generating the at least one tagged element into the file for each attribute in the class further comprises for each attribute of the class:
generating one tagged element into the file including information on a name of the attribute;
generating one tagged element into the file including information on a length of the attribute; and
generating one tagged element into the file including information on a data type of the attribute.

### Claim 59 (depends on 57)

The article of manufacture of claim 57, wherein the generated file comprises an Extensible Markup Language (XML) file.

### Claim 60 (depends on 55)

The article of manufacture of claim 55, further comprising:
accessing the definition of the class, including information on attributes of the class, from a source code file of the class.
