Chapter 17. Enterprise Features

Table of Contents

17.1. EEPersistenceManager object listeners
17.2. EEPersistenceManager transaction listeners
17.3. Datastore Cache
17.3.1. Overview of Kodo JDO Datastore Caching
17.3.2. Kodo JDO Cache Usage
17.3.3. Cache Extension
17.3.4. Important notes about the DataCache
17.3.5. Known issues and limitations
17.4. Query Extensions
17.4.1. Using extensions in queries
17.4.2. Included Kodo Extensions
17.4.3. Writing custom extensions
17.4.4. Configuring Extensions

Kodo JDO Enterprise Edition includes a number of proprietary features targeted at the enterprise developer. This chapter outlines these features.

17.1. EEPersistenceManager object listeners

Often, it is desirable to be able to do extra processing on a global basis when a change is made to an object. The JDO specification provides the javax.jdo.InstanceCallbacks interface to this end. However, if you wish to perform extra logic regardless of the type of the object, it is not ideal to require developers to make a callback to some global change listener. For example, if your application wished to log all deletes, you could use this callback mechanism to perform this logging without requiring that all your persistence-capable objects implement the jdoPreDelete() method.

The EEPersistenceManager uses the com.solarmetric.kodo.ee.ObjectEventListener interface to permit this type of global callback behavior. See the JavaDoc included with this documentation for more information on this interface.