This example uses the ODMG Java Binding and the ODMG Object Query Language (OQL).
Other query languages for object-relational mapping products 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
databases (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();
// 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";
}
DevExpress Announces the Newest Version of Its .NET Business ... Market Wire (press release) - Apr 29, 2008 To learn more about DevExpress business application framework and object-relational mapping tools for .NET, and to download a fully functional evaluation ...
Data-Focused Visual Studio 2008 and .NET 3.5 SP1 Betas Released Redmondmag.com, CA - May 12, 2008 The object relational mapping framework, based on the Entity Data Model, is still a work in progress. Some problems will not be addressed in EF version 1 ...
Eclipse to release new plug-in ITWeb, South Africa - Apr 15, 2008 Robert Greene, the project lead, said the latest Eclipse plug-in is a standards-based object-relational mapping design time tool, built to comply with the ...
Cincom Smalltalk Releases ObjectStudio 8.1 and VisualWorks 7.6 Market Wire (press release) - Apr 28, 2008 ... Cincom VisualWorks 7.6 also supports Microsoft Vista, OSX Leopard and MySQL, and includes a supported object-relational mapping framework (GLORP).
Ruby on Rails: weapons of mass customisation IT Wales, UK - Apr 15, 2008 Rather than adopt a complex object-relational mapping schema as is common in the Java world Rails adopts the simpler, more direct "ActiveRecord" pattern. ...
Foundation for Object / Relational Databases: The Third Manifesto by C. J. Date, Hugh Darwen Average Customer Review: based on 4 reviews. Customer Review: Mr. Data and Mr. Darwen have much to say in this book. The question is will community of "database" people read it, assimilate it, and get to sufficient mass to discuss the merits of the concepts described in this book? And, if that does happen, will it be too late to implement any of the concepts in a real DBMS? There is no question...
C++ Database Development: Featuring Parody the Persistent Almost-Relational Object Database Management System by Al Stevens Average Customer Review: based on 1 review. Customer Review: Al Stevens, C++ Database Development (MIS Press, 1992) Two questions come to mind as to why anyone would be reading a ten-year-old book on database development in an outdated edition written to cater to an operating system that (almost) no longer exists in any meaningful way. (Or why they would be reading a review of such a book.) Tho...
Database Directions: From Relational to Distributed, Multimedia and Object-Oriented Database Systems by James Larson Average Customer Review: based on 1 review. Customer Review: This book should be renamed as Database Pocket Guide.Good for College students ,who just want to refer to refresh themselves.Good for Database Users whojust want to know little details about Distributed Databases.But for people who are really serious about Distributed Databases, this is not the right choice. A Good one could be "Manag...