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.
Property Name | Value |
---|---|
javax.jdo.PersistenceManagerFactoryClass | Class name of JDO implementation's PersistenceManagerFactory class |
javax.jdo.option.Optimistic | true or false |
javax.jdo.option.RetainValues | true or false |
javax.jdo.option.RestoreValues | true or false |
javax.jdo.option.IgnoreCache | true or false |
javax.jdo.option.NontransactionalRead | true or false |
javax.jdo.option.NontransactionalWrite | true or false |
javax.jdo.option.Multithreaded | true or false |
javax.jdo.option.ConnectionDriverName | Undefined[*] |
javax.jdo.option.ConnectionUserName | Undefined[*] |
javax.jdo.option.ConnectionPassword | Undefined[*] |
javax.jdo.option.ConnectionURL | Undefined[*] |
javax.jdo.option.ConnectionFactoryName | Undefined[*] |
javax.jdo.option.ConnectionFactory2Name | Undefined[*] |
[*] 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.