public Properties getProperties (); public Collection supportedOptions ();
In addition to creating PersistenceManager
s,
the PersistenceManagerFactory
also supplies
metadata about the current JDO implementation. The
getProperties
method returns a
Properties
instance containing, at a
minimum, the following keys:
The supportedOptions
method returns a
Collection
of String
s
enumerating the JDO options supported by the implementation.
The following option names are recognized:
javax.jdo.option.TransientTransactional
:
Support for the transient-clean and transient-dirty lifecycle
states.
javax.jdo.option.NontransactionalRead
:
Support for the NontransactionalRead
property described in
Section 7.2.2, “PersistenceManager and Transaction Defaults”.
javax.jdo.option.NontransactionalWrite
:
Support for the NontransactionalWrite
property described in
Section 7.2.2, “PersistenceManager and Transaction Defaults”.
javax.jdo.option.RetainValues
:
Support for the RetainValues
property described in
Section 7.2.2, “PersistenceManager and Transaction Defaults”.
javax.jdo.option.Optimistic
:
Support for the Optimistic
property described in
Section 7.2.2, “PersistenceManager and Transaction Defaults”.
javax.jdo.option.ApplicationIdentity
:
Support for JDO application identity, as described in
Section 4.5.2, “Application Identity”.
javax.jdo.option.DatastoreIdentity
:
Support for JDO datastore identity, as described in
Section 4.5.1, “Datastore Identity”.
javax.jdo.option.NonDurableIdentity
:
Support for non-durable identity, a
seldom-used form of JDO identity not covered in this document.
javax.jdo.option.ArrayList
:
Support for persistent
java.util.ArrayList
fields.
javax.jdo.option.LinkedList
:
Support for persistent
java.util.LinkedList
fields.
javax.jdo.option.TreeMap
:
Support for persistent java.util.TreeMap
fields.
javax.jdo.option.TreeSet
:
Support for persistent java.util.TreeSet
fields.
javax.jdo.option.Vector
:
Support for persistent java.util.Vector
fields.
javax.jdo.option.List
:
Support for persistent java.util.List
fields.
javax.jdo.option.Array
:
Support for persistent array fields.
javax.jdo.option.NullCollection
: This
string will be present if the implementation can differentiate
between null
and empty collections and maps
when querying or loading data from the datastore.
javax.jdo.option.ChangeApplicationIdentity
:
This string will be present if the implementation allows
you to change the primary key fields of persistent objects,
effectively changing their identity.
javax.jdo.option.GetDataStoreConnection
:
Whether the
PersistenceManager.getDataStoreConnection
is supported.
javax.jdo.option.BinaryCompatibility
:
This string will be present if the implementation is
binary compatible with the JDO reference
enhancer.
javax.jdo.option.UnconstrainedQueryVariables
:
Support for unconstrained variables in
JDOQL queries. See
Example 11.10, “Unconstrained Variables”.
javax.jdo.query.JDOQL
: Support for JDOQL
queries. We discuss queries in
Chapter 11, Query.
javax.jdo.query.SQL
: Support for SQL
queries. We discuss SQL queries in
Chapter 17, SQL Queries.
Vendors may include strings for other options and query languages they support as well.
Note | |
---|---|
Kodo currently supports all options except
|