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-relational mapping products (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();
Extent 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 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: JDO and object databases.

Loading...

Related recent articles from Google News

Minimizing Your Attack Surface
CIO
They now offer features to analyze and report on data, run Java and other extensible languages, and have various levels of OS access built in. ...

8 Sep 2010 at 12:56pm
Oracle NetBeans review
Techworld.com
Oracle's NetBeans, like Eclipse, is an open source, plug-in-based IDE originally built for Java development, but extended to ...
and more »
8 Sep 2010 at 10:06am
Out-Law.com > Oracle sues Google over Java patent claims
Linex Legal (registration)
Oracle sues Google over Java patent claims Oracle has sued Google, claiming that the company's Android mobile phone operating system violates patents in ...
Protests planned for Oracle JavaOne event iT News
Software War Pits Oracle vs. Google New York Times
all 127 news articles »
30 Aug 2010 at 4:50am
Oracle's Java Google lawsuit: The beginning of Java's epitaph
San Francisco Chronicle (blog)
When Oracle was permitted to buy Sun, it also got MySQL which is the dominant database in the Internet world and Java which is one of the most dominant ...
Oracle: Google's Android Infringes Sun Java Patents InternetNews.com
Android Lawsuit Is Really Just Oracle Flirting With Google Forbes (blog)
Oracle Sues Google over Java Patents Xconomy
IPWatchdog.com  -Examiner.com  -White Hat News
all 813 news articles »
13 Aug 2010 at 6:48pm
Hurd is being considered for No. 2 spot at Oracle
Los Angeles Times
... which owns the Solaris operating system that powers corporate database computers, as well as Java, a platform that runs applications on mobile devices.
HP sues ex-CEO Hurd over new job at rival Oracle Forbes
Oracle names ex-HP CEO Mark Hurd co-president Forbes
Ex-HP chief joins Oracle as company president Irish Times
CIO
all 3,207 news articles »
6 Sep 2010 at 3:12pm
More related news on: database Java OR JDO OR "Java Data Objects"

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 JDO