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-relational
mapping products (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();
Extent people = pm.getExtent(Person.class, false);
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
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
Data Structures and Other Objects Using Java (3rd Edition) by Michael Main Average Customer Review: based on 13 reviews. Customer Review: I read a lot of confusing books by java experts that sometimes forget to go back to the simple basics when teaching simple minded readers. However, this book is for continuing readers of java who had some, but not expert training, experience in writing programs. What I liked most of this book is how he gives pointers on what to look...