D.2. JDOHelper Properties

A PersistenceManagerFactory instance can be created via the getPersistenceManagerFactory() method on JDOHelper. This method takes a set of properties as an argument, which are then used to configure the returned PersistenceManagerFactory instance.

Table D-2 provides a list of the standard properties that can be used.

Table D-2. JDOHelper Properties
Property NameValue
javax.jdo.PersistenceManagerFactoryClassClass name of JDO implementation's PersistenceManagerFactory class
javax.jdo.option.Optimistictrue or false
javax.jdo.option.RetainValuestrue or false
javax.jdo.option.RestoreValuestrue or false
javax.jdo.option.IgnoreCachetrue or false
javax.jdo.option.NontransactionalReadtrue or false
javax.jdo.option.NontransactionalWrite ...

Get Core Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.