| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Changing Object Type in OODB
In another thread, a Java-only OODB proponent proposed the following as an obvious, straightforward design not requiring any thought:
>class Person
>class Employee extends Person
>class Manager extends Employee
I have the following question:
How does an existing object of type Employee change its type to Manager in the OODB or in Java?
Presumably, when I hire someone in a non-management position, I create an Employee object instance that is not a Manager object instance, and I give the new Employee object a specific identity.
If I later promote the person into a management position, I need to change the type of the Employee object instance into one that is also a Manager object instance, and I have to do so without changing the object instance's identity.
How is this done in Java? Received on Sun Jun 03 2001 - 11:59:41 CDT
![]() |
![]() |