Detailed comparison of ODMG 3.0 and JDO

This table shows a summary of the similarities and differences between the two approaches to transparent persistence: ODMG 3.0 and JDO. It is from a presentation at JavaOne by Heiko Bobzin of POET Software.

ODMG 3.0 JDO
Object Model
Transparent Persistence Transparent Persistence
Persistence by Reachability Persistence by Reachability
Java, C++, and Smalltalk Language Bindings on top of ODMG object model Tight integration with Java object model
Vendor specific interfaces PersistenceCapable interface
Collection factory for five basic collections Collection factory “by Example”, Second Class Objects
Object identity managed by database system Three identity models (more)
Life Cycle
Objects live until transaction completes Objects can live as long as PersistenceManager (more)
Objects can not be accessed after transaction completes API allows the setting of properties
Callbacks not defined Callbacks for load, store, delete, and clear
Databases and Transactions
Easy to use but proprietary database and transaction management Databases, connections and transactions fit into other Java APIs
No distributed transactions defined Support for distributed transactions
Vendor specific extensions for managed environments (EJB) Support for managed environments (EJB)
Vendor specific extension for optimistic locking Optimistic locking is optional API
Explicit locking of objects No explicit locking -- locks set automatically
Query
OQL: an extensive object query language Queries based on Java programming language -- JDOQL (more)
Complex query expressions Simple filter strings
Results can be compositions, projections or just an integer Results are always collections of persistence capable objects
Class name is part of query string Class objects explicitly used as parameters
No imports or name scope Imports, "this", named parameters

This table, copyright © 2001 FastObjects by Poet, used with permission.

 

For more information on transparent persistence, see:

bulletTransparent persistence for object databases (new window)
bulletTransparent persistence for relational databases using object-relational mapping products (new window)

Also see transparent persistence vs. JDBC call-level interface (new window).

For more information on ODMG 3.0 and JDO as well as other database specifications, see the menu choices at the right below.

 

Web Services and Service-Oriented Architectures
Online articles>
Consulting
Mentoring
Speaking
Suggested programs
Stencils for the Savvy Manager's Guide
Links
Mail list
Privacy policy
Sitemap
Contact
Web Services articles
XML standards and vocabularies
Application server articles
Database concepts and standards>
Object database articles
Relational database articles
Object-relational mapping articles
XML database articles
XML middleware articles
Article Sponsorship
Reprint policy
Basic concepts for using a DBMS
Database models
DBMS standards>
Article suggestions
SQL-92
JDBC
SQLJ
SQL:1999
ADO.NET
Java Data Objects (JDO)
ODMG 3.0
Detailed comparison of ODMG 3.0 and JDO>
Summary comparison of DBMS standards

Related books at Amazon.com


Object-oriented Data Structures Using Java
by Nell B. Dale, Daniel T. Joyce, Chip Weems
Average Customer Review: 3.5 stars based on 3 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

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 2 reviews.
Customer Review: Fails to address threading/concurrency issues. You will not find coverage of the new Concurrency Utilities including the new collection classes in package java.util.concurrent. You will not find the following terms in the index: concurrency synchronized thread thread-safe

Java Data Objects
by David Jordan, Craig Russell
Average Customer Review: 3.5 stars based on 11 reviews.
Customer Review: This book is definitely the best on java data objects! i have read the one from prentice hall and addison wesley`s. its true that the first code example doesnt work, what is a shame but if you overcome your frustration and have a look at the oreilly website you can fond the correct and again detailed information (and even reason) to...

Objects, Abstraction, Data Structures and Design: Using Java
by Elliot B. Koffman, Paul A. T. Wolfgang
Publisher: Wiley
Publication Date: August 2004

Data Structures and Software Development in an Object Oriented Domain, Java Edition
by Jean-Paul Tremblay, Grant A. Cheston
Publisher: Prentice Hall
Publication Date: August 2002

More related books: Search Amazon.com for "Java Data Objects"

 

Copyright © 2000-2008 Barry & Associates, Inc. All Rights Reserved.
You can use this material for your work or classes. Click here for our reprint policy.
www.service-architecture.com

 

 Information on becoming a sponsor

 

 

Google

 

Barry & Associates, Inc.