O'Reilly logo

Java™ Data Objects by Robin M. Roos

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

6.1. JDOHelper

JDOHelper is a concrete class that facilitates the bootstrapping of a JDO implementation. It also provides applications with methods to interrogate the state of JDO instances. Although it contains a constructor, all of the methods it defines are static and are commonly executed on the class name directly without first obtaining a JDOHelper instance.

The UML for JDOHelper is shown in Figure 6.1.

Figure 6.1. UML for JDOHelper

6.1.1. State interrogation

The following methods are used to determine the state of an instance:

  • isDirty(Object pc)

    Returns true for persistence-capable instances that have been changed in the current transaction. ...

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

Start Free Trial

No credit card required