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

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
OPNET Announces Solutions for High Definition Application Performance Management
MarketWatch (press release)
It performs High Definition monitoring and forensic analysis for any type of application, and excels in particular in Java and Microsoft .NET environments. ...
and more »
2 Sep 2010 at 8:12am
Verizon Mobilizes Field Techs with McObject's Database & BlackBerry Smartphones
Wireless Developer Network (press release)
McObject developed Perst Lite as a highly efficient, open source database for Java ME. As an object-oriented embedded DBMS, Perst Lite stores and retrieves ...

1 Sep 2010 at 9:51am
IBM touts "world's fastest processor" in $1m system
PC Pro
IBM said the result was 60% improvement in performance in intensive database tasks and a 66% boost for Java workloads. Anyone wanting to get their hands on ...
IBM to ship world's fastest chip IT PRO
all 93 news articles »
2 Sep 2010 at 6:15am
Silicon Valley companies making billion dollar deals
San Jose Mercury News
Already a software giant, it paid $7.4 billion for Sun Microsystems, partly to obtain its Java software programming tools. But Oracle also wanted Sun as a ...
and more »
2 Sep 2010 at 12:06am
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