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 from [...]
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 are [...]
October 9, 2008
The Design Decomposition Blog
is written by Doug Barry.

This example uses the ODMG Java Binding and the ODMG Object Query Language (OQL). Other query languages for object databases would be similar. Notice that all the code is Java, 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.

import org.odmg.*;
import java.util.Collection;
Implementation impl = new com.vendor.odmg.Implementation();
Database db = impl.newDatabase();
Transaction txn = impl.newTransaction();
try {
    db.open("addressDB", Database.OPEN_READ_WRITE);
    txn.begin();
    // perform query
    OQLQuery query = new OQLQuery(
       "select x from Person x where x.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();
    db.close();
}
//exception handling would go here ...

Related content for: Java 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: Java and object databases.

Related recent articles from Google News

IBM Flexes Java Muscles on Power7 Iron
IT Jungle
The good news is, the Power 750, which is the middle of the Power7 lineup, has plenty of oomph when it comes to Java workloads. Thanks not only to the fact ...
and more »
21 Mar 2010 at 10:35pm
Russia approves Oracle, Sun merger with conditions
Reuters
... it had approved a $7 billion takeover of Sun Microsystems JAVA.O by Oracle (ORCL.O) on condition that Oracle continues to develop Sun's MySQL database. ...
Oracle Cleared To Buy Sun Microsystems Russia Units-Prime-Tass Wall Street Journal
Russia gives conditional nod to Sun's takeover by Oracle TMCnet
OpenSSO becomes OpenAM LWN.net
Financial Advisory  -Benzinga
all 19 news articles »
19 Mar 2010 at 11:03am
Company profile: Oracle - its technology, strategy and acquisitions
Silicon.com
And with its recent multibillion-dollar acquisition of Sun Oracle has now added new tech including Java, MySQL, the Solaris OS, servers and storage to its ...
and more »
22 Mar 2010 at 4:19am
Terracotta Upgrades Ehcache
InformationWeek
Ehcache is a Java application caching system that has caught on with Java developers. It is a way to cache frequently used parts of an application and its ...
Amazon.com and Terracotta to Share Best Practices for Scaling Out Java Web ... Linux PR (press release)
all 2 news articles »
15 Mar 2010 at 8:29am
Twitter's only moving to this new database written in Java because everyone ...
Slashdot
by codepunk (167897) Until recently I thought the same way, I would never endorse a solution that involves java. However a recently came to the same ...

23 Feb 2010 at 8:04pm
More related news on: java database

Related books at Amazon.com

Succeeding with Object Databases: A Practical Look at Today's Implementations with Java and XML
Succeeding with Object Databases: A Practical Look at Today's Implementations with Java and XML
by Akmal B. Chaudhri, Roberto Zicari
Publisher: Wiley
Publication Date: September 2000
JADE (programming language): JADE (programming language), Database management system, Object-oriented programming, Object database, Application server, Client (computing), Java (programming language)
JADE (programming language): JADE (programming language), Database management system, Object-oriented programming, Object database, Application server, Client (computing), Java (programming language)
by Frederic P. Miller, Agnes F. Vandome, John McBrewster
Publisher: Alphascript Publishing
Publication Date: December 2009
Effective Use of Java Data Objects in Developing Database Applications; Advantages and Disadvantages
Effective Use of Java Data Objects in Developing Database Applications; Advantages and Disadvantages
by Paschalis Zilidis
Publisher: Storming Media
Publication Date: June 2004
Database Systems: A Practical Approach to Design, Implementation and Management: AND Objects First with Java, a Practical Introduction Using BlueJ
Database Systems: A Practical Approach to Design, Implementation and Management: AND Objects First with Java, a Practical Introduction Using BlueJ
by Thomas Connolly, Carolyn Begg
Average Customer Review: 3 stars based on 3 reviews.
Customer Review: This is an excellent book to use to teach students SQL in a very inexpensive way -- using Access. Although the book may not be in-depth enough for professionals, the authors do a great job of presenting the material in a very user friendly and systematic way for beginner students.
Implementation and Integration of the Object Transaction Service of Corba to a Java Application Database Program
Implementation and Integration of the Object Transaction Service of Corba to a Java Application Database Program
by Yildiray Hazir
Publisher: Storming Media
Publication Date: June 2000
More related books: Search Amazon.com for java object database