public boolean getMultithreaded (); public void setMultithreaded (boolean threaded); public boolean getIgnoreCache (); public void setIgnoreCache (boolean ignore);
PersistenceManager interface includes
"getter" and "setter" methods for two configuration properties:
These properties are discussed in
Section 7.2.2, “PersistenceManager and Transaction Defaults”.
setting is passed on to all
Extent instances the
public void addInstanceLifecycleListener (InstanceLifecycleListener listen, Class classesOfInterest); public void removeInstanceLifecycleListener (InstanceLifecycleListener listen);
These methods allow you to add and remove listeners that are
notified when managed instances change lifecyle states. The lifecycle
event framework is discussed in detail in
Section 4.4.2, “InstanceLifecycleListener”.
When adding a new listener, you can supply an array of
persistent classes that the listener is interested in. The listener
will only receive events for these classes and their subclasses.
If the given array is
null, the listener will
receive events for all classes. The types of events the listener
receives is based on the
sub-interfaces it implements.