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

Loading...

Related recent articles from Google News

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.
Oracle names ex-HP CEO Mark Hurd co-president Forbes
all 1,098 news articles »
6 Sep 2010 at 3:12pm
Could Oracle fracture open source community?
ZDNet Asia
Unless you've had your head in the sand, you probably know that Oracle is suing Google over its use of Java in the Android operating system. ...

6 Sep 2010 at 10:53pm
Version 2.0 of NoSQL database Redis released
The H
Libraries to access the store are available for Ruby, Python, PHP, Erlang, Java, Scala, C#, C, Clojure and JavaScript. The new Virtual Memory feature allows ...

7 Sep 2010 at 3:55am
Out-Law.com > Oracle sues Google over Java patent claims
Linex Legal (registration)
... operating system violates patents in Java, a technology the database giant acquired when it bought Java inventor Sun Microsystems earlier this year. ...
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 ...
Google Sued By Oracle Over Android [Open-Source Mobile OS From Google Is Being ... TFTS (blog)
Oracle sues Google for patent infringement The Associated Press
Oracle: Google's Android Infringes Sun Java Patents InternetNews.com
Forbes (blog)  -Xconomy  -IPWatchdog.com
all 813 news articles »
13 Aug 2010 at 6:48pm
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
Average Customer Review: 1 star based on 1 review.
Customer Review: OK, caveat emptor. "JADE (programming language), Database management system, Object-oriented programming, Object database, Application server, Client (computing), Java (programming language)" is nothing but Wikipedia articles collected and printed as a "book". At a very high price too. The publisher, Alphascript, specialises in this, ...
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
More related books: Search Amazon.com for java object database