O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Core Java™ Data Objects

Book Description

The experienced Java developer's guide to persistence with JDO!

Master JDO, the breakthrough technology for persistenting Java objects!

Java Data Objects (JDO) streamlines development by providing Java-centric mechanisms for making objects persistent, and standard APIs for connecting application code with underlying persistent datastores. Core Java Data Objects is the definitive, comprehensive guide to JDO persistence for every experienced Java developer.

Using realistic code examples, this book's expert authors cover creating, reading, updating, and deleting persistent objects; object lifecycles and state transitions; JDO classes and APIs; queries, architecture, security, and much more. They show how to integrate JDO with EJB, JTA, JCA, and other J2EE technologies; and introduce best practices for using JDO in both standalone programs and J2EE components.

If you want to spend more time solving business problems and less time worrying about persistence, you need JDO. And you need the one book that'll help you make the most of JDO: Core Java Data Objects.

Every Core Series book:

  • DEMONSTRATES how to write commercial quality code

  • FEATURES nontrivial programs and examples--no toy code!

  • FOCUSES on the features and functions most important to real developers

  • PROVIDES objective, unbiased coverage of cutting-edge technologies -- no hype!

  • Core Java Data Objects delivers:

  • Practical examples showing how JDO can be applied to existing applications

  • Powerful insights for using JDO to architect new systems more effectively

  • Step-by-step guidance for integrating JDO with other J2EE technologies

  • Best practices for using JDO in real-world business environments

  • Table of Contents

    1. Copyright
    2. Praise for Core JAVA Data objects
    3. Foreword
    4. Preface
    5. Acknowledgments
    6. Introduction
      1. JDO Overview
        1. JDO Background
        2. Domain Object Model
        3. Orthogonal Persistence
        4. Non-Managed and Managed Environments
        5. Roles and Responsibilities
        6. Summary
      2. Object Persistence Fundamentals
        1. Persistence in Applications
        2. JDK Binary Serialization
        3. Object-Relational Mapping
        4. Rolling Your Own Persistence Mapping Layer
        5. Conclusion
    7. The Details
      1. Getting Started with JDO
        1. How Does JDO Work?
        2. The JDO Basics
        3. Defining a Class
        4. Connecting to a Datastore
        5. Creating an Object
        6. Reading an Object
        7. Updating an Object
        8. Deleting an Object
        9. JDO Object Model
        10. Exception Handling
        11. Object Identity
        12. Types of Object Identity
        13. Object Lifecycles
        14. Concurrency Control
        15. Summary
      2. Object Lifecycle
        1. A Persistent Object's Lifecycle
        2. Finding Out about an Object's State
        3. Operations That Change State
        4. Callbacks
        5. Optional States
        6. Putting It All Together
        7. Summary
      3. Developing with JDO
        1. JDO Concepts
        2. JDO Interfaces and Classes
        3. Basic APIs
        4. Exception Classes
        5. Additional APIs
        6. Service Provider Interface APIs
        7. Summary
      4. Finding Your Data
        1. Finding an Object by Identity
        2. Finding a Set of Objects Using an Extent
        3. Finding Objects with the Query Facility
        4. JDOQL
        5. Queries, Filters, and Optional parameters
        6. More on the Query Interface
        7. Summary
      5. Architecture Scenarios
        1. JDO versus JDBC
        2. RDBMS, ODBMS, and Flatfiles
        3. J2EE, RMI, and CORBA
        4. Managed and Non-Managed Environments
        5. Multi-Threaded Applications
        6. Summary
    8. J2EE
      1. JDO and the J2EE Connector Architecture
        1. J2EE Connector Architecture Overview
        2. JDO and the J2EE Connector Architecture
        3. Using JDO and the J2EE Connector Architecture
        4. Using JDO without the J2EE Connector Architecture
        5. Summary
      2. JDO and Enterprise JavaBeans
        1. Introduction
        2. Session Beans and JDO
        3. Message-Driven Beans and JDO
        4. Entity Beans and JDO
        5. To Use EJB or Not to Use EJB?
        6. Summary
      3. Security
        1. Security Levels
        2. Implementing PersistenceCapable
        3. Summary
      4. Transactions
        1. Transaction Concepts
        2. Transactions in Java
        3. Transactions in JDO
        4. Summary
    9. The Conclusion
      1. JDO and JDBC
        1. JDBC 2.0 and 3.0
        2. Example: Storing Objects in a Relational Database Using JDBC
        3. Comparison of JDBC and JDO
        4. Summary
      2. Tips, Tricks and Best Practices
        1. Data Modeling
        2. JDO and Servlets
        3. Keep Domain Classes Separate from Others
        4. Using XML as a Data Exchange Format
        5. Validation
        6. Summary
      3. The Road Ahead
        1. Advanced Transaction Semantics
        2. Performance Optimizations
        3. Managed Relationships
        4. Query Enhancements
        5. Object Mapping
        6. Enumeration Pattern
        7. Summary
      4. Case Study: The Core JDO Library
        1. Files, Packages and Object Model
        2. Persistent Model Package
        3. Use-case Package
        4. BookOperation Class
        5. Putting Things Together
      5. JDO States
        1. How the Tables Should Be Read
      6. XML Metadata
        1. Metadata Location
        2. Metadata Elements
        3. XML DTD
        4. Example
      7. JDOQL BNF Notation
        1. Grammar Notation
      8. PersistenceManager Factory Quick Reference
        1. Optional Features
        2. JDOHelper Properties
      9. JDO Implementations
        1. JDO Implementations
        2. Non-JDO-Compliant Java Persistence Solutions