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 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.



Core Java Data Objects
Core Java Data Objects
ISBN: 0131407317
EAN: 2147483647
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net