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.NontransactionalWritetrue or false
javax.jdo.option.Multithreadedtrue or false
javax.jdo.option.ConnectionDriverNameUndefined[*]
javax.jdo.option.ConnectionUserNameUndefined[*]
javax.jdo.option.ConnectionPasswordUndefined[*]
javax.jdo.option.ConnectionURLUndefined[*]
javax.jdo.option.ConnectionFactoryNameUndefined[*]
javax.jdo.option.ConnectionFactory2NameUndefined[*]

[*] The value of this property is specific to the JDO implementation being used.

The only required property is javax.jdo.PersistenceManagerFactory-Class; all others are optional. In addition to these standard properties, a JDO implementation may also support its own additional properties. Any properties not recognized by a JDO implementation are ignored.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset