This appendix describes the namespace, schema location, file structure, and elements in the Kodo-specific deployment descriptor, persistence-configuration.xml.
Kodo Deprecation Notes:
Oracle Kodo JPA/JDO is deprecated in this release of WebLogic Server. Customers are encouraged to consider using Oracle TopLink. For more information about Oracle TopLink, see Chapter 8, "Configuring the Persistence Provider in Oracle WebLogic Server".WebLogic Server does not support JPA 2.0 when using Kodo. For more information, see Using Oracle TopLink in Oracle WebLogic Server.
This appendix includes the following sections:
persistence-configuration.xml Namespace Declaration and Schema Location
persistence-configuration.xml Deployment Descriptor File Structure
persistence-configuration.xml Deployment Descriptor Elements
The correct text for the namespace declaration and schema location for the Kodo persistence-configuration.xml file is as follows.
<persistence-configuration
xmlns="http://xmlns.oracle.com/weblogic/persistence-configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/persistence-configuration
http://xmlns.oracle.com/weblogic/persistence-configuration/1.0/persistence-configuration.xsd">
...
</persistence-configuration>
The persistence-configuration.xml deployment descriptor file describes the elements that are unique to Oracle Kodo.
The top-level elements in the Kodo persistence-configuration.xml are as follows:
persistence-configuration-unit
default-broker-factory | abstract-store-broker-factory | client-broker-factory | jdbc-broker-factory | custom-broker-factory
default-compatibility | compatibility | default-compatibility
default-data-cache-manager | kodo-data-cache-manager | data-cache-manager-impl | custom-data-cache-manager
access-dictionary | db2-dictionary | derby-dictionary | empress-dictionary | foxpro-dictionary | hsql-dictionary | informix-dictionary | jdatastore-dictionary | mysql-dictionary | oracle-dictionary | postgres-dictionary | sql-server-dictionary | sybase-dictionary | custom-dictionary
default-detach-state | detach-options-loaded | detach-options-fetch-groups | detach-options-all | custom-detach-state
default-driver-data-source | kodo-pooling-data-source | simple-driver-data-source | custom-driver-data-source
stack-execution-context-name-provider | transaction-name-execution-context-name-provider | user-object-execution-context-name-provider
none-profiling | local-profiling | export-profiling | gui-profiling
none-jmx | local-jmx | gui-jmx | jmx2-jmx | mx4j1-jmx | wls81-jmx
default-lock-manager | pessimistic-lock-manager | none-lock-manager | single-jvm-exclusive-lock-manager | version-lock-manager | custom-lock-manager
commons-log-factory | log4j-log-factory | log-factory-impl | none-log-factory | custom-log
default-mapping-defaults | deprecated-jdo-mapping-defaults | mapping-defaults-impl | persistence-mapping-defaults | custom-mapping-defaults
extension-deprecated-jdo-mapping-factory | kodo-persistence-mapping-factory | mapping-file-deprecated-jdo-mapping-factory | orm-file-jdor-mapping-factory | table-deprecated-jdo-mapping-factory | table-jdor-mapping-factory | custom-mapping-factory
default-meta-data-factory | jdo-meta-data-factory | deprecated-jdo-meta-data-factory | kodo-persistence-meta-data-factory | custom-meta-data-factory
default-meta-data-repository | kodo-mapping-repository | custom-meta-data-repository
default-orphaned-key-action | log-orphaned-key-action | exception-orphaned-key-action | none-orphaned-key-action | custom-orphaned-key-action
default-proxy-manager | profiling-proxy-manager | proxy-manger-impl | custom-proxy-manager
default-query-compilation-cache | cache-map | concurrent-hash-map | custom-query-compilation-cache
jms-remote-commit-provider | single-jvm-remote-commit-provider | tcp-remote-commit-provider | cluster-remote-commit-provider | custom-remote-commit-provider
default-savepoint-manager | in-memory-savepoint-manager | jdbc3-savepoint-manager | oracle-savepoint-manager | custom-savepoint-manager
default-schema-factory | dynamic-schema-factory | file-schema-factory | lazy-schema-factory | table-schema-factory | custom-schema-factory
class-table-jdbc-seq | native-jdbc-seq | table-jdbc-seq | time-seeded-seq | value-table-jdbc-seq | custom-seq
default-update-manager | constraint-update-manager | batching-operation-order-update-manager | operation-order-update-manager | table-lock-update-manager | custom-update-manager
The following list of the elements in persistence-configuration.xml includes all elements that are supported in this release of Kodo.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Defines configuration values for the Access Dictionary. For a complete description of each of the values that you can specify, see "Access Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The default values for each of the configuration values are shown in the example below.
<access-dictionary>
<char-type-name>CHAR</char-type-name>
<outer-join-clause>LEFT OUTER JOIN</outer-join-clause>
<binary-type-name>BINARY</binary-type-name>
<clob-type-name>CLOB</clob-type-name>
<supports-locking-with-distinct-clause>true</supports-locking-with-distinct-clause>
<simulate-locking>false</simulate-locking>
<system-tables>true</system-tables>
<concatenate-function>({0}||{1})</concatenate-function>
<substring-function-name>SUBSTR</substring-function-name>
<supports-query-timeout>true</supports-query-timeout>
<use-set-bytes-for-blobs>true</use-set-bytes-for-blobs>
<max-constraint-name-length>18</max-constraint-name-length>
<search-string-escape>\\</search-string-escape>
<supports-cascade-update-action>true</supports-cascade-update-action>
<string-length-function>CHAR_LENGTH({0})</string-length-function>
<long-varbinary-type-name>LONGVARBINARY</long-varbinary-type-name>
<supports-unique-constraints>true</supports-unique-constraints>
<supports-restrict-delete-action>true</supports-restrict-delete-action>
<trim-leading-function>LTRIM(LEADING '{1}' from {0})</trim-leading-function>
<supports-default-delete-action>false</supports-default-delete-action>
<next-sequence-query></next-sequence-query>
<long-varchar-type-name>LONGVARCHAR</long-varchar-type-name>
<cross-join-clause>CROSS JOIN</cross-join-clause>
<max-embedded-clob-size>-1</max-embedded-clob-size>
<date-type-name>DATE</date-type-name>
<supports-schema-for-get-tables>true</supports-schema-for-get-tables>
<supports-alter-table-with-drop-column>true</supports-alter-table-with-drop-column>
<current-time-function>CURRENT_TIME</current-time-function>
<requires-condition-for-cross-join>false</requires-condition-for-cross-join>
<ref-type-name>REF</ref-type-name>
<concatenate-delimiter>'OPENJPATOKEN'</concatenate-delimiter>
<catalog-separator>.</catalog-separator>
<supports-mod-operator>false</supports-mod-operator>
<schema-case>upper</schema-case>
<java-object-type-name>JAVA_OBJECT</java-object-type-name>
<driver-vendor></driver-vendor>
<supports-locking-with-multiple-tables>true</supports-locking-with-multiple-tables>
<max-column-name-length>128</max-column-name-length>
<double-type-name>DOUBLE</double-type-name>
<use-get-string-for-clobs>false</use-get-string-for-clobs>
<decimal-type-name>DECIMAL</decimal-type-name>
<smallint-type-name>SMALLINT</smallint-type-name>
<date-precision>1000000</date-precision>
<supports-alter-table-with-add-column>true</supports-alter-table-with-add-column>
<bit-type-name>BIT</bit-type-name>
<supports-null-table-for-get-columns>true</supports-null-table-for-get-columns>
<to-upper-case-function>UPPER({0}))</to-upper-case-function>
<supports-select-end-index>false</supprots-select-end-index>
<supports-auto-assign>false</supports-auto-assign>
<store-large-numbers-as-strings>false</store-large-numbers-as-strings>
<constraint-name-mode>before</constraint-name-mode>
<allows-alias-in-bulk-clause>true</allows-alias-in-bulk-clause>
<supports-select-for-update>true</supports-select-for-update>
<distinct-count-column-separator></distinct-count-column-separator>
<supports-subselect>true</supports-subselect>
<time-type-name>TIME</time-type-name>
<auto-assign-type-name></auto-assign-type-name>
<use-get-object-for-blobs>false</use-get-object-for-blobs>
<max-auto-assign-name-length>31</max-auto-assign-name-length>
<validation-sql></validation-sql>
<struct-type-name>STRUCT</struct-type-name>
<varchar-type-name>VARCHAR</varchar-type-name>
<range-position>0</range-position>
<supports-restrict-update-action>true</supports-restrict-update-action>
<auto-assign-clause></auto-assign-clause>
<supports-multiple-nontransactional-result-sets>true</supports-multiple-nontransactional-result-sets>
<bit-length-function>(OCTET_LENGTH({0}) * 8)</bit-length-function>
<create-primary-keys>true</create-primary-keys>
<null-type-name>NULL</null-type-name>
<float-type-name>FLOAT</float-type-name>
<use-get-bytes-for-blobs>true</use-get-bytes-for-blobs>
<table-types>TABLE</table-types>
<numeric-type-name>NUMERIC</numeric-type-name>
<table-for-update-clause></table-for-update-clause>
<integer-type-name>INTEGER<integer-type-name>
<blob-type-name>BLOB</blob-type-name>
<for-update-clause>FOR UPDATE</for-update-clause>
<boolean-type-name>BOOLEAN</boolean-type-name>
<use-get-best-row-identifier-for-primary-keys>false</use-get-best-row-identifier-for-primary-keys>
<supports-foreign-keys>true</supports-foreign-keys>
<drop-table-sql>DROP TABLE {0}</drop-table-sql>
<use-set-string-for-clobs>false</use-set-string-for-clobs>
<supports-locking-with-order-clause>false</supports-locking-with-order-clause>
<platform>Generic</platform>
<fixed-size-type-names></fixed-size-type-names>
<store-chars-as-numbers>true</store-chars-as-numbers>
<max-indexes-per-table>2147483647</max-indexes-per-table>
<requires-cast-for-comparisons>false</requires-cast-for-comparisons>
<supports-having>true</supports-having>
<supports-locking-with-outer-join>true</supports-locking-with-outer-join>
<supports-correlated-subselect>true</supports-correlated-subselect>
<supports-null-table-for-get-imported-keys>false</supports-null-table-for-get-imported-keys>
<bigint-type-name>BIGINT</bigint-type-name>
<last-generated-key-query></last-generated-key-query>
<reserved-words></reserved-words>
<supports-null-update-action>true</supports-null-update-action>
<use-schema-name>true</use-schema-name>
<supports-deferred-constraints>true</supports-deferred-constraints>
<real-type-name>REAL</real-type-name>
<requires-alias-for-subselect>false</requires-alias-for-subselect>
<supports-null-table-for-get-index-info>false</supports-null-table-for-get-index-info>
<trim-trailing-function>TRIM(TRAILING '{1}' FROM {0}))</trim-trailing-function>
<supports-locking-with-select-range>true</supports-locking-with-select-range>
<storage-limitations-fatal>false</storage-limitations-fatal>
<supports-locking-with-inner-join>true</supports-locking-with-inner-join>
<current-timestamp-function>CURRENT_TIMESTAMP</current-timestamp-funct <cast-function>CAST({0} AS {1})</cast-function>
<other-type-name>OTHER</other-type-name>
<max-index-name-length>128</max-index-name-length>
<distinct-type-name>DISTINCT</distinct-type-name>
<character-column-size>255</character-column-size>
<varbinary-type-name>VARBINARY</varbinary-type-name>
<max-table-name-length>128</max-table-name-length>
<close-pool-sql></close-pool-sql>
<current-date-function>CURRENT_DATE</current-date-function>
<join-syntax>sql92</join-syntax>
<max-embedded-blob-size>-1</max-embedded-blob-size>
<trim-both-function>TRIM(BOTH '{1}' FROM {0})</trim-both-function>
<supports-select-start-index>false</supports-select-start-index>
<to-lower-case-function>LOWER({0})</to-lower-case-function>
<array-type-name>ARRAY</array-type-name>
<inner-join-clause>INNER JOIN</inner-join-clause>
<supports-default-update-action>true</supports-default-update-action>
<supports-schema-for-get-columns>true</supports-schema-for-get-columns>
<tinyint-type-name>TINYINT</tinyint-type-name>
<supports-null-table-for-get-primary-keys>false</supports-null-table-for-get-primary-keys>
<system-schemas></system-schemas>
<requires-cast-for-math-functions>false</requires-cast-for-math-functions>
<supports-null-delete-action>true</supports-null-delete-action>
<requires-auto-commit-for-meta-data>false</requires-auto-commit-for-meta-data>
<timestamp-type-name>TIMESTAMP</timestamp-type-name>
<initialization-sql></initialization-sql>
<supports-cascade-delete-action>true</supports-cascade-delete-action>
<supports-timestamp-nanos>true</supports-timestamp-nanos>
</access-dictionary>
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
detach-options-all
persistence-configuration
persistence-configuration-unit
detach-options-fetch-groups
persistence-configuration
persistence-configuration-unit
detach-options-loaded
Range of values: warn | exception
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
inverse-manager
Range of values: Valid IP addresses
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Integer
Default value: 50
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values:
persistence-configuration-unit: datastore | all
kodo-broker: 0 | 1
Default value: datastore (0)
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values:
auto-detaches: close | commit | nontx-read
kodo-broker: 0 | 1 | 2
Default value: close (0)
Parent elements:
persistence-configuration
persistence-configuration-unit
auto-detaches
persistence-configuration
persistence-configuration-unit
kodo-broker
auto-detach
Specifies the event on which the managed instances are automatically detached. When specified as a child of the auto-detaches element, valid event types include:
close (0)—Detach all objects when the PersistenceManager closes. This is the default.
commit (1)—Detach all objects when a transaction ends.
nontx-read (2)—Reads outside of a transactions will automatically detach instances before returning them.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a list of events on which the managed instances are automatically detached. Specifies one or more auto-detach elements. For more information, see "Automatic Detachment" in Kodo JPA/JDO Reference for Oracle WebLogic Server.
Range of values: N/A
Default value: N/A
Parent elements:
profiling
Range of values: Integer
Default value: 10
Parent elements:
persistence-configuration
persistence-configuration-unit
cluster-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Integer
Default value: 1000
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-concurrent-data-cache
persistence-configuration
persistence-configuration-unit
lru-data-cache
persistence-configuration
persistence-configuration-unit
kodo-query-cache
persistence-configuration
persistence-configuration-unit
lru-query-cache
Range of values: String
Default value: openjpa.Runtime
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.Seq interface to use to create your own custom generators, in this case kodo.jdbc.kernel.TableJDBCSeq.
The TableJDBCSeq uses a special single-row table to store a global sequence number. If the table does not already exist, it is created the first time you run the mapping tool on a class that requires it. You can also use the class' main method or the sequencetable shell/bat script to manipulate the table; see the TableJDBCSeq.main method Javadoc for usage details.
<class-table-jdbc-seq>
<type>0</type>
<allocate>50</allocate>
<table-name>OPENJPA_SEQUENCES_TABLE</table-name>
<ignore-virtual>false</ignore-virtual>
<ignore-unmapped>false</ignore-unmapped>
<table>OPENJPA_SEQUENCES_TABLE</table>
<primary-key-column>ID</primary-key-column>
<use-aliases>false</use-aliases>
<sequence-column>SEQUENCE_VALUE</sequence-column>
<increment>1</increment>
</class-table-jdbc-seq>
Range of values: Valid classname
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
aggregate-listener
custom-aggregate-listener
persistence-configuration
persistence-configuration-unit
custom-broker-factory
persistence-configuration
persistence-configuration-unit
custom-broker-impl
persistence-configuration
persistence-configuration-unit
custom-class-resolver
persistence-configuration
persistence-configuration-unit
custom-compatibility
persistence-configuration
persistence-configuration-unit
custom-connection-decorator
persistence-configuration
persistence-configuration-unit
custom-data-cache
persistence-configuration
persistence-configuration-unit
custom-dictionary
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Flag that specifies whether the JDO PersistenceManager closes after a managed transaction commits, assuming you have invoked the close method.
If set to false, then the PersistenceManager will not close. This means that objects passed to a processing tier in the same JVM will still be usable, as their owning PersistenceManager will still be open. This behavior is not in strict compliance with the JDO specification, but is convenient for applications that were coded against Kodo 2.x, which did not close the PersistenceManager in these situations.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies the Apache Jakarta Commons Logging thin library for issuing log messages. The Commons Logging libraries act as a wrapper around a number of popular logging APIs, including the Jakarta Log4J project, and the native java.util.logging package in JDK 1.4. If neither of these libraries are available, then logging will fall back to using simple console logging.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
<compatibility>
<copy-object-ids>false</copy-object-ids>
<close-on-managed-commit>true</close-on-managed-commit>
<validate-true-checks-store>false</validate-true-checks-store>
<validate-false-returns-hollow>true</validate-false-returns-hollow>
<strict-identity-values>false</strict-identity-values>
<quoted-numbers-in-queries>false</quoted-numbers-in-queries>
</compatibility>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing org.apache.openjpa.lib.jdbc.ConnectionDecorator implementations to install on the connection factory. Specify one or more custom-connection-decorator elements.
These decorators can wrap connections passed from the underlying DataSource to add functionality. Kodo will pass all connections through the list of decorators before using them.
Note:
By default Kodo JPA/JDO employs all of the built-in decorators in thecom.solarmetric.jdbc package already; you do not need to list them here.Range of values: Valid classname
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-pooling-data-source
persistence-configuration
persistence-configuration-unit
simple-driver-data-source
Full class name of either the JDBC java.sql.Driver or a javax.sql.DataSource implementation to use to connect to the database.
The following provides sample values:
COM.FirstSQL.Dbcp.DbcpDriver COM.cloudscape.core.JDBCDriver COM.ibm.db2.jdbc.app.DB2Driver COM.ibm.db2.jdbc.net.DB2Driver centura.java.sqlbase.SqlbaseDriver com.ddtek.jdbc.db2.DB2Driver com.ddtek.jdbc.oracle.OracleDriver| com.ddtek.jdbc.sqlserver.SQLServerDriver com.ddtek.jdbc.sybase.SybaseDriver com.ibm.as400.access.AS400JDBCDriver com.imaginary.sql.msql.MsqlDriver com.inet.tds.TdsDriver com.informix.jdbc.IfxDriver com.internetcds.jdbc.tds.Driver com.jnetdirect.jsql.JSQLDriver com.mckoi.JDBCDriver com.microsoft.jdbc.sqlserver.SQLServerDriver com.mysql.jdbc.DatabaseMetaData com.mysql.jdbc.Driver com.pointbase.jdbc.jdbcUniversalDriver com.sap.dbtech.jdbc.DriverSapDB com.sybase.jdbc.SybDriver com.sybase.jdbc2.jdbc.SybDriver com.thinweb.tds.Driver in.co.daffodil.db.jdbc.DaffodilDBDriver interbase.interclient.Driver intersolv.jdbc.sequelink.SequeLinkDriver openlink.jdbc2.Driver oracle.jdbc.driver.OracleDriver oracle.jdbc.pool.OracleDataSource org.axiondb.jdbc.AxionDriver org.enhydra.instantdb.jdbc.idbDriver org.gjt.mm.mysql.Driver org.hsql.jdbcDriver org.hsqldb.jdbcDriver org.postgresql.Driver org.sourceforge.jxdbcon.JXDBConDriver| postgres95.PGDriver postgresql.Driver solid.jdbc.SolidDriver sun.jdbc.odbc.JdbcOdbcDriver weblogic.jdbc.mssqlserver4.Driver weblogic.jdbc.pool.Driver
Range of values: local | managed
Default value: local
Parent elements:
persistence-configuration persistence-configuration-unit
The connection factory mode to use when integrating with the application server's managed transactions. Valid options include:
local—Specifies a standard data source under Kodo control.
managed—Specifies a data source managed by an application server and automatically enlisted in global transactions.
Range of values: JNDI name
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string listing properties for configuration of the javax.sql.DataSource, described at http://docs.oracle.com/javase/6/docs/api/javax/sql/DataSource.html, in use.
Range of values: JNDI name
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Properties used to configure the javax.sql.DataSource, described at http://docs.oracle.com/javase/6/docs/api/javax/sql/DataSource.html, used as the unmanaged ConnectionFactory.
Range of values: Valid password
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string listing properties to configure the driver listed in the connection-driver-name element. If the given driver class is a DataSource, these properties will be used to configure the bean properties of the DataSource.
<connection-properties>
<property>
<name>PortNumber</name>
<value>1521</value>
</property>
<property>
<name>ServerName</name>
<value>saturn</value>
</property>
<property>
<name>DatabaseName</name>
<value>solarisid</value>
</property>
<property>
<name>DriverType</name>
<value>thin</value>
</property>
</connection-properties>
Range of values: always | on-demand | persistence-manager | transaction
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Controls how Kodo uses datastore connections. Valid values include:
always—Each EntityManager or PersistenceManager obtains a single connection and uses it until the EntityManager or PersistenceManager closes.
on-demand—Connection is obtained only when needed. This option is equivalent to the transaction option when datastore transactions are used. For optimistic transactions, though, it means that a connection will be retained only for the duration of the datastore flush and commit process.
persistence-manager—Connection is obtained from the persistence manager.
transaction—Connection is obtained when each transaction begins (optimistic or datastore), and is released when the transaction completes. Non-transactional connections are obtained on-demand.
Range of values: Valid URL
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-pooling-data-source
persistence-configuration
persistence-configuration-unit
simple-driver-data-source
The JDBC URL for the database.
The following provides possible values:
jdbc:JSQLConnect://<hostname>/database=<database> jdbc:cloudscape:<database>;create=true jdbc:daffodilDB_embedded:<database>;create=true jdbc:datadirect:db2://<hostname>:50000;databaseName=<database> jdbc:datadirect:oracle://<hostname>:1521;SID=<database>;MaxPooledStatements=0 jdbc:datadirect:sqlserver://<hostname>:1433;SelectMethod=cursor;DatabaseName=<database> jdbc:datadirect:sybase://<hostname>:5000 jdbc:db2://<hostname>/<database> jdbc:dbaw://<hostname>:8889/<database> jdbc:hsqldb:<database> jdbc:idb:<database>.properties jdbc:inetdae:<hostname>:1433 jdbc:informix-sqli://<hostname>:1526/<database>:INFORMIXSERVER=<database> jdbc:interbase://<hostname>//<database>.gdb jdbc:microsoft:sqlserver://<hostname>:1433;DatabaseName=<database>;SelectMethod=cursor jdbc:mysql://<hostname>/<database>?autoReconnect=true jdbc:odbc:<database> jdbc:openlink://<hostname>/DSN=SQLServerDB/UID=sa/PWD= jdbc:oracle:thin:@<hostname>:1521:<database> jdbc:postgresql://<hostname>:5432/<database> jdbc:postgresql:net//<hostname>/<database> jdbc:sequelink://<hostname>:4003/[Oracle] jdbc:sequelink://<hostname>:4004/[Informix];Database=<database> jdbc:sequelink://<hostname>:4005/[Sybase];Database=<database> jdbc:sequelink://<hostname>:4006/[SQLServer];Database=<database> jdbc:sequelink://<hostname>:4011/[ODBC MS Access];Database=<database> jdbc:solid://<hostname>:<port>/<UID>/<PWD> jdbc:sybase:Tds:<hostname>:4100/<database>?ServiceName=<database> jdbc:twtds:sqlserver://<hostname>/<database> jdbc:weblogic:mssqlserver4:<database>@<hostname>:1433
Range of values: Valid username
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-pooling-data-source
persistence-configuration
persistence-configuration-unit
simple-driver-data-source
Range of values: Valid username
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Valid password
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
<connection2-properties>
<property>
<name>PortNumber</name>
<value>1521</value>
</property>
<property>
<name>ServerName</name>
<value>saturn</value>
</property>
<property>
<name>DatabaseName</name>
<value>solarisid</value>
</property>
<property>
<name>DriverType</name>
<value>thin</value>
</property>
</connection2-properties>
Range of values: Valid URL
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Valid username
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Flag that specifies whether to copy oid objects before returning them to you. Kodo versions prior to 3.0 always copied oid objects before returning them to you. This prevents possible errors resulting from you mutating the oid object by reference, but was not very efficient for the majority of users who do not modify oid instances. Thus Kodo 3.0 and higher does not copy oids by default. Set this property to true to force Kodo to copy the oids.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
aggregate-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
connection-decorators
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Enables you to define a custom dictionary. For more information, see "Custom Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
filter-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
jdbc-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies plugins used to cache data loaded from the data store. Must implement org.apache.openjpa.datacache.DataCache.
<data-caches>
<default-data-cache>...</default-data-cache>
<kodo-concurrent-data-cache>...</kodo-concurrent-data-cache>
<gem-fire-data-cache>...</gem-fire-data-cache>
<lru-data-cache>...</lru-data-cache>
<tangosol-data-cache>...</tangosol-data-cache>
<custom-data-cache>...</custom-data-cache>
</data-caches>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Defines the configuration values for the DB2 Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "DB2 Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help
Range of values: FIELD | PROPERTY
Default value: FIELD
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: TRACE | DEBUG | INFO | WARN | ERROR
Default value: INFO
Parent elements:
persistence-configuration
persistence-configuration-unit
log-factory-impl
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: String
Standard implementations include: jdo and jpa
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.SavepointManager to use for managing transaction savepoints, in this case the default which is kodo.kernel.InMemorySavepointManager. This plugin stores all state, including field values, in memory. Because of this behavior, each set savepoint is designed for small to medium transactional object counts.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.jdbc.schema.SchemaFactory to use to store and retrieve information about the database schema, in this case the default which is kodo.jdbc.schema.DynamicSchemaFactory.
The DynamicSchemaFactory is the most performant schema factory, because it does not validate mapping information against the database. Instead, it assumes all object-relational mapping information is correct, and dynamically builds an in-memory representation of the schema from your mapping metadata. When using this factory, it is important that your mapping metadata correctly represent your database's foreign key constraints so that Kodo can order its SQL statements to meet them.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
The deprecated-jdo-mapping-defaults element shares the same subelements as mapping-defaults-impl.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.meta.MetaDataFactory type to use, in this case kodo.jdo.DeprecatedJDOMetaDataFactory.
<deprecated-jdo-meta-data-factory>
<use-schema-validation>false</use-schema-validation>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</deprecated-jdo-meta-data-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configures the Derby Dictionary. For a complete description of each of the values that you can specify, see "Derby Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: 1 | 2 | 3
Default value: 1
Parent elements:
persistence-configuration
persistence-configuration-unit]
kodo-broker
Configures the detach state. Valid values include:
1—(loaded) Detach all fields and relations that are already loaded, but do not include unloaded fields in the detached graph.
2—(fetch-groups) Detach all fields and relations in the current fetch configuration.
3—(all) Detach all fields and relations. Be very careful when using this mode; if you have a highly-connected domain model, you could end up bringing every object in the database into memory.
Any field that is not included in the set determined by the detach mode is set to its Java default value in the detached instance.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
detach-options-all
persistence-configuration
persistence-configuration-unit
detach-options-fetch-groups
persistence-configuration
persistence-configuration-unit
detach-options-loaded
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
detach-options-all
persistence-configuration
persistence-configuration-unit
detach-options-fetch-groups
persistence-configuration
persistence-configuration-unit
detach-options-loaded
Flag that specifies whether to use a detached state manager. A detached state manager makes attachment much more efficient. Like a detached state field, however, it breaks serialization compatibility with the unenhanced class if it is not transient.
This setting piggybacks on the detached-state-field element. If your detached state field is transient, the detached state manager will also be transient. If the detached state field is disabled, the detached state manager will also be disabled. This is typically what you want.
By setting the detach-state-field element to true (or transient) and setting this property to false, however, you can use a detached state field without using a detached state manager. This may be useful for debugging or for legacy Kodo users who find differences between Kodo's behavior with a detached state manager and Kodo's older behavior without one.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
detach-options-all
persistence-configuration
persistence-configuration-unit
detach-options-fetch-groups
persistence-configuration
persistence-configuration-unit
detach-options-loaded
Flag that specifies whether to use a transient detached state field. Setting this to true provides the benefits of a detached state field to local objects that are never serialized, but retains serialization compatibility for client tiers without access to the enhanced versions of your classes.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: String
Default value: kodo.ID property, if set
Parent elements:
persistence-configuration
persistence-configuration-unit
log-factory-impl
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration persistence-configuration-unit
Flag that specifies whether to dynamically generate customized structs to hold persistent data. Both the Kodo data cache and the remote framework rely on data structs to cache and transfer persistent state. With dynamic structs, Kodo can customize data storage for each class, eliminating the need to generate primitive wrapper objects. This saves memory and speeds up certain runtime operations.
The cost is a longer warm-up time for the application—generating and loading custom classes into the JVM takes time. Therefore, only set this property to true if you have a long-running application where the initial cost of class generation is offset by memory and speed optimization over time.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.jdbc.schema.SchemaFactory to use to store and retrieve information about the database schema, in this case the default which is kodo.jdbc.schema.DynamicSchemaFactory.
The DynamicSchemaFactory is the most performant schema factory, because it does not validate mapping information against the database. Instead, it assumes all object-relational mapping information is correct, and dynamically builds an in-memory representation of the schema from your mapping metadata. When using this factory, it is important that your mapping metadata correctly represent your database's foreign key constraints so that Kodo can order its SQL statements to meet them.
Range of values: join | multiple | none | parallel | single
Default value: parallel
Parent elements:
persistence-configuration persistence-configuration-unit
Configures eager fetching. Eager fetching is the ability to efficiently load subclass data and related objects along with the base instances being queried.
You can set this value to one of the following:
join—In this mode, Kodo joins to-one relations in the configured fetch groups. If Kodo is loading data for a single instance, then Kodo will also join to any collection field in the configured fetch groups. When loading data for multiple instances, though, (such as when executing a Query) Kodo will not join to collections by default. Instead, Kodo defaults to parallel mode for collections, as described below. You can force Kodo to use a join rather than parallel mode for a collection field using the metadata extension.
Under join mode, Kodo uses a left outer join (or inner join, if the relations' field metadata declares the relation non-nullable) to select the related data along with the data for the target objects. This process works recursively for to-one joins, so that if Person has an Address, and Address has a TelephoneNumber, and the fetch groups are configured correctly, Kodo might issue a single select that joins across the tables for all three classes. To-many joins can not recursively spawn other to-many joins, but they can spawn recursive to-one joins.
Under the join subclass fetch mode, subclass data in joined tables is selected by outer joining to all possible subclass tables of the type being queried. Unjoined subclass data is selected with a SQL UNION where possible. As you'll see below, subclass data fetching is configured separately from relation fetching, and can be disabled for specific classes.
multiple—Same as parallel.
none—No eager fetching is performed. Related objects are always loaded in an independent select statement. No joined subclass data is loaded unless it is in the table(s) for the base type being queried. Unjoined subclass data is loaded using separate select statements rather than an SQL UNION operation.
parallel—Under this mode, Kodo selects to-one relations and joined collections as outlined in the join mode description above. Unjoined collection fields, however, are eagerly fetched using a separate select statement for each collection, executed in parallel with the select statement for the target objects. The parallel selects use the WHERE conditions from the primary select, but add their own joins to reach the related data. Thus, if you perform a query that returns 100 Company objects, where each company has a list of Employee objects and Department objects, Kodo will make three queries. The first will select the company objects, the second will select the employees for those companies, and the third will select the departments for the same companies. Just as for joins, this process can be recursively applied to the objects in the relations being eagerly fetched. Continuing our example, if the Employee class had a list of Projects in one of the fetch groups being loaded, Kodo would execute a single additional select in parallel to load the projects of all employees of the matching companies.
Using an additional select to load each collection avoids transferring more data than necessary from the database to the application. If eager joins were used instead of parallel select statements, each collection added to the configured fetch groups would cause the amount of data being transferred to rise dangerously, to the point that you could easily overwhelm the network.
Polymorphic to-one relations to table-per-class mappings use parallel eager fetching because proper joins are impossible. You can force other to-one relations to use parallel rather than join mode eager fetching using the metadata extension.
Setting your subclass fetch mode to parallel affects table-per-class and vertical inheritance hierarchies. Under parallel mode, Kodo issues separate selects for each subclass in a table-per-class inheritance hierarchy, rather than UNIONing all subclass tables together as in join mode. This applies to any operation on a table-per-class base class: query, by-id lookup, or relation traversal.
When dealing with a vertically-mapped hierarchy, on the other hand, parallel subclass fetch mode only applies to queries. Rather than outer-joining to subclass tables, Kodo will issue the query separately for each subclass. In all other situations, parallel subclass fetch mode acts just like join mode in regards to vertically-mapped subclasses.
When Kodo knows that it is selecting for a single object only, it never uses parallel mode, because the additional selects can be made lazily just as efficiently. This mode only increases efficiency over join mode when multiple objects with eager relations are being loaded, or when multiple selects might be faster than joining to all possible subclasses.
single—Same as join.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configures the Empress Dictionary. For a complete description of each of the values that you can specify, see "Empress Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The empress-dictionary element shares the same subelements as access-dictionary, plus the following sub-element (default shown):
<empress-dictionary> ... <allow-concurrent-read>false</allow-concurrent-read> </empress-dictionary>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Flag that specifies whether to evict data from the data cache at specific times. You defined the eviction schedule using the eviction-schedule element.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
gem-fire-data-cache
persistence-configuration
persistence-configuration-unit
data-caches
kodo-current-data-cache
persistence-configuration
persistence-configuration-unit
data-caches
lru-data-cache
persistence-configuration
peristence-configuration-unit
data-caches
tangosol-data-cache
You can clear a data cache at specific times. The EvictionSchedule property of Kodo's cache implementation accepts a cron style eviction schedule. The format of this property is a whitespace-separated list of five tokens. You can use the * symbol (asterisk) as a wildcard to match all values. The following lists the tokens in the order that they must be specified:
Minute
Hour of Day
Day of Month
Month
Day of Week
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.event.OrphanedKeyAction to invoke when Kodo discovers an orphaned datastore key, in this case kodo.event.ExceptionOrphanedKeyAction. In this case, Kodo throws an exception for each orphaned key. In JPA, the exception will be javax.persistence.EntityNotFoundException. In JDO, the exception type will be javax.jdo.JDOObejctNotFoundException.
Range of values: Integer
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements: N/A
<execution-context-name-provider>
<stack-execution-context-name-provider>...
</stack-execution-context-name-provider>
<transaction-name-execution-context-name-provider>...
</transaction-name-execution-context-name-provider>
<user-object-execution-context-name-provider>...
</user-object-execution-context-name-provider>
</execution-context-name-provider>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit profiling
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.meta.MetaDataFactory to use to store and retrieve object-relational mapping information for your persistent classes. This setting is valid for JDO 1.0.
<extension-deprecated-jdo-mapping-factory>
<use-schema-validation>true</use-schema-validation>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</extension-deprecated-jdo-mapping-factory>
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: forward | reverse | unknown
Default value: true
Parent elements:
persistence-configuration persistence-configuration-unit
The expected order in which query result lists are accessed. This value affects the type of data structure Kodo uses to store the results, and is passed to the JDBC driver in case it can optimize for certain access patterns. This element accepts the following values, each of which corresponds exactly to the same-named java.sql.ResultSet FETCH constant:
forward—Query results are listed in order. This is the default.
reverse—Query results are listed in reverse order.
unknown—The order is not specified.
This property can also be varied at runtime.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
fetch-group
Name of a fetch group. Fetch group names are global, and are expected to be shared among classes. For example, a shopping website may use a detail fetch group in each product class to efficiently load all the data needed to display a product's "detail" page. The website might also define a sparse list fetch group containing only the fields needed to display a table of products, as in a search result.
The following names are reserved for use by Kodo: default, values, all, none, and any name beginning with jdo, ejb, or kodo.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Define one or more custom fetch groups.
By default, Kodo places any field that is eagerly loaded according to the JPA metadata rules into the built-in default fetch group. You may define your own named fetch groups and activate or deactivate them at runtime. Kodo will eagerly-load the fields in all active fetch groups when loading objects from the datastore.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
Range of values: String
Default value: Described below
Parent elements:
persistence-configuration
persistence-configuration-unit
file-schema-factory
persistence-configuration
persistence-configuration-unit
log-factory-impl
If the parent element is file-schema-factory, specifies the resource name of the XML schema file. By default, the factory looks for a resource called package.schema located in any top-level directory of the CLASSPATH or in the top level of any JAR in your CLASSPATH.
If the parent element is log-factory-impl, specifies the name of the file to which messages are logged. Specify stdout or stderr to log messages to standard out and standard error, respectively. The default is stderr.
Range of values: String
Default value: package.schema
Parent elements:
persistence-configuration
persistence-configuration-unit
file-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.jdbc.schema.SchemaFactory to use to store and retrieve information about the database schema, in this case kodo.jdbc.schema.FileSchemaFactory.
This factory is a lot like the table-schema-factory, and has the same advantages and disadvantages. Instead of storing its XML schema definition in a database table, though, it stores it in a file.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the FoxPro Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "FoxPro Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
Range of values: true | false | with-connection
Default value: true
Parent elements:
persistence-configuration persistence-configuration-unit
Flag that specifies whether to flush any changes made in the current transaction to the datastore before executing a query. Valid values include:
true—Always flush rather than executing the query in-memory. If the current transaction is optimistic, Kodo will begin a non-locking datastore transaction. This is the default.
false—Never flush before a query.
with-connection—Flush only if the EntityManager or PersistenceManager has already established a dedicated connection to the datastore, otherwise execute the query in-memory.
This option is useful if you use long-running optimistic transactions and want to ensure that these transactions do not consume database resources until commit. Kodo's behavior with this option is dependent on the transaction status and mode, as well as the configured connection retain mode described earlier in this section.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: Valid GemFire region name
Default value:
Data cache: root/kodo-data-cache
Query cache: root/kodo-query-cache
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
gem-fire-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit profiling
Range of values: Valid hostname
Default value: localhost
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-transport
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the HSQL Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "HSQL Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Flag that specifies whether to consider modifications to persistent objects made in the current transaction when evaluating queries. Setting this to true allows Kodo to ignore changes and execute the query directly against the datastore. A value of false forces Kodo to consider whether the changes in the current transaction affect the query, and if so to either evaluate the query in-memory or flush before running it against the datastore.
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.SavepointManager to use for managing transaction savepoints, in this case kodo.kernel.InMemorySavepointManager. This plugin stores all state, including field values, in memory. Because of this behavior, each set savepoint is designed for small to medium transactional object counts.
Range of values: Integer
Default value: 1
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
time-seeded-seq
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the Informix Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "Informix Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The informix-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<informix-dictionary> ... <lock-mode-enabled>false</lock-mode-enabled> <lock-wait-seconds>30</lock-wait-seconds> <swap-schema-and-catalog>true</swap-schema-and-catalog> </informix-dictionary>
Range of values: N/A
Default value: 1
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
export-profiling
profiling
export-profiling
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the JDataStore Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "JDataStore Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.meta.MetaDataFactory type to use, in this case kodo.jdo.JDOMetaDataFactory.
<jdo-meta-data-factory>
<use-schema-validation>false</use-schema-validation>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<constraint-names>false</constraint-names>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</jdo-meta-data-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
JNDIName
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
<kodo-broker>
<large-transaction>false</large-transaction>
<auto-clear>datastore</auto-clear>
<detach-state>1</detach-stage>
<nontransactional-read>true</nontransactional-read>
<retain-state>false</retain-state>
<evict-from-data-cache>false</evict-from-data-cache>
<detached-new>true</detached-new>
<optimistic>true</optimistic>
<nontransactional-write>flase</nontransactional-write>
<sync-with-managed-transacations>false</sync-with-managed-transactions>
<multithreaded>false</multithreaded>
<populate-data-cache>true</populate-data-cache>
<ignore-changes>false</ignore-changes>
<auto-detach>0</auto-detach>
<restore-state>1</restore-state>
<order-dirty-objects>false</other-dirty-objects>
</kodo-broker>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.meta.MetaDataFactory to use to store and retrieve object-relational mapping information for your persistent classes. This setting is valid for JPA 1.0.
<kodo-persistence-mapping-factory>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<default-access-type>FIELD</default-access-type>
<field-override>true</field-override>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
</kodo-persistence-mapping-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.meta.MetaDataFactory type to use, in this case org.apache.openjpa.persistence.PersistenceMetaDataFactory.
<kodo-persistence-meta-data-factory>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<default-access-type>FIELD</default-access-type>
<field-override>true</field-override>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
</kodo-persistence-meta-data-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configures the kodo.jdbc.schema.KodoPoolingDataSource which by default performs connection pooling.
<kodo-pooling-data-source>
<connection-user-name>KodoPool</connection-user-name>
<login-timeout>10</login-timeout>
<connection-password>password</connection-password>
<connection-url>jdbc:hsqldb:db-hypersonic</connection-url>
<connection-driver-name>org.hsqldb.jdbcDrier</connection-driver-name>
</kodo-pooling-data-source>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.jdbc.schema.SchemaFactory to use to store and retrieve information about the database schema, in this case kodo.jdbc.schema.LazySchemaFactory.
As persistent classes are loaded by the application, Kodo reads their metadata and object-relational mapping information. This factory uses the java.sql.DatabaseMetaData interface to reflect on the schema and ensure that it is consistent with the mapping data being read. Because the factory does not reflect on a table definition until that table is mentioned by the mapping information, it is referred to as lazy. Use this factory if you want up-front validation that your mapping metadata is consistent with the database during development.
Range of values: 1 | 2 | 3 | 4 | 5
Default value: 4
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Enabled local management. This setting is suitable for use in JBoss and other environments where all MBeans should be registered with a JMX MBeanServer for either management via a user defined mechanism, or via a mechanism defined by the MBeanServer. Supports optional parameters in the Management Group.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit profiling
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies to use Log4J for logging. In a standalone application, Log4J logging levels are controlled by a resource named log4j.properties, which should be available as a top-level resource (either at the top level of a jar file, or in the root of one of the CLASSPATH directories). When deploying to a web or EJB application server, Log4J configuration is often performed in a log4j.xml file instead of a properties file. For further details on configuring Log4J, please see the Log4J 2.x Manual at http://logging.apache.org/log4j/2.x/manual/index.html.
Range of values: Valid classname
Default value:
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-pooling-data-source
persistence-configuration
persistence-configuration-unit
simple-driver-data-source
Range of values: query | last | unknown
Default value: query
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies the size of results sets. This property is only used if you change the fetch batch size from its default of -1 so that Kodo uses the on-demand results loading. Valid values include:
query—The first time you ask for the size of a query result, Kodo will perform a SELECT COUNT(*) query to determine the number of expected results. Note that depending on transaction status and settings, this can mean that the reported size is slightly different than the actual number of results available. This is the default.
last—If you have chosen a scrollable result set type, this setting will use the ResultSet.last method to move to the last element in the result set and get its index. Unfortunately, some JDBC drivers will bring all results into memory in order to access the last one. Note that if you do not choose a scrollable result set type, then this will behave exactly like unknown. The default result set type is forward-only, so you must change the result set type in order for this property to have an effect.
unknown—Kodo returns Integer.MAX_VALUE as the size for any query result that uses on-demand loading.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
inverse-manager
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
orm-filie-mapping-factory
When a child element of persistence-configuration-unit, specifies the symbolic name of the object-to-datastore mapping to use.
When a child element of orm-file-jdor-mapping-factory, specifies the logical name of these mappings. Mapping files are suffixed with logicalname.orm. If not specified, the kodo.Mapping configuration property is used.
Range of values: String
Default value: MAPPING_DEF
Parent elements:
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
<mapping-defaults-impl>
<use-class-criteria>false</use-class-criteria>
<base-class-strategy>ColumnPerLockGroupVersionStrategy</base-class-strategy>
<version-strategy>version-number</version-strategy>
<discriminator-column-name>test</discriminator-column-name>
<subclass-strategy>vertical</subclass-strategy>
<index-version>false</index-version>
<index-logical-foreign-keys>true</index-logical-foreign-keys>
<null-indicator-column-name>null</null-indicator-column-name>
<foreign-key-delete-action></foreign-key-delete-action>
<join-foreign-key-delete-action>1</join-foreign-key-delete-action>
<discriminator-strategy>final</discriminator-strategy>
<defer-constraints>false</defer-constraints>
<field-strategies>none</field-strategies>
<version-column-name>version</version-column-name>
<data-store-id-column-name>ID</data-store-id-column-name>
<index-discriminator>true</index-discriminator>
<store-enum-ordinal>false</store-enum-ordinal>
<order-lists>true</order-lists>
<order-column-name>false</order-column-name>
<add-null-indicator>false</add-null-indicator>
<store-unmapped-object-id-string>false</store-unmapped-object-id-string>
</mapping-defaults-impl>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.meta.MetaDataFactory to use to store and retrieve object-relational mapping information for your persistent classes. This setting is valid for JDO 1.0.
<mapping-file-deprecated-jdo-mapping-factory>
<use-schema-validation>true</use-schema-validation>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<single-file>false</single-file>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict></strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</mapping-file-deprecated-jdo-mapping-factory>
Range of values: Integer
Default value: 2
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
Range of values: Integer
Default value: 2
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
Range of values: Integer
Default value: 2147483647
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
constraint-update-manager
persistence-configuration
persistence-configuration-unit
batching-operation-order-update-manager
persistence-configuration
persistence-configuration-unit
table-lock-update-manager
Range of values: any-create | create | agentID:<agentID>
Default value: any-create
Parent elements:
jmx
local-jmx
If JMX-based management is enabled, Kodo needs to locate an existing MBeanServer or create a new one, based on one of the following options:
any-create—Locate an existing MBeanServer. If multiple are found, use the first one. If none are found, create a new server. This is the default.
create—Create a new server. Do not attempt to find an existing MBeanServer.
agentId:<agentID>—Locate an existing MBeanServer with the given agent id. If not found, create a new server.
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the MySQL Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "MySQL Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The mysql-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<mysql-dictionary> ... <table-type>innodb</table-type> <use-clobs>true</use-clobs> <driver-deserializes-blobs>true</driver-deserializes-blobs> </mysql-dictionary>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-cache
persistence-configuration
persistence-configuration-unit
db-dictionary
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
persistence-configuration
persistence-configuration-unit
property-type
persistence-configuration
persistence-configuration-unit
query-cache
persistence-configuration
persistence-configuration-unit
single-jvm-remote-commit-provider
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
persistence-configuration
persistence-configuration-unit
cluster-remote-commit-provider
Range of values: String
Default value: Name
Parent elements:
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
peristence-configuration-unit
table-jdor-mapping-factory
Range of values: Valid classname
Default value: N/A
Parent elements:
jmx
jmx2-jmx
Classname of the naming service implementation to start in order to register the RMI connector with a JNDI name. Defaults to mx4j.tools.naming.NamingService, which is appropriate for MX4J v. 2.x. If set to the empty string, no naming service will be started. This setting is appropriate if a naming service is already running, or if a non-RMI connector is used.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.Seq interface to use to create your own custom generators, in this case kodo.jdbc.kernel.NativeJDBCSeq.
Many databases have a concept of native sequences—a built-in mechanism for obtaining incrementing numbers. For example, in Oracle, you can create a database sequence with a statement like CREATE SEQUENCE MYSEQUENCE. Sequence values can then be atomically obtained and incremented with the statement SELECT MYSEQUENCE.NEXTVAL FROM DUAL. Kodo provides support for this common mechanism of sequence generation with the NativeJDBCSeq.
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit profiling
Range of values: true | false
Default value:
persistence-configuration: false
kodo-broker: true
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
Specifies the number of threads to create for the purpose of transmitting events to peers. You should increase this value as the number of concurrent transactions increases. The maximum number of concurrent transactions is a function of the size of the connection pool. Setting a value of 0 will result in behavior where the thread invoking commit will perform the broadcast directly.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the Oracle Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "Oracle Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The oracle-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<oracle-dictionary> ... <use-triggers-for-auto-assign>false</use-triggers-for-auto-assign> <auto-assign-sequence-name>false</auto-assign-sequence-name> <use-set-form-of-use-for-unicode>true</use-set-form-of-use-for-unicode> </oracle-dictionary>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.SavepointManager to use for managing transaction savepoints, in this case the default which is kodo.jdbc.sql.OracleSavepointManager. This plugin operates similarly to jdbc3-savepoint-manager, but it uses Oracle-specific calls. This plugin requires using the Oracle JDBC driver and database, versions 9.2 or higher. This plugin implements savepoints by issuing a flush to the database.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.jdo.jdbc.ORMFileJDORMappingFactory that stores mapping metadata in.orm files. This setting is valid for JDO 1.0.
<orm-file-jdor-mapping-factory>
<use-schema-validation>true</use-schema-validation>
<mapping>mapping</mapping>
<urls>t3://localhost:7001/metadata.jar</urls>
<files>com/file1;com/file2</files>
<classpath-scan>build</classpath-scan>
<types>classname1;classname2</types>
<store-mode>1</store-mode>
<strict>false</strict>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</orm-file-jdor-mapping-factory>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: N/A
Default value: N/A
Parent elements: N/A
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
The persistence-mapping-defaults element shares the same subelements as mapping-defaults-impl.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Flag that specifies whether to populate the data cache. If your transaction will visit objects that you know are very unlikely to be accessed by other transactions, for example an exhaustive report run only once a month, you can turn off population of the data cache so that the transaction does not fill the entire data cache with objects that will not be accessed again.
Range of values: Valid port
Default value: See below (depends on parent element)
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-transport
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
Specifies the port on which the server will listen. This setting is used by clients, not by the server.
If the parent element is tcp-transport, the element defaults to 5637.
If the parent element is tcp-remote-commit-provider, the element defaults to 5636.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the Postgres Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "Postgres Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The postgres-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<postgres-dictionary> ... <all-sequences-sql>SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class WHERE relkind='S'</all-sequence-sql> <named-sequences-from-all-schemas-sql>SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class WHERE relkind='S' AND relname = ?"</named-sequences-from-all-schemas-sql> <all-sequences-from-one-schema-sql>SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class, pg_namespace WHERE relkind='S' AND pg_class.relnamespace = pg_namespace.oid AND nspname = ?</all-sequences-from-one-schema-sql> <named-sequences-from-one-schema-sql>SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class, pg_namespace WHERE relkind='S' AND pg_class.relnamespace = ?</named-sequences-from-one-schema-sql> <supports-set-fetch-size>true</supports-set-fetch-size> </postgres-dictionary>
Range of values: String
Default value: ID
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-schema-factory
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: String
Default value: DEFAULT
Parent elements:
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
Range of values: N/A
Default value: N/A
Parent elements: N/A
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
aggregate-listener
custom-aggregate-listener
persistence-configuration
persistence-configuration-unit
custom-broker-factory
persistence-configuration
persistence-configuration-unit
custom-broker-impl
persistence-configuration
persistence-configuration-unit
custom-class-resolver
persistence-configuration
persistence-configuration-unit
custom-compatibility
persistence-configuration
persistence-configuration-unit
custom-connection-decorator
persistence-configuration
persistence-configuration-unit
custom-data-cache
persistence-configuration
persistence-configuration-unit
custom-dictionary
persistence-configuration
persistence-configuration-unit
custom-driver-data-source
persistence-configuration
persistence-configuration-unit
custom-filter-listener
persistence-configuration
persistence-configuration-unit
custom-jdbc-listener
persistence-configuration
persistence-configuration-unit
custom-lock-manager
persistence-configuration
persistence-configuration-unit
custom-logType
persistence-configuration
persistence-configuration-unit
custom-mapping-defaults
persistence-configuration
persistence-configuration-unit
custom-meta-data-respository
persistence-configuration
persistence-configuration-unit
custom-orphaned-key-action
persistence-configuration
persistence-configuration-unit
custom-persistence-server
persistence-configuration
persistence-configuration-unit
custom-proxy-manager
persistence-configuration
persistence-configuration-unit
custom-query-cache
persistence-configuration
persistence-configuration-unit
custom-query-compilation
persistence-configuration
persistence-configuration-unit
custom-remote-commit-provider
persistence-configuration
persistence-configuration-unit
custom-savepoint-manager
persistence-configuration
persistence-configuration-unit
custom-seq
persistence-configuration
persistence-configuration-unit
custom-sql-factory
persistence-configuration
persistence-configuration-unit
custom-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
properties
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.datacache.QueryCache implementation to use for caching of queries loaded from the data store.
<query-caches>
<default-query-cache>...</default-query-cache>
</query-caches>
<query-caches>
<kodo-concurrent-query-cache>...</kodo-concurrent-query-cache>
</query-caches>
<query-caches>
<gem-fire-query-cache>...</gem-fire-query-cache>
</query-caches>
<query-caches>
<lru-query-cache>...</lru-query-cache>
</query-caches>
<query-caches>
<tangosol-query-cache>...</tangosol-query-cache>
</query-caches>
<query-caches>
<disabled-query-cache>...</disabled-query-cache>
</query-caches>
<query-caches>
<custom-query-cache>...</custom-query-cache>
</query-caches>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Range of values: none | read | write | numeric values for lock manager- specific lock levels
Default value: read
Parent elements:
persistence-configuration persistence-configuration-unit
Sets the default read level at which to lock objects retrieved during a non-optimistic transaction. Valid values include:
none—No lock level.
read—Read lock level.
write—Write lock level.
Numeric values for lock-manager specific lock levels.
Note:
For the default JDBC lock manager, theread and write lock levels are equivalent.Range of values: none | clear
Default value: none
Parent elements:
persistence-configuration
persistence-configuration-unit
cluster-remote-commit-provider
Range of values: Integer
Default value: 15000
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
Range of values: Valid resource path
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
Range of values: true
persistence-configuration-unit: all | immutable | none | true | false
kodo-broker: 1 | 2 | 3 | 4 | 5
Default value: none
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Flag that specifies whether to restore managed fields to their pre-transaction values when a rollback occurs.
Valid values include:
all (1)—Restores all managed values.
none (2)—Do not roll back state. The object becomes hollow and will reload its state the next time it is accessed.
immutable (3)—Restores immutable values (primitives, primitive wrappers, strings) and clears mutable values so that they are reloaded on next access.
true (4)—Same as all.
false (5)—Same as none.
Range of values: forward--only | scroll-sensitive | scroll-insensitive
Default value: forward-only
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies the JDBC result set type to use when fetching return lists. This setting can also be varied at runtime.
Valid values include:
forward-only—Result set whose cursor may move only forward. The result set is not updatable.
scroll-sensitive—Scrollable result set that is sensitive to changes made by others. The result set is updatable.
scroll-insensitive—Scrollable result set that is not sensitive to changes made by others. The result set is updatable.
Range of values: true | false
Default value: See below (depends on parent)
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
Flag that specifies whether persistent fields retain their values on transaction commit. This element defaults to true when a child element of the persistence-configuration-unit and false when a child element of the kodo-broker element.
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration persistence-configuration-unit
Flag that specifies whether to log a warning and defer registration instead of throwing an exception when a persistent class cannot be fully processed. This element should only be used in complex classloader situations where security is preventing Kodo from reading registered classes. Setting this to true unnecessarily may obscure more serious problems.
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
Flag that specifies whether to search for metadata files top-down in the package tree. Kodo defaults to bottom-up scanning. For example, when scanning metadata for class C, Kodo looks first for C.jdo, then package.jdo in C's package, then package.jdo in the parent package, and so on to the package root. For more information, see "Metadata Factory" in Kodo JPA/JDO Reference for Oracle WebLogic Server.
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: String
Default value: SCHEMA_DEF
Parent elements:
persistence-configuration
persistence-configuration-unit
table-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: OPENJPA_SEQUENCE
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
Range of values: String
Default value: SEQUENCE_VALUE
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: String
Default value: OPENJPA_SEQUENCE
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
Range of values: Valid service URL
Default value: service:jmx:rmi://localhost/jndi/jmxservice
Parent elements:
jmx jmx2-jmx
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
<simple-driver-data-source>
<connection-user-name>user</connection-user-name>
<login-timeout>10</login-timeout>
<connection-password>password</connection-password>
<connection-url>jdbc:hsqldb:db-hypersonic</connection-url>
<connection-driver-name>org.hsqldb.jdbcDrier</connection-driver-name>
</simple-driver-data-source>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-concurrent-data-cache
persistence-configuration
persistence-configuration-unit
kodo-concurrent-query-cache
persistence-configuration
persistence-configuration-unit
lru-data-cache
persistence-configuration
persistence-configuration-unit
lru-query-cache
persistence-configuration
persistence-configuration-unit
query-compilation-cache
Sets the number of soft references that Kodo maintains. When the maximum cache or query size is reached, random entries are moved to a soft reference map so that they are maintained for awhile longer. By default, this value is set to -1 which specifies that an unlimited number of soft references are maintained. Set the property to 0 to disable soft references.
Range of values: Integer
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
http-transport
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the SQLServer Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "SQLServer Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The sql-server-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<sql-server-dictionary> ... <unique-identifier-as-varbinary>true</unique-identifier-as-varbinary> </sql-server-dictionary>
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
Range of values: Integer
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Range of values: line | partial | full
Default value: N/A
Parent elements:
execution-context-name-provider stack-execution-context-name-provider
Provider examines the current thread's stack and builds an execution context name based on that information and the following setting:
line—Name will be the first non-Kodo stack line, including class name, method name, and line number, if available.
partial—Full stack trace minus the Kodo lines will be used.
full—Entire stack trace will be used.
Range of values: join | multiple | none | parallel | single
Default value: join
Parent elements:
execution-context-name-provider stack-execution-context-name-provider
Specifies the method to use to select subclass data when it is in other tables. For a description of the valid values, see under eager-fetch-mode.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Configuration values for the Sybase Dictionary persistence plugin. For a complete description of each of the values that you can specify, see "Sybase Dictionary Configuration" in the Oracle WebLogic Server Administration Console Online Help.
The sybase-dictionary element shares the same subelements as access-dictionary, plus the following subelements (defaults shown):
<sybase-dictionary> ... <create-identity-column>true</create-identity-column> <identity-column-name>UNQ_INDEX</identity-column-name> </sybase-dictionary>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
Range of values: String
Default value: See below
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-schema-factory
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Specifies the name of the table. The default value depends on the parent element:
class-table-jdbc-seq: OPENJPA_SEQUENCE_TABLE
table-jdbc-seq: OPENJPA_SEQUENCE_TABLE
table-jdor-mapping-factory: KODO_JDO_MAPPINGS
table-schema-factory: OPENJPA_SCHEMA
value-table-jdbc-seq: OPENJPA_SEQUENCES_TABLE
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.jdo.jdbc.TableJDORMappingFactory that stores mapping metadata as XML strings in a database table. This setting is valid for JDO 1.0.
<table-deprecated-jdo-mapping-factory>
<table-name>JDO_MAPPING</table-name>
<urls>t3://localhost:7001/metadata.jar</urls>
<classpath-scan>build</classpath-scan>
<types>classname1;classname2</types>
<mapping-column>MAPPING_DEF</mapping-column>
<store-mode></store-mode>
<strict>false</strict>
<name-column>NAME</name-column>
<use-schema-validation>false</use-schema-validation>
<single-row>false</single-row>
<files>com/file1;com/file2</files>
<scan-top-down>false</scan-top-down>
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
</table-deprecated-jdo-mapping-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.Seq interface to use to create your own custom generators, in this case kodo.jdbc.kernel.TableJDBCSeq.
The TableJDBCSeq uses a special single-row table to store a global sequence number. If the table does not already exist, it is created the first time you run the mapping tool's on a class that requires it. You can also use the class' main method or the sequencetable shell/bat script to manipulate the table; see the TableJDBCSeq.main method Javadoc for usage details.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
A plugin string describing the kodo.jdo.jdbc.TableJDORMappingFactory that stores mapping metadata as XML strings in a database table. This setting is valid for JDO 2.0.
<table-jdor-mapping-factory>
<use-schema-validation>false</use-schema-validation>
<type-column>0</type-column>
<constraint-names>false</constraint-names>
<table>KODO_JDO_MAPPINGS</table>
<types>classname1;classname2</types>
<store-mode></store-mode>
<mapping-column>false</mapping-column>
<strict>false</strict>
<name-column>NAME</name-column>
</table-jdor-mapping-factory>
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: String
Default value: See below
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-schema-factory
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Specifies the name of the table.
The default varies based on the parent element, as follows:
class-table-jdbc-seq: OPENJPA_SEQUENCES_TABLE.
native-jdbc-seq: DUAL.
table-deprecated-jdo-mapping-factory: JDO_MAPPING.
table-jdbc-seq: OPENJPA_SEQUENCE_TABLE.
table-schema-factory: OPENJPA_SCHEMA.
value-table-jdbc-seq: OPENJPA_SEQUENCE_TABLE.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.jdbc.schema.SchemaFactory to use to store and retrieve information about the database schema, in this case kodo.jdbc.schema.TableSchemaFactory.
This schema factory stores schema information as an XML document in a database table it creates for this purpose. If your JDBC driver doesn't support the java.sql.DatabaseMetaData standard interface, but you still want some schema validation to occur at runtime, you might use this factory. It is not recommended for most users, though, because it is easy for the stored XML schema definition to get out-of-sync with the actual database.
Range of values: String
Default value: kodo
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
Range of values: named | distributed | replicated
Default value: named
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
persistence-configuration
persistence-configuration-unit
tangosol-query-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.Seq interface to use to create your own custom generators, in this case kodo.jdbc.kernel.TimeSeededSeq.
This type uses an in-memory static counter, initialized to the current time in milliseconds and monotonically incremented for each value requested. It is only suitable for single-JVM environments.
Range of values: Valid topic
Default value: topic/KodoCommitProviderTopic
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
Range of values: Valid connection factory
Default value: java:/ConnectionFactory
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
Specifies the JNDI name of a javax.jms.TopicConnectionFactory factory to use for finding topics. This setting may vary depending on the application server in use; consult the application server's documentation for details about the default JNDI name for the topic instance. For WebLogic, the JNDI name for the TopicConnectionFactory is javax.jms.TopicConnectionFactory.
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: default | none | read-committed | read-uncommitted | repeatable-read | serializable
Default value: default
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies the JDBC transaction isolation level to use.
default—JDBC driver's default level. This is the default.
none—No transaction isolation.
read-committed—Dirty reads are prevented; non-repeatable reads and phantom reads can occur.
read-uncommitted—Dirty reads, non-reputable reads, and phantom reads can occur.
repeatable-read—Dirty reads and non-repeatable reads are prevented; phantom reads can occur.
serializable—Dirty reads, non-reputable reads, and phantom reads are prevented.
Range of values: local | managed
Default value: local
Parent elements:
persistence-configuration persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
Range of values: N/A
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
persistence-configuration
persistence-configuration-unit
table-jdbc-seq
persistence-configuration
persistence-configuration-unit
time-seeded-seq
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
Range of values: 0 | 1 | 2 | 3
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: Valid persistent class names
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
Range of values: Valid URL
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
http-transport
Range of values: Valid URL
Default value: t3://localhost:7001
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-mapping-factory
persistence-configuration
persistence-configuration-unit
kodo-persistence-meta-data-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
Range of values: true | false
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
deprecated-jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
extension-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
jdo-meta-data-factory
persistence-configuration
persistence-configuration-unit
jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
orm-file-jdor-mapping-factory
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
Provider returns the user object specified in the current EntityManager/PersistenceManager whose key is com.solarmetric.profile.ExecutionContextNameProvider. User objects can be set using the OpenJPAEntityManager.putUserObject(Object,Object) or PersistenceManager.putUserObject(Object,Object).
Range of values: N/A
Default value: N/A
Parent elements:
jmx wsl81-jmx
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Flag that specifies whether to return hollow objects (objects for which no state has been loaded) from calls to PersistenceManager.getObjectById(oid, false). This is the default behavior of Kodo 4.0 and above. Previous Kodo versions, however, always loaded the object from the datastore. Set this property to false to get the old behavior.
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
Flag that specifies whether to check the datastore to be sure the given oid exists. Prior to Kodo 4.0, calling PersistenceManager.getObjectById(oid, true) always checked the datastore to be sure the given oid existed, even when the corresponding object was already cached. Kodo 4.0 and above does not check the datastore when the instance is already cached and loaded. Set this property to true to mimic previous behavior.
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies a plugin string describing the kodo.kernel.Seq interface to use to create your own custom generators, in this case kodo.jdbc.kernel.ValueTableJDBCSeq.
This Seq is like the table-jdbc-seq, but has an arbitrary number of rows for sequence values, rather than a fixed pattern of one row per class.
<value-table-jdbc-seq>
<type>0</type>
<allocate>50</allocate>
<table-name>OPENJPA_SEQUENCE_TABLE</table-name>
<primary-key-value>DEFAULT</primary-key-value>
<table>OPENJPA_SEQUENCE_TABLE</table>
<primary-key-column>ID</primary-key-column>
<sequence-column>SEQUENCE_VALUE</sequence-column>
<increment>1</increment>
</value-table-jdbc-seq>
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
pessimistic-lock-manager
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
pessimistic-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration persistence-configuration-unit
Specifies the kodo.kernel.VersionLockManager. This lock manager does not perform any exclusive locking, but instead ensures read consistency by verifying that the version of all read-locked instances is unchanged at the end of the transaction. Furthermore, a write lock will force an increment to the version at the end of the transaction, even if the object is not otherwise modified. This ensures read consistency with non-blocking behavior.
Range of values: N/A
Default value: N/A
Parent elements:
jmx
Range of values: none | read | write | numeric values for lock-manager specific lock levels.
Default value: read
Parent elements:
persistence-configuration persistence-configuration-unit
Sets the default write level at which to lock objects retrieved during a non-optimistic transaction. Valid values include:
none—No lock level.
read—Read lock level.
write—Write lock level.
Numeric values for lock-manager specific lock levels.
Note:
For the default JDBC lock manager, theread and write lock levels are equivalent.