Flylib.com
List of Listings
Previous page
Table of content
Next page
Chapter 1: Basic Concepts in JDO
Listing 1-1: A
Person
and His or Her
Dog
Listing 1-2: Storing Modifications Upon Transaction Commit
Listing 1-3: The
Heffalump
Class and Its Application Identity Class
Chapter 2: Queries
Listing 2-1: The Persistent Fields of the
Foo
and
Bar
Classes
Listing 2-2: The Persistent Fields of the
Song
and
Label
Classes
Listing 2-3: The Persistent Fields of the Library Classes
Listing 2-4: The Relational Tables for the Library Classes
Chapter 5: Enhanced Classes and Managed Fields
Listing 5-1: Sample No-Arg Constructor for Typical Application Data Class
Listing 5-2: Library Classes with Judicious Use of the
transient
Keyword
Listing 5-3: A Shallow
clone
Method for an Application Data Class
Listing 5-4: Simple JDO Metadata File
Listing 5-5: The JDO Metadata for the Library Example
Chapter 6: Factories that Produce Persistence Managers
Listing 6-1: Getting a
PersistenceManager
from a Connection Factory
Listing 6-2: Obtaining a
PersistenceManagerFactory
from
JDOHelper
Listing 6-3: Example of a Properties File Used to Obtain a
PersistenceManagerFactory
Listing 6-4: Code to Find a
PersistenceManagerFactory
in JNDI
Listing 6-5: Finding a
ConnectionFactory
in JNDI
Listing 6-6: Example of a CMT Session Bean That Uses JDO
Listing 6-7: Example of a BMP Entity Bean That Uses JDO
Listing 6-8: Example of Stateless BMT Session Bean That Uses JDO
Listing 6-9: Example of Stateful BMT Session Bean That Uses JDO
Chapter 7: Helpers, Callbacks, and Exceptions
Listing 7-1: Transient State Dependent on Persistent State
Listing 7-2: The Apple Class Captures the Identity String for a Datastore Identity
Listing 7-3: Deleting a Banana Split and the Objects That Compose It
Listing 7-4: Handling a Failed Optimistic Transaction
Listing 7-5: Handling All Exceptions When Explicitly Using JDO
Listing 7-6: Handling All Exceptions When Implicitly Using JDO
Chapter 8: Using JDO to Learn More
Listing 8-1: Expected Output from Running ant -projecthelp at the Command Line
Listing 8-2: Expected Output from Running ant testjdohelper
Listing 8-3: Expected Output from Running ant testfactory
Listing 8-4: Expected Output from Running ant megacups
Listing 8-5: Sample Output from the
MegaCups
Program
Listing 8-6: Expected Output from Running ant library
Listing 8-7: Example of Help Output from the
Library
Program
Listing 8-8: User Commands to Find All the Categories That Interest Tom
Listing 8-9: The Persistent Fields of the Apple Class
Listing 8-10: Expected Output from Running ant statetracker
Listing 8-11: Example of Help Output from the
StateTracker
Program
Listing 8-12: User Commands to Create a New McIntosh Apple with Three Worms
Listing 8-13: Sample Output from Committing the New McIntosh Apple
Listing 8-14: Sample Output from Snooping on the Hollow Apple
Chapter 9: Using JDO in a Swing Application
Listing 9-1: Selected Output from Running ant rental-gui
Chapter 10: Using JDO in a Web Application
Listing 10-1: Expected Output from Building the clean-out Target
Listing 10-2: Expected Output from Building the rental-servlet-opr Target
Listing 10-3: Excerpt from maine.jsp Where the Rental Table Rows Are Generated
Listing 10-4: The
flipReservations
Method of the
ReservationService
Listing 10-5: Implementation of the
SupportsIdentityString
Interface in the
Rental
Class
Listing 10-6: Implementation of the
SupportsVersion
Interface in the
Rental
Class
Listing 10-7: The
equals
and
hashCode
Methods for the
Rental
Application Data Class
Chapter 11: Using JDO in Enterprise JavaBeans
Listing 11-1: Excerpts of Expected Output from Building the rental-servlet-ejb Target
Listing 11-2: Expected End of Output from Building the sayings-stateless-cmt Target
Previous page
Table of content
Next page
Using and Understanding Java Data Objects
ISBN: 1590590430
EAN: 2147483647
Year: 2005
Pages: 156
Authors:
David Ezzio
BUY ON AMAZON
Beginners Guide to DarkBASIC Game Programming (Premier Press Game Development)
Welcome to DarkBASIC
Making Programs Think Branching Statements and Subroutines
Number Crunching Mathematical and Relational Operators and Commands
The Art of Using Animated Sprites for 2D Games
Loading and Saving Information Using Files
Qshell for iSeries
Additional Control Structures
The Integrated File System
Command-Line Arguments
Commands
Accessing OS/400-Specific Objects
Oracle Developer Forms Techniques
The Power of Record Groups
Creating a Customized Sign-on Form
The Work-around for PL/SQL 2.x Limitations in Forms 4.5
Object-oriented Methods in Forms
Normal Trigger Intelligence
Introducing Microsoft ASP.NET AJAX (Pro - Developer)
The Microsoft Client Library for AJAX
The AJAX Control Toolkit
Built-in Application Services
Remote Method Calls with ASP.NET AJAX
Building AJAX Applications with ASP.NET
GO! with Microsoft Office 2003 Brief (2nd Edition)
Objective 3. Describe Hardware Devices and Their Uses
Objective 8. Preview and Print Documents, Close a Document, and Close Word
Business Running Case
GO! with Help
Objective 4. Open a Saved Main Document for Mail Merge
Python Programming for the Absolute Beginner, 3rd Edition
Telling the Monkeys What to Do
Program Exits
Listboxes and Scrollbars
PyDraw: Painting and Moving Graphics
Strategies for Parsing Text in Python
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies