Newletter Sign Up
Posts on the
Design Decomposition Blog
Iridium Satellite Collision in Space
You might have seen the recent news reports about the collision between U.S. and Russian communication satellites. The U.S. satellite was one of the Iridium satellites. What wasn’t reported and you probably don’t know is that an object database management system (ODBMS) is an important part of the Iridium system. Even though ODBMSs are a [...]
February 13, 2009
(The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services
I am now also posting on the Cutter Blog. My initial posting is (The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services. It is a response to Anne Thomas Manes’ SOA is Dead; Long Live Services on her blog at the Burton Group.
January 9, 2009
Atomicity
The typical definition of an atomic task or process is one that cannot be decomposed further. This is vague and subject to interpretation. The Decomposition Matrix on this site uses a specific definition: A task (for business process diagrams) or a process (for data flow diagrams) is atomic if every input relates to every output [...]
December 3, 2008
Well-Formed Business Process Diagrams
My last posting referenced the criteria for a well-formed business process diagram mentioned in Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. I am going to expand on their criteria to create a more comprehensive definition of a well-formed business process diagram. To start, here are three criteria [...]
November 18, 2008
Recent Business Process Modeling Books
I recently received two new books on business process modeling. Both books looked interesting because they had great titles. As it turns out, one book is great and the other not so good. The not so good book is Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. There [...]
October 9, 2008
The Design Decomposition Blog
is written by Doug Barry.

This example uses the ODMG C++ Binding and the ODMG Object Query Language (OQL). Other C++ bindings and query languages for object databases would be similar. Notice that all the code is C++, with the exception of the query string. You will not find a database sub-language in this example. The part in blue relates to the animation of transparent persistence (new window). More information on the ODMG specification (new window). Note that the same code would used for object-relational mapping products (new window). Transparent persistent interfaces work with both object database or object-relational mapping products.

d_Database db;
d_Transaction txn;
try {
    db.open("addressDB");
    txn.begin();
    // perform query
     d_OQL_Query query(
         "select x from Person x where x.name = \"Doug Barry\"");
    d_Bag<d_Ref<Person> >   allDougBarrys;
    d_oql_execute(query, allDougBarrys);
    d_Iterator<d_Ref<Person> > iter = allDougBarrys.create_iterator();
    // iterate over the results
    d_Ref<Person> p;
    while( iter.next(p) ){
       // do some addition processing on the person (not shown)
       // now traverse to the address object and update its value
       p->address.street = "13504 4th Avenue South";
    }
    txn.commit();
    db.close();
}
//exception handling would go here ...

Related content for: C++ and object databases

More on the general topic: How to access data in an object database

Read more free articles on this site

There are nearly 400 pages of articles on this site with over 50 pages on object-oriented database management systems.

Search this site for more articles

Custom Search

Browse this site for more articles

Click on the topics below to browse the articles on this site. You can see more detail by clicking on the arrows. This highlights the location of the current article: C++ and object databases.

Loading...

Related recent articles from Google News

Embarcadero Technologies Grows Delphi and C++ by 54% in 2011
EON: Enhanced Online News (press release)
SAN FRANCISCO--(EON: Enhanced Online News)--Embarcadero Technologies, a leading provider of software solutions for application and database development, announced today that worldwide sales for its new RAD family of development tools, including RAD ...
and more »
7 Feb 2012 at 7:36pm
Flexing NoSQL: MongoDB in review
InfoWorld
By Andrew Glover | InfoWorld The NoSQL movement has spawned a slew of alternative data stores, all of which attempt to fill voids left by traditional relational database implementations. But while it's easy to fit the various relational databases ...
and more »
8 Feb 2012 at 5:01am
Famous hackers discuss Zuckerberg's “Hacker Way” comments
VentureBeat
... a suite of web apps for code review, which Facebook uses for its own development; Cassandra, an open source distributed database management system; HipHop, which transforms source code from PHP to C++; the company's Javascript optimization efforts, ...
and more »
6 Feb 2012 at 11:43am
Halo 4: Game Includes Automated Bots for Multiplayer, According to Resume
Gamebandits (blog)
Some of his listed duties include the following: He worked on the automation using the language C# and in-game C++ for the creation of bots for a more challenging multiplayer. Using the C# language, he was able to create automated bots.
Rumor: Halo 4 to feature multiplayer bots Strategy Informer (press release)
all 4 news articles »
7 Feb 2012 at 8:39am
DBAs Can Get a University Education -- for Free
Microsoft Certified Professional
Other popular MIT offerings include Introduction to C++ and Introduction to Algorithms. Again, these are introductory, but you could also delve into Performance Engineering of Software Systems or the graduate-level Spatial Database Management and ...
and more »
27 Jan 2012 at 3:55am
More related news on: C++ database

Related books at Amazon.com

C++ Object Databases: Programming with the ODMG Standard
C++ Object Databases: Programming with the ODMG Standard
by David Jordan
Description: In 1991, the Object Database Management Group (ODMG) was formed to define standard interfaces for object databases. This standardization has since been achieved, and the popularity of object databases is on the rise. Similar to using SQL to access a relational database, the ODMG provides a corresponding standard for object databases. This book, technically reviewed by ODMG members,...
More related books: Search Amazon.com for C++ object database