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 Java Data Objects (JDO) Binding. Notice that all the code is Java. You will not find a database sub-language in this example. The part in blue relates to the animation of transparent persistence (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.

import javax.jdo.*;
import java.util.Collection;
PersistenceManagerFactory pmf; // assume this variable is set
pmf.setConnectionUserName("  ");
pmf.setConnectionPassword("  ");
pmf.setConnectionURL("database URL");
PersistenceManager pm = pmf.getPersistenceManager();
Transaction txn = pm.currentTransaction();
txn.begin();
Collection people = pm.getExtent(Person.class, false);
// perform query
Query query = pm.newQuery(Person.class, people, "name == \"Doug Barry\"");
Collection result = (Collection) query.execute();
    Iterator iter = result.iterator();
    // iterate over the results
    while ( iter.hasNext() )
    {
        Person person = (Person) iter.next();
        // do some addition processing on the person (not shown)
        // now traverse to the address object and update its value
        person.address.street = "13504 4th Avenue South";
    }
txn.commit();

Related content for: JDO 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: JDO 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
More related news on: "object-relational mapping"

Related books at Amazon.com

Object-oriented Data Structures Using Java
Object-oriented Data Structures Using Java
by Nell B. Dale
Average Customer Review: 3.5 stars based on 6 reviews.
Customer Review: This seller was very punctual with the shipping and delivery of the book and it was in very good condition like the ad had stipulated. I will recomment him to anyone ST
Data Structures and Other Objects Using Java (3rd Edition)
Data Structures and Other Objects Using Java (3rd Edition)
by Michael Main
Average Customer Review: 4 stars based on 17 reviews.
Customer Review: Even after taking a mid-level CS course where this book was the required text, this book still sits on my bookshelf at work for reference. Why? Well, certainly it is not the most comprehensive book of data structures in existence, nor is it written with a scholarly tone. But, that's the point! Michael Main's writing has the air of a...
Objects, Abstraction, Data Structures and Design: Using Java version 5.0
Objects, Abstraction, Data Structures and Design: Using Java version 5.0
by Elliot B. Koffman, Paul A. T. Wolfgang
Average Customer Review: 4 stars based on 5 reviews.
Customer Review: A reader wrote that, "this book fails to address concurrency issues". But the books title never commits this. It's about teaching data-structures using Java (correctly). And it exactly does this with great success. Although I read it to refresh my knowledge, I enjoyed a lot as I learn the subject first time. It's CS for beginners, bu...
More related books: Search Amazon.com for object-relational mapping