Toggle navigation
See also
Home
Programming
Java data objects
Appendix E. Source Code for Examples
Appendix E. Source Code for Examples
This appendix contains the source code for many of the classes used in the examples of this book.
Chapter 1. An Initial Tour
1.1 Defining a Persistent Object Model
1.2 Project Build Environment
1.3 Establish a Datastore Connection and Transaction
1.4 Operations on Instances
1.5 Summary
Chapter 2. An Overview of JDO Interfaces
2.1 The javax.jdo Package
2.2 The javax.jdo.spi Package
2.3 Optional Features
Chapter 3. JDO Architectures
3.1 Architecture Within Application JVM
3.2 Datastore Access
3.3 System Architectures with a JDO Application
Chapter 4. Defining Persistent Classes
4.1 Kinds of Classes and Instances
4.2 Java Classes and Metadata
4.3 Fields
Chapter 5. Datastore Mappings
5.1 Mapping Approaches
5.2 Relational Modeling Constructs
5.3 Modeling Constructs in Java and Relational Models
5.4 Mapping Classes to Tables
5.5 Mapping a Single-Valued Field to a Column
5.6 Identity
5.7 Inheritance
5.8 References
5.9 Collections and Relationships
Chapter 6. Class Enhancement
6.1 Enhancement Approaches
6.2 Binary Compatibility
6.3 Enhancement Effects on Your Code
6.4 Changes Made by the Enhancer
Chapter 7. Establishing a JDO Runtime Environment
7.1 Configuring a PersistenceManagerFactory
7.2 Acquiring a PersistenceManager
7.3 Transactions
7.4 Multiple PersistenceManagers
7.5 Multithreading
Chapter 8. Instance Management
8.1 Persistence of Instances
8.2 Extent Access
8.3 Accessing and Updating Instances
8.4 Deleting Instances
Chapter 9. The JDO Query Language
9.1 Query Components
9.2 Creating and Initializing a Query
9.3 Changes in the Cache
9.4 Query Namespaces
9.5 Query Execution
9.6 The Query Filter
9.7 Ordering Query Results
9.8 Closing a Query
Chapter 10. Identity
10.1 Overview
10.2 Datastore Identity
10.3 Application Identity
10.4 Nondurable Identity
10.5 Identity Methods
10.6 Advanced Topics
Chapter 11. Lifecycle States and Transitions
11.1 Lifecycle States
11.2 State Interrogation
11.3 State Transitions
Chapter 12. Field Management
12.1 Transactional Fields
12.2 null Values
12.3 Retrieval of Fields
12.4 Serialization
12.5 Managing Fields During Lifecycle Events
12.6 First- and Second-Class Objects
Chapter 13. Cache Management
13.1 Explicit Management of Instances in the Cache
13.2 Cloning
13.3 Transient-Transactional Instances
13.4 Making a Persistent Instance Transient
Chapter 14. Nontransactional Access
14.1 Nontransactional Features
14.2 Reading Outside a Transaction
14.3 Persistent-Nontransactional State
14.4 Retaining Values at Transaction Commit
14.5 Restoring Values at Transaction Rollback
14.6 Modifying Persistent Instances Outside a Transaction
Chapter 15. Optimistic Transactions
15.1 Verification at Commit
15.2 Optimistic Transaction State Transitions
15.3 Deleting Instances
15.4 Making Instances Transactional
15.5 Modifying Instances
15.6 Commit
15.7 Rollback
Chapter 16. The Web-Server Environment
16.1 Web Servers
16.2 Struts with JDO
Chapter 17. J2EE Application Servers
17.1 Enterprise JavaBeans Architecture
17.2 Stateless Session Beans
17.3 Bean-Managed Transactions
17.4 Message-Driven Beans
17.5 Persistent Entities and JDO
Appendix A. Lifecycle States and Transitions
Appendix B. JDO Metadata DTD
Appendix C. JDO Interfaces and Exception Classes
C.1 Interfaces
C.2 Exceptions
Appendix D. JDO Query Language BNF
D.1 Parameter Declaration
D.2 Variable Declaration
D.3 Import Declaration
D.4 Ordering Specification
D.5 Type Specification
D.6 Names
D.7 Literal
D.8 Filter Expressions
Appendix E. Source Code for Examples
E.1 The com.mediamania.appserver package
E.2 The com.mediamania.content package
E.3 The com.mediamania.hotcache package
E.4 The com.mediamania.store package
Remember the name: eTutorials.org
Copyright eTutorials.org 2008-2024. All rights reserved.