![]() | |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I've programmed in C++, and I understand about storing objects in a file to achieve persistence. I also understand that relationships exist between objects. But 1) what is stored in an OODBMS that is useful? |
|
2) and under what circumstances would an SQL-like query be useful? |
|
From the objects that you retrieve in a query you can navigate to member objects, but you need a query |
|
In a data-only database one uses SQL to retrieve a series of records so that they can be displayed and perhaps changed, but how one would do this in an OO environment isn't obvious to me. Can you set selection criteria for object member data in the same way that you set selection criteria for "columns" in normal databases? I thought you couldn't access member data when the object is stored in the OODBMS. |
#3
| |||
| |||
|
|
1) what is stored in an OODBMS that is useful? |
|
2) and under what circumstances would an SQL-like query be useful? |
|
In a data-only database one uses SQL to retrieve a series of records so that they can be displayed and perhaps changed, but how one would do this in an OO environment |
#4
| |||
| |||
|
#5
| |||||
| |||||
|
|
1) It was mentioned that code (methods) might be stored in the DB; how would this be of help? |
|
2) Can one say that each class (i.e. object type) has a "table" (in the RDB sense)? If so, this has rather serious ramifications for inherited members. It also means that objects stored in the OODB have a unique ID. |
|
3) Are relationships recorded in the same way as in an RDB - 1:M and M:M? I assume that program code has to place the IDs in a "table" to establish the relationships between specific objects. Or would the OODBMS somehow know to record such relationships automatically. After all, it seems to know what members of an object that it needs to store. |
|
I also assume that the OODBMS handles referential integrity |
|
4) Once a query has returned several object "records" as a "set", is there a cursor to step through the objects, or does one simply get a list of objects as a collection? |
#6
| |||
| |||
|
|
I need some help understanding OODBMS'. I'm well versed in normal databases and SQL, and I understand object brokers, but I'm at a loss when it comes to OO databases. Perhaps someone could explain a few things or point me elsewhere for explanations. I've programmed in C++, and I understand about storing objects in a file to achieve persistence. I also understand that relationships exist between objects. But 1) what is stored in an OODBMS that is useful? 2) and under what circumstances would an SQL-like query be useful? In a data-only database one uses SQL to retrieve a series of records so that they can be displayed and perhaps changed, but how one would do this in an OO environment isn't obvious to me. Can you set selection criteria for object member data in the same way that you set selection criteria for "columns" in normal databases? I thought you couldn't access member data when the object is stored in the OODBMS. |
#7
| |||
| |||
|
|
They can't guarantee that the information is accessible and that the integrity of the information is protected. Some do provide a primitive type of SQL interface, but it is a mere shadow of the power of a relational query facility. |
#8
| |||
| |||
|
|
They can't guarantee that the information is accessible and that the integrity of the information is protected. Some do provide a primitive type of SQL interface, but it is a mere shadow of the power of a relational query facility. Could explain further? Or better yet, demonstrate with a simple example? |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Fully explaining the solid foundation and power of the relational model and normalization is beyond the scope of a usenet posting. If you really want to educate yourself, get over to Database Debunkings (http://www.dbdebunk.com). |

![]() |
| Thread Tools | |
| Display Modes | |
| |