Loading...
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.
Loading...

This example uses the ODMG C++ Binding and the ODMG Object Query Language (OQL). Other C++ bindings and query languages for object-relational mapping products 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 databases (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-relational mapping

More on the general topic: How to access data in a relational database

Read more free articles on this site

There are nearly 400 pages of articles on this site with over 50 pages on object-relational mapping.

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-relational mapping.

Loading...

Related recent articles from Google News

Ruby on Rails 3.0 now available
Reuters
A new Active Model framework allows ORM (object-relational mapping) like Mongoid to use Active Record validation, callbacks, and serialization. ...
and more »
30 Aug 2010 at 9:02pm
Jolt Product Excellence Awards: App Libraries and Frameworks
Dr. Dobb's
Telerik rounds the package out with additional libraries for report generation, object relational mapping, and code analysis. There's the usual array of ...
Jolt Awards: And the Round 2 Winners Are... Dr. Dobb's (blog)
all 4 news articles »
1 Sep 2010 at 8:54am
Cover Story: Get Ready for the Entity Framework
Visual Studio Magazine
... positioned for enterprise-level projects with a host of new functionality that brings it more in line with other object-relational mapping (ORM) tools. ...
and more »
30 Aug 2010 at 10:45am
Sitefinity Web CMS Hits 4.0 Milestone, Adds an SDK
CMSWire
... allowing them to add Silverlight interface tricks or Telerik's own OpenAccess object-relational mapping plumbing tool to their sites. ...
and more »
16 Aug 2010 at 11:59am
Updated Oracle Enterprise Pack for Eclipse Aimed at Java Jocks
T.H.E. Journal
... which manages persistence and object-relational mapping for Java EE and Java SE environments; the EJB 3.1 specification; and the Servlet 3.0 spec. ...
and more »
11 Aug 2010 at 5:52pm
More related news on: "object-relational mapping"

Related books at Amazon.com

Data Structures and Algorithm Analysis in C++ (3rd Edition)
Data Structures and Algorithm Analysis in C++ (3rd Edition)
by Mark Allen Weiss
Average Customer Review: 3 stars based on 38 reviews.
Customer Review: I had to use this book in my second year of a CS course in Data Structures and was very satisfied with it. The book covers many data structures used in the computer science field along with their running time analysis. Most of the data structures include the C++ code, although some are simply explained. The brilliance of this book c...
ADTs, Data Structures, and Problem Solving with C++ (2nd Edition)
ADTs, Data Structures, and Problem Solving with C++ (2nd Edition)
by Larry R. Nyhoff
Average Customer Review: 4 stars based on 8 reviews.
Customer Review: I got a brand new book. It arrived within 5 days and was shipped nicely in a cushioned package. I recommend this product.
C++ Plus Data Structures
C++ Plus Data Structures
by Nell B. Dale
Average Customer Review: 2 stars based on 32 reviews.
Customer Review: I found this book easier to read among other data structures books like "Data Structures and Algorithm Analysis in c++ by Mark Allen", "Data Structures and Algorithms in C++ by Adam Drozdek", "Introduction to Algorithms by Thomas H.Cormen". This book has a lot of pictures that explain new concepts. Many data structures books only ha...
More related books: Search Amazon.com for object-relational mapping