Book description
Java Data Objects revolutionizes the way Java developers interact with databases and other datastores. JDO allows you to store and retrieve objects in a way that's natural to Java programmers. Instead of working with JDBC or EJB's container-managed persistence, you work directly with your Java objects. You don't have to copy data to and from database tables or issue SELECTs to perform queries: your JDO implementation takes care of persistence behind-the-scenes, and you make queries based on the fields of your Java objects, using normal Java syntax.
The result is software that is truly object-oriented: not code that is partially object-oriented, with a large database-shaped lump on the back end. JDO lets you save plain, ordinary Java objects, and does not force you to use different data models and types for dealing with storage. As a result, your code becomes easier to maintain, easier to re-use, and easier to test. And you're not tied to a specific database vendor: your JDO code is entirely database-independent. You don't even need to know whether the datastore is a relational database, an object database, or just a set of files.
This book, written by the JDO Specification Lead and one of the key contributors to the JDO Specification, is the definitive work on the JDO API. It gives you a thorough introduction to JDO, starting with a simple application that demonstrates many of JDO's capabilities. It shows you how to make classes persistent, how JDO maps persistent classes to the database, how to configure JDO at runtime, how to perform transactions, and how to make queries. More advanced chapters cover optional features such as nontransactional access and optimistic transactions. The book concludes by discussing the use of JDO in web applications and J2EE environments.
Whether you only want to read up on an interesting new technology, or are seriously considering an alternative to JDBC or EJB CMP, you'll find that this book is essential. It provides by far the most authoritative and complete coverage available.
Publisher resources
Table of contents
- Java Data Objects
- Dedication
- A Note Regarding Supplemental Files
- Foreword
- Preface
- 1. An Initial Tour
- 2. An Overview of JDO Interfaces
- 3. JDO Architectures
- 4. Defining Persistent Classes
- 5. Datastore Mappings
- 6. Class Enhancement
-
7. Establishing a JDO Runtime Environment
- Configuring a PersistenceManagerFactory
- Acquiring a PersistenceManager
- Transactions
- Multiple PersistenceManagers
- Multithreading
- 8. Instance Management
- 9. The JDO Query Language
- 10. Identity
- 11. Lifecycle States and Transitions
- 12. Field Management
- 13. Cache Management
- 14. Nontransactional Access
- 15. Optimistic Transactions
- 16. The Web-Server Environment
- 17. J2EE Application Servers
- A. Lifecycle States and Transitions
- B. JDO Metadata DTD
- C. JDO Interfaces and Exception Classes
- D. JDO Query Language BNF
- E. Source Code for Examples
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Java Data Objects
- Author(s):
- Release date: April 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596002763
You might also like
book
Core Java™ Data Objects
The experienced Java developer's guide to persistence with JDO! Master JDO, the breakthrough technology for persistenting …
book
Java™ Data Objects
Java Data Objects is a standardized Java API for object persistence. It facilitates the storage and …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Unicode Demystified
"Rich has a clear, colloquial style that allows him to make even complex Unicode matters understandable. …