Cache, 137–140
controlling, 89–95
flushing before sending a query, 64
using or ignoring in a query, 62–64
Cache management, 116, 248
Cache size, managing, 354
Cache synchronization, 356–357
Cached persistent field values, 89
Cached persistent objects and state, 137–140
Cached state of objects prior to query execution, 63
Caching, transactions and, 103–141
Calculations, storing results of, 240–241
Callbacks (callback methods), 234–249. See also InstanceCallbacks interface
CandidateClass property, read-only, 39
captureIdentityString method, 242, 244
Cascading deletes, 7, 83, 245–248
Cast operator, 53
Catch block, 263–264
Catch-and-handle exception-handling strategy, 253
Catch-and-ignore exception-handling strategy, 252–253
Chaining embedded objects, 12
Change tracking, in supported system classes, 14
ChangeApplicationIdentity option, 96, 232
Checked exceptions, 250, 252
Class diagrams
Extent interface, 39, 388
InstanceCallbacks interface, 235, 394
JDOException class, 250, 395
JDOHelper class, 227, 393
PersistenceManager interface, 76, 390
PersistenceManagerFactory interface, 186, 392
prototype Customer class, 311, 396
prototype Lighthouse class, 312, 397
prototype Rental class, 313, 398
prototype Week class, 312, 396
Query interface, 42, 389
ReservationClientModel class, 317, 319, 400
ReservationService class, 315, 399
Synchronization interface, 121, 391
Transaction interface, 109, 391
Class disassembler, 148
Class hierarchy
derived class in, 229
for JDO exceptions, 255
class tag (JDO metadata), 169–173
application identity and inheritance, 172–173
examples of using, 171
class tag attributes (JDO metadata), 170–171
identity-type attribute, 170
name attribute, 170
objectid-class attribute, 31, 170–171
persistence-capable-superclass attribute, 171
requires-extent attribute, 170
ClassCastException, 53, 75, 146, 262
Classes (system supported), 8, 14
ClassLoader class, getResource method, 166
Clean, use of the term, 20
clean-out ant target, 276, 365
building, 323
output from building, 323
cleanup methods, 218
of ejbPassivate calls, 224
of QuoteServer bean, 217
of session bean, 223
clone method, 89, 158–159
Cloneable application data classes, 159
Cloneable interface, 158
Cloning, 89
enhancement and, 158–160
handling references in, 160
close command, 297
close methods, 40, 46–47, 77, 194, 216, 346
closeAll method
for extent iterators, 40
of Query interface, 46–47
Closed property (persistence manager), 78
Closing a persistence manager, 77–78, 201–202, 207–208, 334
Closing a persistence manager factory, 194
Clustered EJB container, 216
Clustering, 216, 355
CMP (container-managed persistence), 360
CMT message-driven bean, 225
CMT session bean
vs. BMT session bean, 220
using JDO in, 201–208
CMTs (container-managed transactions), 77, 103, 136, 199–201, 359. See also EJBs
Code mangling, enhancement and, 165
Collection objects, deleting, 247
Collection of strings, 196
collection tag (JDO metadata), 178–179
collection tag attributes, 179
Command classes, 284
Commercial JDO implementations, 362–363
downloading, 273–274
featured in this book, 298–299
licensing schemes of, 363
Commit (transaction), explained, 4, 6
commit command, 286–287
commit method (Transaction interface), 105, 109–110
commitTransaction method, 264
compile method (Query interface), 47
Complexity, scaling up in, 373
Composition, 245
Concurrency verification, 105
Conditional Boolean operators, 53–54, 57–58, 60
configure command, 295, 297
Connection factory
build targets, 364
configuring, 363–364
entity bean using, 219
obtaining from JNDI, 195
obtaining a persistence manager from, 187–188
properties defined by JDO, 199
ConnectionFactory interface, 185
ConnectionFactory2property, 199
ConnectionFactory2Name property, 199
ConnectionPassword property, 187
Connections to the datastore, configuring, 198–199
ConnectionUserName property, 187
Consistency requirement of transactions, 4, 104
Console user interface, 283–284
Constrained variables, 56
and Boolean logic, 59–60
semantics of, 58–59
Constructors
enhancement and, 150–152
for obtaining a persistence manager factory, 194
Containment relationship, 11
contains query method, 55, 57–58
contains query syntax and semantics, 57–58
Conversational state, 223
saving in servlet session, 344
and Web app design goals, 336–337
Create-and-drop cycle, avoiding, 338
createIfNone parameter, 223
create.sql file, 299
CRUD (Create, Retrieve, Update, and Delete), 3
c.tld file, 323
currentTransaction method, 98–99
Customer class (Rental Swing app), 311, 396
Customer object, 346
custom.properties file, 270–271, 274