This example uses the Java Data Objects (JDO) Binding. Notice that all the
code is Java. You will not find a
database sub-language in this example. The part in blue relates to the animation of
transparent
persistence (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 javax.jdo.*;
import java.util.Collection;
PersistenceManagerFactory pmf; // assume this variable is set
pmf.setConnectionUserName(" ");
pmf.setConnectionPassword(" ");
pmf.setConnectionURL("database URL");
PersistenceManager pm = pmf.getPersistenceManager();
Transaction txn = pm.currentTransaction();
txn.begin();
Collection people = pm.getExtent(Person.class, false);
Java Developer Bizcommunity.com, South Africa - Apr 9, 2008 A Cape Town based IT company requires a Java Developer with Java programming and syntax experience. Object Relational Mapping (Hibernate, JDO), ...
Java ORM Data Mapping Eclipse Plug-in Due Integration Developers, CA - Apr 11, 2008 ... development tools to ease round-trip engineering when using the JSR 220 (EJB 3.0 persistence) and JSR 243 (Java Data Objects) approaches to persistence. ...
Object-oriented Data Structures Using Java by Nell B. Dale, Daniel T. Joyce, Chip Weems Average Customer Review: 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: 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: 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...