Programming Enterprise JavaBens
Programming Enterprise JavaBens
January 2011
This document is a resource for software developers who
develop applications that include WebLogic Server
Enterprise JavaBeans (EJBs), Version 3.0.
Oracle Fusion Middleware Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server, 11g
Release 1 (10.3.4)
E13720-04
Copyright © 2007, 2011, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this software or related documentation is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As
such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and
license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of
the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software
License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software is developed for general use in a variety of information management applications. It is not
developed or intended for use in any inherently dangerous applications, including applications which may
create a risk of personal injury. If you use this software in dangerous applications, then you shall be
responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use
of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of
this software in dangerous applications.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks
of their respective owners.
This software and documentation may provide access to or information on content, products, and services
from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all
warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and
its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of
third-party content, products, or services.
Contents
iii
4.6 Compile Java Source .................................................................................................................. 4-5
4.7 Optionally Create and Edit Deployment Descriptors ........................................................... 4-6
4.8 Packaging EJBs ............................................................................................................................ 4-7
4.9 Deploying EJBs............................................................................................................................ 4-7
iv
7 Using Oracle Kodo with WebLogic Server
7.1 Overview of Oracle Kodo .......................................................................................................... 7-1
7.2 Creating an Oracle Kodo Application ..................................................................................... 7-1
7.3 Using Different Oracle Kodo Versions .................................................................................... 7-2
7.4 Configuring Persistence ............................................................................................................. 7-2
7.4.1 Editing the Configuration Property Files......................................................................... 7-2
7.4.2 Using the Configuration Files Together ........................................................................... 7-3
7.4.3 Configuring Plug-ins........................................................................................................... 7-3
7.5 Deploying an Oracle Kodo Application .................................................................................. 7-4
7.6 Configuring an Oracle Kodo Application ............................................................................... 7-4
7.6.1 Using the Administration Console.................................................................................... 7-4
7.6.2 Configuring Oracle Kodo Without Using the Administration Console...................... 7-5
v
A.2.11.2 Attributes ...................................................................................................................... A-9
A.2.12 javax.ejb.RemoteHome ...................................................................................................... A-9
A.2.12.1 Description ................................................................................................................... A-9
A.2.12.2 Attributes ...................................................................................................................... A-9
A.2.13 javax.ejb.Remove .............................................................................................................. A-10
A.2.13.1 Description ................................................................................................................. A-10
A.2.13.2 Attributes .................................................................................................................... A-10
A.2.14 javax.ejb.Stateful ............................................................................................................... A-10
A.2.14.1 Description ................................................................................................................. A-10
A.2.14.2 Attributes .................................................................................................................... A-10
A.2.15 javax.ejb.Stateless.............................................................................................................. A-11
A.2.15.1 Description ................................................................................................................. A-11
A.2.15.2 Attributes .................................................................................................................... A-11
A.2.16 javax.ejb.Timeout .............................................................................................................. A-12
A.2.16.1 Description ................................................................................................................. A-12
A.2.17 javax.ejb.TransactionAttribute........................................................................................ A-12
A.2.17.1 Description ................................................................................................................. A-13
A.2.17.2 Attributes .................................................................................................................... A-13
A.2.18 javax.ejb.TransactionManagement................................................................................. A-13
A.2.18.1 Description ................................................................................................................. A-14
A.2.18.2 Attributes .................................................................................................................... A-14
A.3 Annotations Used to Configure Interceptors....................................................................... A-14
A.3.1 javax.interceptor.AroundInvoke .................................................................................... A-14
A.3.1.1 Description ................................................................................................................. A-14
A.3.2 javax.interceptor.ExcludeClassInterceptors.................................................................. A-15
A.3.2.1 Description ................................................................................................................. A-15
A.3.3 javax.interceptor.ExcludeDefaultInterceptors.............................................................. A-15
A.3.3.1 Description ................................................................................................................. A-15
A.3.4 javax.interceptor.Interceptors ......................................................................................... A-15
A.3.4.1 Description ................................................................................................................. A-15
A.3.4.2 Attributes .................................................................................................................... A-16
A.4 Annotations Used to Interact With Entity Beans ................................................................ A-16
A.4.1 javax.persistence.PersistenceContext............................................................................. A-16
A.4.1.1 Description ................................................................................................................. A-16
A.4.1.2 Attributes .................................................................................................................... A-16
A.4.2 javax.persistence.PersistenceContexts ........................................................................... A-17
A.4.2.1 Description ................................................................................................................. A-17
A.4.2.2 Attributes .................................................................................................................... A-18
A.4.3 javax.persistence.PersistenceUnit................................................................................... A-18
A.4.3.1 Description ................................................................................................................. A-18
A.4.3.2 Attributes .................................................................................................................... A-18
A.4.4 javax.persistence.PersistenceUnits ................................................................................. A-19
A.4.4.1 Description ................................................................................................................. A-19
A.4.4.2 Attributes .................................................................................................................... A-19
A.5 Standard JDK Annotations Used By EJB 3.0 ........................................................................ A-19
A.5.1 javax.annotation.PostConstruct...................................................................................... A-19
A.5.1.1 Description ................................................................................................................. A-20
vi
A.5.2 javax.annotation.PreDestroy ........................................................................................... A-20
A.5.2.1 Description ................................................................................................................. A-20
A.5.3 javax.annotation.Resource............................................................................................... A-20
A.5.3.1 Description ................................................................................................................. A-20
A.5.3.2 Attributes .................................................................................................................... A-21
A.5.4 javax.annotation.Resources ............................................................................................. A-22
A.5.4.1 Description ................................................................................................................. A-22
A.5.4.2 Attributes .................................................................................................................... A-22
A.6 Standard Security-Related JDK Annotations Used by EJB 3.0 .......................................... A-22
A.6.1 javax.annotation.security.DeclareRoles......................................................................... A-22
A.6.1.1 Description ................................................................................................................. A-22
A.6.1.2 Attributes .................................................................................................................... A-23
A.6.2 javax.annotation.security.DenyAll................................................................................. A-23
A.6.2.1 Description ................................................................................................................. A-23
A.6.3 javax.annotation.security.PermitAll .............................................................................. A-23
A.6.3.1 Description ................................................................................................................. A-23
A.6.4 javax.annotation.security.RolesAllowed....................................................................... A-23
A.6.4.1 Description ................................................................................................................. A-23
A.6.4.2 Attributes .................................................................................................................... A-24
A.6.5 javax.annotation.security.RunAs.................................................................................... A-24
A.6.5.1 Description ................................................................................................................. A-24
A.6.5.2 Attributes .................................................................................................................... A-24
A.7 WebLogic Annotations............................................................................................................ A-24
A.7.1 weblogic.javaee.AllowRemoveDuringTrasaction........................................................ A-25
A.7.1.1 Description ................................................................................................................. A-25
A.7.2 weblogic.javaee.CallByReference ................................................................................... A-25
A.7.2.1 Description ................................................................................................................. A-25
A.7.3 weblogic.javaee.DisableWarnings.................................................................................. A-25
A.7.3.1 Description ................................................................................................................. A-25
A.7.3.2 Attributes .................................................................................................................... A-26
A.7.4 weblogic.javaee.EJBReference......................................................................................... A-26
A.7.4.1 Description ................................................................................................................. A-26
A.7.4.2 Attribute...................................................................................................................... A-26
A.7.5 weblogic.javaee.Idempotent............................................................................................ A-27
A.7.5.1 Description ................................................................................................................. A-27
A.7.5.2 Attributes .................................................................................................................... A-27
A.7.6 weblogic.javaee.JMSClientID.......................................................................................... A-27
A.7.6.1 Description ................................................................................................................. A-27
A.7.6.2 Attributes .................................................................................................................... A-28
A.7.7 weblogic.javaee.JNDIName ............................................................................................ A-28
A.7.7.1 Description ................................................................................................................. A-28
A.7.7.2 Attributes .................................................................................................................... A-28
A.7.8 weblogic.javaee.MessageDestinationConfiguration.................................................... A-29
A.7.8.1 Description ................................................................................................................. A-29
A.7.8.2 Attributes .................................................................................................................... A-29
A.7.9 weblogic.javaee.TransactionIsolation ............................................................................ A-29
A.7.9.1 Description ................................................................................................................. A-29
vii
A.7.9.2 Attributes .................................................................................................................... A-30
A.7.10 weblogic.javaee.TransactionTimeoutSeconds .............................................................. A-30
A.7.10.1 Description ................................................................................................................. A-30
A.7.10.2 Attributes .................................................................................................................... A-30
viii
B.17 batching-operation-order-update-manager ......................................................................... B-13
B.17.1 Function.............................................................................................................................. B-14
B.17.2 Example.............................................................................................................................. B-14
B.18 buffer-size.................................................................................................................................. B-14
B.18.1 Function.............................................................................................................................. B-14
B.18.2 Example.............................................................................................................................. B-14
B.19 cache-map ................................................................................................................................. B-14
B.19.1 Function.............................................................................................................................. B-14
B.19.2 Example.............................................................................................................................. B-14
B.20 cache-size................................................................................................................................... B-15
B.20.1 Function.............................................................................................................................. B-15
B.20.2 Example.............................................................................................................................. B-15
B.21 channel....................................................................................................................................... B-15
B.21.1 Function.............................................................................................................................. B-15
B.21.2 Example.............................................................................................................................. B-15
B.22 class-table-jdbc-seq .................................................................................................................. B-16
B.22.1 Function.............................................................................................................................. B-16
B.22.2 Example.............................................................................................................................. B-16
B.23 classname .................................................................................................................................. B-16
B.23.1 Function.............................................................................................................................. B-17
B.24 classpath-scan ........................................................................................................................... B-17
B.24.1 Function.............................................................................................................................. B-18
B.24.2 Example.............................................................................................................................. B-18
B.25 clear-on-close ............................................................................................................................ B-18
B.25.1 Function.............................................................................................................................. B-18
B.25.2 Example.............................................................................................................................. B-18
B.26 client-broker-factory ................................................................................................................ B-18
B.26.1 Function.............................................................................................................................. B-18
B.26.2 Example.............................................................................................................................. B-19
B.27 close-on-managed-commit ..................................................................................................... B-19
B.27.1 Function.............................................................................................................................. B-19
B.27.2 Example.............................................................................................................................. B-19
B.28 cluster-remote-commit-provider ........................................................................................... B-19
B.28.1 Function.............................................................................................................................. B-19
B.28.2 Example.............................................................................................................................. B-19
B.29 commons-log-factory............................................................................................................... B-20
B.29.1 Function.............................................................................................................................. B-20
B.29.2 Example.............................................................................................................................. B-20
B.30 compatibility............................................................................................................................. B-20
B.30.1 Function.............................................................................................................................. B-20
B.30.2 Example.............................................................................................................................. B-20
B.31 concurrent-hash-map .............................................................................................................. B-20
B.31.1 Function.............................................................................................................................. B-21
B.31.2 Example.............................................................................................................................. B-21
B.32 connection-decorators ............................................................................................................. B-21
B.32.1 Function.............................................................................................................................. B-21
B.32.2 Example.............................................................................................................................. B-21
ix
B.33 connection-driver-name.......................................................................................................... B-22
B.33.1 Function.............................................................................................................................. B-22
B.33.2 Example.............................................................................................................................. B-23
B.34 connection-factory-mode ........................................................................................................ B-23
B.34.1 Function.............................................................................................................................. B-23
B.34.2 Example.............................................................................................................................. B-23
B.35 connection-factory-name ........................................................................................................ B-23
B.35.1 Function.............................................................................................................................. B-23
B.35.2 Example.............................................................................................................................. B-24
B.36 connection-factory-properties ................................................................................................ B-24
B.36.1 Function.............................................................................................................................. B-24
B.36.2 Example.............................................................................................................................. B-24
B.37 connection-factory2-name ...................................................................................................... B-24
B.37.1 Function.............................................................................................................................. B-24
B.37.2 Example.............................................................................................................................. B-24
B.38 connection-factory2-properties .............................................................................................. B-25
B.38.1 Function.............................................................................................................................. B-25
B.38.2 Example.............................................................................................................................. B-25
B.39 connection-password............................................................................................................... B-25
B.39.1 Function.............................................................................................................................. B-25
B.39.2 Example.............................................................................................................................. B-25
B.40 connection-properties.............................................................................................................. B-25
B.40.1 Function.............................................................................................................................. B-26
B.40.2 Example.............................................................................................................................. B-26
B.41 connection-retain-mode .......................................................................................................... B-26
B.41.1 Function.............................................................................................................................. B-26
B.41.2 Example.............................................................................................................................. B-27
B.42 connection-url........................................................................................................................... B-27
B.42.1 Function.............................................................................................................................. B-27
B.42.2 Example.............................................................................................................................. B-28
B.43 connection-user-name ............................................................................................................. B-28
B.43.1 Function.............................................................................................................................. B-28
B.43.2 Example.............................................................................................................................. B-28
B.44 connection2-driver-name........................................................................................................ B-28
B.44.1 Function.............................................................................................................................. B-28
B.44.2 Example.............................................................................................................................. B-29
B.45 connection2-password............................................................................................................. B-29
B.45.1 Function.............................................................................................................................. B-29
B.45.2 Example.............................................................................................................................. B-29
B.46 connection2-properties............................................................................................................ B-29
B.46.1 Function.............................................................................................................................. B-29
B.46.2 Example.............................................................................................................................. B-29
B.47 connection2-url......................................................................................................................... B-30
B.47.1 Function.............................................................................................................................. B-30
B.47.2 Example.............................................................................................................................. B-30
B.48 connection2-user-name ........................................................................................................... B-30
B.48.1 Function.............................................................................................................................. B-30
x
B.48.2 Example.............................................................................................................................. B-30
B.49 constraint-names ...................................................................................................................... B-30
B.49.1 Function.............................................................................................................................. B-31
B.49.2 Example.............................................................................................................................. B-31
B.50 constraint-update-manager .................................................................................................... B-31
B.50.1 Function.............................................................................................................................. B-31
B.50.2 Example.............................................................................................................................. B-31
B.51 copy-object-ids.......................................................................................................................... B-31
B.51.1 Function.............................................................................................................................. B-31
B.51.2 Example.............................................................................................................................. B-32
B.52 custom-aggregate-listener ...................................................................................................... B-32
B.52.1 Function.............................................................................................................................. B-32
B.52.2 Example.............................................................................................................................. B-32
B.53 custom-broker-factory............................................................................................................. B-32
B.53.1 Function.............................................................................................................................. B-32
B.53.2 Example.............................................................................................................................. B-32
B.54 custom-broker-impl ................................................................................................................. B-32
B.54.1 Function.............................................................................................................................. B-33
B.54.2 Example.............................................................................................................................. B-33
B.55 custom-class-resolver .............................................................................................................. B-33
B.55.1 Function.............................................................................................................................. B-33
B.55.2 Example.............................................................................................................................. B-33
B.56 custom-compatibility............................................................................................................... B-33
B.56.1 Function.............................................................................................................................. B-33
B.56.2 Example.............................................................................................................................. B-34
B.57 custom-connection-decorator................................................................................................. B-34
B.57.1 Function.............................................................................................................................. B-34
B.57.2 Example.............................................................................................................................. B-34
B.58 custom-data-cache ................................................................................................................... B-34
B.58.1 Function.............................................................................................................................. B-34
B.58.2 Example.............................................................................................................................. B-34
B.59 custom-data-cache-manager .................................................................................................. B-35
B.59.1 Function.............................................................................................................................. B-35
B.59.2 Example.............................................................................................................................. B-35
B.60 custom-detach-state ................................................................................................................. B-35
B.60.1 Function.............................................................................................................................. B-35
B.60.2 Example.............................................................................................................................. B-35
B.61 custom-dictionary .................................................................................................................... B-35
B.61.1 Function.............................................................................................................................. B-36
B.61.2 Example.............................................................................................................................. B-36
B.62 custom-driver-data-source ..................................................................................................... B-36
B.62.1 Function.............................................................................................................................. B-36
B.62.2 Example.............................................................................................................................. B-36
B.63 custom-filter-listener ............................................................................................................... B-36
B.63.1 Function.............................................................................................................................. B-36
B.63.2 Example.............................................................................................................................. B-37
B.64 custom-jdbc-listener ................................................................................................................ B-37
xi
B.64.1 Function.............................................................................................................................. B-37
B.64.2 Example.............................................................................................................................. B-37
B.65 custom-lock-manager .............................................................................................................. B-37
B.65.1 Function.............................................................................................................................. B-37
B.65.2 Example.............................................................................................................................. B-37
B.66 custom-log................................................................................................................................. B-38
B.66.1 Function.............................................................................................................................. B-38
B.66.2 Example.............................................................................................................................. B-38
B.67 custom-mapping-defaults....................................................................................................... B-38
B.67.1 Function.............................................................................................................................. B-38
B.67.2 Example.............................................................................................................................. B-38
B.68 custom-mapping-factory ........................................................................................................ B-38
B.68.1 Function.............................................................................................................................. B-39
B.68.2 Example.............................................................................................................................. B-39
B.69 custom-meta-data-factory....................................................................................................... B-39
B.69.1 Function.............................................................................................................................. B-39
B.69.2 Example.............................................................................................................................. B-39
B.70 custom-meta-data-repository................................................................................................. B-39
B.70.1 Function.............................................................................................................................. B-39
B.70.2 Example.............................................................................................................................. B-39
B.71 custom-orphaned-key-action ................................................................................................. B-40
B.71.1 Function.............................................................................................................................. B-40
B.71.2 Example.............................................................................................................................. B-40
B.72 custom-persistence-server ...................................................................................................... B-40
B.72.1 Function.............................................................................................................................. B-40
B.72.2 Example.............................................................................................................................. B-40
B.73 custom-proxy-manager........................................................................................................... B-40
B.73.1 Function.............................................................................................................................. B-41
B.73.2 Example.............................................................................................................................. B-41
B.74 custom-query-compilation-cache .......................................................................................... B-41
B.74.1 Function.............................................................................................................................. B-41
B.74.2 Example.............................................................................................................................. B-41
B.75 custom-remote-commit-provider .......................................................................................... B-41
B.75.1 Function.............................................................................................................................. B-41
B.75.2 Example.............................................................................................................................. B-41
B.76 custom-savepoint-manager .................................................................................................... B-42
B.76.1 Function.............................................................................................................................. B-42
B.76.2 Example.............................................................................................................................. B-42
B.77 custom-schema-factory ........................................................................................................... B-42
B.77.1 Function.............................................................................................................................. B-42
B.77.2 Example.............................................................................................................................. B-42
B.78 custom-seq ................................................................................................................................ B-42
B.78.1 Function.............................................................................................................................. B-43
B.78.2 Example.............................................................................................................................. B-43
B.79 custom-sql-factory ................................................................................................................... B-43
B.79.1 Function.............................................................................................................................. B-43
B.79.2 Example.............................................................................................................................. B-43
xii
B.80 custom-update-manager......................................................................................................... B-43
B.80.1 Function.............................................................................................................................. B-43
B.80.2 Example.............................................................................................................................. B-43
B.81 data-caches ................................................................................................................................ B-44
B.81.1 Function.............................................................................................................................. B-44
B.81.2 Example.............................................................................................................................. B-44
B.82 data-cache-manager-impl ....................................................................................................... B-44
B.82.1 Function.............................................................................................................................. B-44
B.82.2 Example.............................................................................................................................. B-44
B.83 data-cache-timeout .................................................................................................................. B-44
B.83.1 Function.............................................................................................................................. B-45
B.83.2 Example.............................................................................................................................. B-45
B.84 db2-dictionary .......................................................................................................................... B-45
B.84.1 Function.............................................................................................................................. B-45
B.84.2 Example.............................................................................................................................. B-45
B.85 default-access-type................................................................................................................... B-45
B.85.1 Function.............................................................................................................................. B-45
B.85.2 Example.............................................................................................................................. B-46
B.86 default-broker-factory ............................................................................................................. B-46
B.86.1 Function.............................................................................................................................. B-46
B.86.2 Example.............................................................................................................................. B-46
B.87 default-broker-impl ................................................................................................................. B-46
B.87.1 Function.............................................................................................................................. B-46
B.87.2 Example.............................................................................................................................. B-46
B.88 default-class-resolver............................................................................................................... B-46
B.88.1 Function.............................................................................................................................. B-47
B.88.2 Example.............................................................................................................................. B-47
B.89 default-compatibility ............................................................................................................... B-47
B.89.1 Function.............................................................................................................................. B-47
B.89.2 Example.............................................................................................................................. B-47
B.90 default-data-cache.................................................................................................................... B-47
B.90.1 Function.............................................................................................................................. B-47
B.90.2 Example.............................................................................................................................. B-47
B.91 default-detach-state ................................................................................................................. B-48
B.91.1 Function.............................................................................................................................. B-48
B.91.2 Example.............................................................................................................................. B-48
B.92 default-data-cache-manager................................................................................................... B-48
B.92.1 Function.............................................................................................................................. B-48
B.92.2 Example.............................................................................................................................. B-48
B.93 default-driver-data-source...................................................................................................... B-48
B.93.1 Function.............................................................................................................................. B-48
B.93.2 Example.............................................................................................................................. B-49
B.94 default-level .............................................................................................................................. B-49
B.94.1 Function.............................................................................................................................. B-49
B.94.2 Example.............................................................................................................................. B-49
B.95 default-lock-manager .............................................................................................................. B-49
B.95.1 Function.............................................................................................................................. B-49
xiii
B.95.2 Example.............................................................................................................................. B-49
B.96 default-mapping-defaults ....................................................................................................... B-49
B.96.1 Function.............................................................................................................................. B-50
B.96.2 Example.............................................................................................................................. B-50
B.97 default-meta-data-factory ....................................................................................................... B-50
B.97.1 Function.............................................................................................................................. B-50
B.97.2 Example.............................................................................................................................. B-50
B.98 default-meta-data-repository ................................................................................................. B-50
B.98.1 Function.............................................................................................................................. B-50
B.98.2 Example.............................................................................................................................. B-51
B.99 default-orphaned-key-action.................................................................................................. B-51
B.99.1 Function.............................................................................................................................. B-51
B.99.2 Example.............................................................................................................................. B-51
B.100 default-proxy-manager ........................................................................................................... B-51
B.100.1 Function.............................................................................................................................. B-51
B.100.2 Example.............................................................................................................................. B-51
B.101 default-query-compilation-cache........................................................................................... B-52
B.101.1 Function.............................................................................................................................. B-52
B.101.2 Example.............................................................................................................................. B-52
B.102 default-savepoint-manager .................................................................................................... B-52
B.102.1 Function.............................................................................................................................. B-52
B.102.2 Example.............................................................................................................................. B-52
B.103 default-schema-factory............................................................................................................ B-52
B.103.1 Function.............................................................................................................................. B-53
B.103.2 Example.............................................................................................................................. B-53
B.104 default-sql-factory.................................................................................................................... B-53
B.104.1 Function.............................................................................................................................. B-53
B.104.2 Example.............................................................................................................................. B-53
B.105 default-update-manager ......................................................................................................... B-53
B.105.1 Function.............................................................................................................................. B-54
B.105.2 Example.............................................................................................................................. B-54
B.106 deprecated-jdo-mapping-defaults ......................................................................................... B-54
B.106.1 Function.............................................................................................................................. B-54
B.106.2 Example.............................................................................................................................. B-54
B.107 deprecated-jdo-meta-data-factory ......................................................................................... B-54
B.107.1 Function.............................................................................................................................. B-54
B.107.2 Example.............................................................................................................................. B-54
B.108 derby-dictionary....................................................................................................................... B-55
B.108.1 Function.............................................................................................................................. B-55
B.108.2 Example.............................................................................................................................. B-55
B.109 detach-options-all .................................................................................................................... B-55
B.109.1 Function.............................................................................................................................. B-55
B.109.2 Example.............................................................................................................................. B-55
B.110 detach-options-fetch-groups .................................................................................................. B-56
B.110.1 Function.............................................................................................................................. B-56
B.110.2 Example.............................................................................................................................. B-56
B.111 detach-options-loaded............................................................................................................. B-56
xiv
B.111.1 Function.............................................................................................................................. B-56
B.111.2 Example.............................................................................................................................. B-56
B.112 detach-state ............................................................................................................................... B-56
B.112.1 Function.............................................................................................................................. B-57
B.112.2 Example.............................................................................................................................. B-57
B.113 detached-state-field ................................................................................................................. B-57
B.113.1 Function.............................................................................................................................. B-57
B.113.2 Example.............................................................................................................................. B-58
B.114 detached-state-manager.......................................................................................................... B-58
B.114.1 Function.............................................................................................................................. B-58
B.114.2 Example.............................................................................................................................. B-58
B.115 detached-state-transient.......................................................................................................... B-58
B.115.1 Function.............................................................................................................................. B-59
B.115.2 Example.............................................................................................................................. B-59
B.116 detached-new ........................................................................................................................... B-59
B.116.1 Function.............................................................................................................................. B-59
B.116.2 Example.............................................................................................................................. B-59
B.117 diagnostic-context .................................................................................................................... B-59
B.117.1 Function.............................................................................................................................. B-60
B.117.2 Example.............................................................................................................................. B-60
B.118 dynamic-data-structs............................................................................................................... B-60
B.118.1 Function.............................................................................................................................. B-60
B.118.2 Example.............................................................................................................................. B-60
B.119 dynamic-schema-factory......................................................................................................... B-60
B.119.1 Function.............................................................................................................................. B-60
B.119.2 Example.............................................................................................................................. B-61
B.120 eager-fetch-mode ..................................................................................................................... B-61
B.120.1 Function.............................................................................................................................. B-61
B.120.2 Example.............................................................................................................................. B-62
B.121 empress-dictionary .................................................................................................................. B-63
B.121.1 Function.............................................................................................................................. B-63
B.121.2 Example.............................................................................................................................. B-63
B.122 EnableLogMBean ..................................................................................................................... B-63
B.122.1 Function.............................................................................................................................. B-63
B.122.2 Example.............................................................................................................................. B-63
B.123 EnableRuntimeMBean............................................................................................................. B-63
B.123.1 Function.............................................................................................................................. B-64
B.123.2 Example.............................................................................................................................. B-64
B.124 evict-from-data-cache.............................................................................................................. B-64
B.124.1 Function.............................................................................................................................. B-64
B.124.2 Example.............................................................................................................................. B-64
B.125 eviction-schedule ..................................................................................................................... B-64
B.125.1 Function.............................................................................................................................. B-65
B.125.2 Example.............................................................................................................................. B-65
B.126 exception-orphaned-key-action ............................................................................................. B-65
B.126.1 Function.............................................................................................................................. B-65
B.126.2 Example.............................................................................................................................. B-65
xv
B.127 exception-reconnect-attempts ................................................................................................ B-66
B.127.1 Function.............................................................................................................................. B-66
B.127.2 Example.............................................................................................................................. B-66
B.128 execution-context-name-provider ......................................................................................... B-66
B.128.1 Function.............................................................................................................................. B-66
B.128.2 Example.............................................................................................................................. B-66
B.129 export-profiling ........................................................................................................................ B-66
B.129.1 Function.............................................................................................................................. B-67
B.129.2 Example.............................................................................................................................. B-67
B.130 extension-deprecated-jdo-mapping-factory......................................................................... B-67
B.130.1 Function.............................................................................................................................. B-67
B.130.2 Example.............................................................................................................................. B-67
B.131 fetch-batch-size......................................................................................................................... B-67
B.131.1 Function.............................................................................................................................. B-68
B.131.2 Example.............................................................................................................................. B-68
B.132 fetch-direction........................................................................................................................... B-68
B.132.1 Function.............................................................................................................................. B-68
B.132.2 Example.............................................................................................................................. B-68
B.133 fetch-group................................................................................................................................ B-68
B.133.1 Function.............................................................................................................................. B-68
B.133.2 Example.............................................................................................................................. B-69
B.134 fetch-groups .............................................................................................................................. B-69
B.134.1 Function.............................................................................................................................. B-69
B.134.2 Example.............................................................................................................................. B-69
B.135 field-override ............................................................................................................................ B-69
B.135.1 Function.............................................................................................................................. B-70
B.135.2 Example.............................................................................................................................. B-70
B.136 file ............................................................................................................................................... B-70
B.136.1 Function.............................................................................................................................. B-70
B.136.2 Example.............................................................................................................................. B-70
B.137 file-name.................................................................................................................................... B-70
B.137.1 Function.............................................................................................................................. B-70
B.137.2 Example.............................................................................................................................. B-71
B.138 file-schema-factory................................................................................................................... B-71
B.138.1 Function.............................................................................................................................. B-71
B.138.2 Example.............................................................................................................................. B-71
B.139 files ............................................................................................................................................. B-71
B.139.1 Function.............................................................................................................................. B-72
B.139.2 Example.............................................................................................................................. B-72
B.140 filter-listeners ............................................................................................................................ B-72
B.140.1 Function.............................................................................................................................. B-72
B.140.2 Example.............................................................................................................................. B-73
B.141 foreign-keys .............................................................................................................................. B-73
B.141.1 Function.............................................................................................................................. B-73
B.141.2 Example.............................................................................................................................. B-73
B.142 format......................................................................................................................................... B-73
B.142.1 Function.............................................................................................................................. B-73
xvi
B.143 foxpro-dictionary ..................................................................................................................... B-73
B.143.1 Function.............................................................................................................................. B-74
B.143.2 Example.............................................................................................................................. B-74
B.144 flush-before-queries................................................................................................................. B-74
B.144.1 Function.............................................................................................................................. B-74
B.144.2 Example.............................................................................................................................. B-74
B.145 hsql-dictionary.......................................................................................................................... B-74
B.145.1 Function.............................................................................................................................. B-75
B.145.2 Example.............................................................................................................................. B-75
B.146 gem-fire-data-cache ................................................................................................................. B-75
B.146.1 Function.............................................................................................................................. B-75
B.146.2 Example.............................................................................................................................. B-75
B.147 gem-fire-data-cache-name ...................................................................................................... B-75
B.147.1 Function.............................................................................................................................. B-75
B.147.2 Example.............................................................................................................................. B-76
B.148 gui-jmx....................................................................................................................................... B-76
B.148.1 Function.............................................................................................................................. B-76
B.148.2 Example.............................................................................................................................. B-76
B.149 gui-profiling.............................................................................................................................. B-76
B.149.1 Function.............................................................................................................................. B-76
B.149.2 Example.............................................................................................................................. B-76
B.150 Host ............................................................................................................................................ B-76
B.150.1 Function.............................................................................................................................. B-77
B.150.2 Example.............................................................................................................................. B-77
B.151 host ............................................................................................................................................. B-77
B.151.1 Function.............................................................................................................................. B-77
B.151.2 Example.............................................................................................................................. B-77
B.152 http-transport ........................................................................................................................... B-77
B.152.1 Function.............................................................................................................................. B-77
B.152.2 Example.............................................................................................................................. B-77
B.153 ignore-changes ......................................................................................................................... B-78
B.153.1 Function.............................................................................................................................. B-78
B.153.2 Example.............................................................................................................................. B-78
B.154 ignore-unmapped .................................................................................................................... B-78
B.154.1 Function.............................................................................................................................. B-78
B.154.2 Example.............................................................................................................................. B-78
B.155 ignore-virtual............................................................................................................................ B-78
B.155.1 Function.............................................................................................................................. B-79
B.155.2 Example.............................................................................................................................. B-79
B.156 in-memory-savepoint-manager ............................................................................................. B-79
B.156.1 Function.............................................................................................................................. B-79
B.156.2 Example.............................................................................................................................. B-79
B.157 increment................................................................................................................................... B-79
B.157.1 Function.............................................................................................................................. B-80
B.157.2 Example.............................................................................................................................. B-80
B.158 indexes ....................................................................................................................................... B-80
B.158.1 Function.............................................................................................................................. B-80
xvii
B.158.2 Example.............................................................................................................................. B-80
B.159 informix-dictionary.................................................................................................................. B-80
B.159.1 Function.............................................................................................................................. B-80
B.159.2 Example.............................................................................................................................. B-81
B.160 initial-value ............................................................................................................................... B-81
B.160.1 Function.............................................................................................................................. B-81
B.160.2 Example.............................................................................................................................. B-81
B.161 interval-millis............................................................................................................................ B-81
B.161.1 Function.............................................................................................................................. B-81
B.161.2 Example.............................................................................................................................. B-81
B.162 inverse-manager....................................................................................................................... B-82
B.162.1 Function.............................................................................................................................. B-82
B.162.2 Example.............................................................................................................................. B-82
B.163 jdatastore-dictionary................................................................................................................ B-82
B.163.1 Function.............................................................................................................................. B-82
B.163.2 Example.............................................................................................................................. B-82
B.164 jdbc-broker-factory .................................................................................................................. B-82
B.164.1 Function.............................................................................................................................. B-83
B.164.2 Example.............................................................................................................................. B-83
B.165 jdbc-listeners ............................................................................................................................. B-83
B.165.1 Function.............................................................................................................................. B-83
B.165.2 Example.............................................................................................................................. B-83
B.166 jdbc3-savepoint-manager........................................................................................................ B-83
B.166.1 Function.............................................................................................................................. B-83
B.166.2 Example.............................................................................................................................. B-84
B.167 jdo-meta-data-factory .............................................................................................................. B-84
B.167.1 Function.............................................................................................................................. B-84
B.167.2 Example.............................................................................................................................. B-84
B.168 jms-remote-commit-provider................................................................................................. B-84
B.168.1 Function.............................................................................................................................. B-84
B.168.2 Example.............................................................................................................................. B-84
B.169 jmx .............................................................................................................................................. B-85
B.169.1 Function.............................................................................................................................. B-85
B.169.2 Example.............................................................................................................................. B-85
B.170 jmx2-jmx .................................................................................................................................... B-85
B.170.1 Function.............................................................................................................................. B-85
B.170.2 Example.............................................................................................................................. B-85
B.171 JNDIName................................................................................................................................. B-86
B.171.1 Function.............................................................................................................................. B-86
B.171.2 Example.............................................................................................................................. B-86
B.172 kodo-broker .............................................................................................................................. B-86
B.172.1 Function.............................................................................................................................. B-86
B.172.2 Example.............................................................................................................................. B-86
B.173 kodo-concurrent-data-cache................................................................................................... B-87
B.173.1 Function.............................................................................................................................. B-87
B.173.2 Example.............................................................................................................................. B-87
B.174 kodo-data-cache-manager ...................................................................................................... B-87
xviii
B.174.1 Function.............................................................................................................................. B-87
B.174.2 Example.............................................................................................................................. B-87
B.175 kodo-mapping-repository ...................................................................................................... B-87
B.175.1 Function.............................................................................................................................. B-88
B.175.2 Example.............................................................................................................................. B-88
B.176 kodo-persistence-mapping-factory ....................................................................................... B-88
B.176.1 Function.............................................................................................................................. B-88
B.176.2 Example.............................................................................................................................. B-88
B.177 kodo-persistence-meta-data-factory...................................................................................... B-88
B.177.1 Function.............................................................................................................................. B-89
B.177.2 Example.............................................................................................................................. B-89
B.178 kodo-pooling-data-source ...................................................................................................... B-89
B.178.1 Function.............................................................................................................................. B-89
B.178.2 Example.............................................................................................................................. B-89
B.179 kodo-sql-factory ....................................................................................................................... B-89
B.179.1 Function.............................................................................................................................. B-90
B.179.2 Example.............................................................................................................................. B-90
B.180 large-transaction....................................................................................................................... B-90
B.180.1 Function.............................................................................................................................. B-90
B.180.2 Example.............................................................................................................................. B-90
B.181 lazy-schema-factory................................................................................................................. B-90
B.181.1 Function.............................................................................................................................. B-90
B.181.2 Example.............................................................................................................................. B-91
B.182 level ............................................................................................................................................ B-91
B.182.1 Function.............................................................................................................................. B-91
B.182.2 Example.............................................................................................................................. B-91
B.183 local-jmx .................................................................................................................................... B-91
B.183.1 Function.............................................................................................................................. B-91
B.183.2 Example.............................................................................................................................. B-92
B.184 local-profiling ........................................................................................................................... B-92
B.184.1 Function.............................................................................................................................. B-92
B.184.2 Example.............................................................................................................................. B-92
B.185 lock-timeout .............................................................................................................................. B-92
B.185.1 Function.............................................................................................................................. B-92
B.185.2 Example.............................................................................................................................. B-92
B.186 log-factory-impl........................................................................................................................ B-92
B.186.1 Function.............................................................................................................................. B-93
B.186.2 Example.............................................................................................................................. B-93
B.187 log-orphaned-key-action......................................................................................................... B-93
B.187.1 Function.............................................................................................................................. B-93
B.187.2 Example.............................................................................................................................. B-93
B.188 log4j-log-factory ....................................................................................................................... B-93
B.188.1 Function.............................................................................................................................. B-94
B.188.2 Example.............................................................................................................................. B-94
B.189 login-timeout ............................................................................................................................ B-94
B.189.1 Function.............................................................................................................................. B-94
B.189.2 Example.............................................................................................................................. B-94
xix
B.190 lrs-size ........................................................................................................................................ B-94
B.190.1 Function.............................................................................................................................. B-95
B.190.2 Example.............................................................................................................................. B-95
B.191 lru-data-cache ........................................................................................................................... B-95
B.191.1 Function.............................................................................................................................. B-95
B.191.2 Example.............................................................................................................................. B-95
B.192 manage-lru ................................................................................................................................ B-96
B.192.1 Function.............................................................................................................................. B-96
B.192.2 Example.............................................................................................................................. B-96
B.193 mapping .................................................................................................................................... B-96
B.193.1 Function.............................................................................................................................. B-96
B.193.2 Example.............................................................................................................................. B-96
B.194 mapping-column...................................................................................................................... B-96
B.194.1 Function.............................................................................................................................. B-97
B.194.2 Example.............................................................................................................................. B-97
B.195 mapping-defaults-impl ........................................................................................................... B-97
B.195.1 Function.............................................................................................................................. B-97
B.195.2 Example.............................................................................................................................. B-97
B.196 mapping-file-deprecated-jdo-mapping-factory .................................................................. B-98
B.196.1 Function.............................................................................................................................. B-98
B.196.2 Example.............................................................................................................................. B-98
B.197 max-active ................................................................................................................................. B-98
B.197.1 Function.............................................................................................................................. B-98
B.197.2 Example.............................................................................................................................. B-98
B.198 max-idle..................................................................................................................................... B-99
B.198.1 Function.............................................................................................................................. B-99
B.198.2 Example.............................................................................................................................. B-99
B.199 max-size..................................................................................................................................... B-99
B.199.1 Function.............................................................................................................................. B-99
B.199.2 Example.............................................................................................................................. B-99
B.200 maximize-batch-size ................................................................................................................ B-99
B.200.1 Function............................................................................................................................ B-100
B.200.2 Example............................................................................................................................ B-100
B.201 MBeanServerStrategy ............................................................................................................ B-100
B.201.1 Function............................................................................................................................ B-100
B.201.2 Example............................................................................................................................ B-100
B.202 multithreaded ......................................................................................................................... B-100
B.202.1 Function............................................................................................................................ B-101
B.202.2 Example............................................................................................................................ B-101
B.203 mx4j1-jmx ................................................................................................................................ B-101
B.203.1 Function............................................................................................................................ B-101
B.203.2 Example............................................................................................................................ B-101
B.204 mysql-dictionary .................................................................................................................... B-101
B.204.1 Function............................................................................................................................ B-101
B.204.2 Example............................................................................................................................ B-102
B.205 name......................................................................................................................................... B-102
B.205.1 Function............................................................................................................................ B-102
xx
B.206 name-column .......................................................................................................................... B-102
B.206.1 Function............................................................................................................................ B-103
B.206.2 Example............................................................................................................................ B-103
B.207 NamingImpl ........................................................................................................................... B-103
B.207.1 Function............................................................................................................................ B-103
B.207.2 Example............................................................................................................................ B-103
B.208 native-jdbc-seq........................................................................................................................ B-103
B.208.1 Function............................................................................................................................ B-104
B.208.2 Example............................................................................................................................ B-104
B.209 none-jmx.................................................................................................................................. B-104
B.209.1 Function............................................................................................................................ B-104
B.209.2 Example............................................................................................................................ B-104
B.210 none-lock-manager ................................................................................................................ B-104
B.210.1 Function............................................................................................................................ B-105
B.210.2 Example............................................................................................................................ B-105
B.211 none-log-factory ..................................................................................................................... B-105
B.211.1 Function............................................................................................................................ B-105
B.211.2 Example............................................................................................................................ B-105
B.212 none-orphaned-key-action ................................................................................................... B-105
B.212.1 Function............................................................................................................................ B-105
B.212.2 Example............................................................................................................................ B-105
B.213 none-profiling......................................................................................................................... B-106
B.213.1 Function............................................................................................................................ B-106
B.213.2 Example............................................................................................................................ B-106
B.214 nontransactional-read............................................................................................................ B-106
B.214.1 Function............................................................................................................................ B-106
B.214.2 Example............................................................................................................................ B-106
B.215 nontransactional-write .......................................................................................................... B-106
B.215.1 Function............................................................................................................................ B-107
B.215.2 Example............................................................................................................................ B-107
B.216 num-broadcast-threads ......................................................................................................... B-107
B.216.1 Function............................................................................................................................ B-107
B.216.2 Example............................................................................................................................ B-107
B.217 operation-order-update-manager........................................................................................ B-107
B.217.1 Function............................................................................................................................ B-108
B.217.2 Example............................................................................................................................ B-108
B.218 optimistic................................................................................................................................. B-108
B.218.1 Function............................................................................................................................ B-108
B.218.2 Example............................................................................................................................ B-108
B.219 oracle-dictionary .................................................................................................................... B-108
B.219.1 Function............................................................................................................................ B-108
B.219.2 Example............................................................................................................................ B-108
B.220 oracle-savepoint-manager .................................................................................................... B-109
B.220.1 Function............................................................................................................................ B-109
B.220.2 Example............................................................................................................................ B-109
B.221 orm-file-jdor-mapping-factory............................................................................................. B-109
B.221.1 Function............................................................................................................................ B-109
xxi
B.221.2 Example............................................................................................................................ B-109
B.222 order-dirty-objects ................................................................................................................. B-110
B.222.1 Function............................................................................................................................ B-110
B.222.2 Example............................................................................................................................ B-110
B.223 Password ................................................................................................................................. B-110
B.223.1 Function............................................................................................................................ B-110
B.223.2 Example............................................................................................................................ B-110
B.224 persistence-configuration ..................................................................................................... B-110
B.224.1 Function............................................................................................................................ B-111
B.225 persistence-configuration-unit ............................................................................................. B-111
B.225.1 Function............................................................................................................................ B-111
B.226 pessimistic-lock-manager ..................................................................................................... B-111
B.226.1 Function............................................................................................................................ B-111
B.226.2 Example............................................................................................................................ B-111
B.227 persistence-mapping-defaults.............................................................................................. B-111
B.227.1 Function............................................................................................................................ B-112
B.227.2 Example............................................................................................................................ B-112
B.228 populate-data-cache .............................................................................................................. B-112
B.228.1 Function............................................................................................................................ B-112
B.228.2 Example............................................................................................................................ B-112
B.229 Port ........................................................................................................................................... B-112
B.229.1 Function............................................................................................................................ B-112
B.229.2 Example............................................................................................................................ B-112
B.230 port ........................................................................................................................................... B-113
B.230.1 Function............................................................................................................................ B-113
B.230.2 Example............................................................................................................................ B-113
B.231 postgres-dictionary ................................................................................................................ B-113
B.231.1 Function............................................................................................................................ B-113
B.231.2 Example............................................................................................................................ B-113
B.232 primary-key-column.............................................................................................................. B-114
B.232.1 Function............................................................................................................................ B-114
B.232.2 Example............................................................................................................................ B-114
B.233 primary-key-value ................................................................................................................. B-114
B.233.1 Function............................................................................................................................ B-115
B.233.2 Example............................................................................................................................ B-115
B.234 primary-keys........................................................................................................................... B-115
B.234.1 Function............................................................................................................................ B-115
B.234.2 Example............................................................................................................................ B-115
B.235 profiling ................................................................................................................................... B-115
B.235.1 Function............................................................................................................................ B-115
B.235.2 Example............................................................................................................................ B-115
B.236 profiling-proxy-manager ...................................................................................................... B-116
B.236.1 Function............................................................................................................................ B-116
B.236.2 Example............................................................................................................................ B-116
B.237 properties ................................................................................................................................ B-116
B.237.1 Function............................................................................................................................ B-118
B.238 property................................................................................................................................... B-118
xxii
B.238.1 Function............................................................................................................................ B-118
B.238.2 Example............................................................................................................................ B-118
B.239 proxy-manger-impl................................................................................................................ B-118
B.239.1 Function............................................................................................................................ B-118
B.239.2 Example............................................................................................................................ B-119
B.240 query-caches ........................................................................................................................... B-119
B.240.1 Function............................................................................................................................ B-119
B.240.2 Example............................................................................................................................ B-119
B.241 quoted-numbers-in-queries.................................................................................................. B-119
B.241.1 Function............................................................................................................................ B-120
B.241.2 Example............................................................................................................................ B-120
B.242 read-lock-level ........................................................................................................................ B-120
B.242.1 Function............................................................................................................................ B-120
B.242.2 Example............................................................................................................................ B-120
B.243 recover-action ......................................................................................................................... B-120
B.243.1 Function............................................................................................................................ B-121
B.243.2 Example............................................................................................................................ B-121
B.244 recovery-time-millis............................................................................................................... B-121
B.244.1 Function............................................................................................................................ B-121
B.244.2 Example............................................................................................................................ B-121
B.245 resources.................................................................................................................................. B-121
B.245.1 Function............................................................................................................................ B-121
B.245.2 Example............................................................................................................................ B-122
B.246 restore-state............................................................................................................................. B-122
B.246.1 Function............................................................................................................................ B-122
B.246.2 Example............................................................................................................................ B-122
B.247 result-set-type ......................................................................................................................... B-122
B.247.1 Function............................................................................................................................ B-123
B.247.2 Example............................................................................................................................ B-123
B.248 retain-state............................................................................................................................... B-123
B.248.1 Function............................................................................................................................ B-123
B.248.2 Example............................................................................................................................ B-123
B.249 retry-class-registration .......................................................................................................... B-123
B.249.1 Function............................................................................................................................ B-124
B.249.2 Example............................................................................................................................ B-124
B.250 scan-top-down........................................................................................................................ B-124
B.250.1 Function............................................................................................................................ B-124
B.250.2 Example............................................................................................................................ B-125
B.251 schema ..................................................................................................................................... B-125
B.251.1 Function............................................................................................................................ B-125
B.251.2 Example............................................................................................................................ B-125
B.252 schema-column ...................................................................................................................... B-125
B.252.1 Function............................................................................................................................ B-125
B.252.2 Example............................................................................................................................ B-125
B.253 schemas.................................................................................................................................... B-125
B.253.1 Function............................................................................................................................ B-126
B.253.2 Example............................................................................................................................ B-126
xxiii
B.254 sequence .................................................................................................................................. B-126
B.254.1 Function............................................................................................................................ B-126
B.254.2 Example............................................................................................................................ B-126
B.255 sequence-column.................................................................................................................... B-126
B.255.1 Function............................................................................................................................ B-126
B.255.2 Example............................................................................................................................ B-127
B.256 sequence-name ....................................................................................................................... B-127
B.256.1 Function............................................................................................................................ B-127
B.256.2 Example............................................................................................................................ B-127
B.257 ServiceURL.............................................................................................................................. B-127
B.257.1 Function............................................................................................................................ B-127
B.257.2 Example............................................................................................................................ B-127
B.258 simple-driver-data-source .................................................................................................... B-127
B.258.1 Function............................................................................................................................ B-128
B.258.2 Example............................................................................................................................ B-128
B.259 single-file ................................................................................................................................. B-128
B.259.1 Function............................................................................................................................ B-128
B.259.2 Example............................................................................................................................ B-128
B.260 single-jvm-exclusive-lock-manager..................................................................................... B-128
B.260.1 Function............................................................................................................................ B-128
B.260.2 Example............................................................................................................................ B-128
B.261 single-jvm-remote-commit-provider .................................................................................. B-129
B.261.1 Function............................................................................................................................ B-129
B.261.2 Example............................................................................................................................ B-129
B.262 soft-reference-size .................................................................................................................. B-129
B.262.1 Function............................................................................................................................ B-130
B.262.2 Example............................................................................................................................ B-130
B.263 so-timeout ............................................................................................................................... B-130
B.263.1 Function............................................................................................................................ B-130
B.263.2 Example............................................................................................................................ B-130
B.264 sql-server-dictionary.............................................................................................................. B-130
B.264.1 Function............................................................................................................................ B-130
B.264.2 Example............................................................................................................................ B-130
B.265 stack-execution-context-name-provider............................................................................. B-131
B.265.1 Function............................................................................................................................ B-131
B.265.2 Example............................................................................................................................ B-131
B.266 store-mode .............................................................................................................................. B-131
B.266.1 Function............................................................................................................................ B-132
B.266.2 Example............................................................................................................................ B-132
B.267 strict.......................................................................................................................................... B-132
B.267.1 Function............................................................................................................................ B-133
B.267.2 Example............................................................................................................................ B-133
B.268 strict-identity-values.............................................................................................................. B-133
B.268.1 Function............................................................................................................................ B-133
B.268.2 Example............................................................................................................................ B-133
B.269 style .......................................................................................................................................... B-133
B.269.1 Function............................................................................................................................ B-133
xxiv
B.269.2 Example............................................................................................................................ B-134
B.270 subclass-fetch-mode .............................................................................................................. B-134
B.270.1 Function............................................................................................................................ B-134
B.270.2 Example............................................................................................................................ B-134
B.271 sybase-dictionary ................................................................................................................... B-134
B.271.1 Function............................................................................................................................ B-134
B.271.2 Example............................................................................................................................ B-134
B.272 sync-with-managed-transactions......................................................................................... B-135
B.272.1 Function............................................................................................................................ B-135
B.272.2 Example............................................................................................................................ B-135
B.273 synchronize-mappings.......................................................................................................... B-135
B.273.1 Function............................................................................................................................ B-135
B.273.2 Example............................................................................................................................ B-135
B.274 table.......................................................................................................................................... B-135
B.274.1 Function............................................................................................................................ B-136
B.274.2 Example............................................................................................................................ B-136
B.275 table-deprecated-jdo-mapping-factory............................................................................... B-136
B.275.1 Function............................................................................................................................ B-136
B.275.2 Example............................................................................................................................ B-136
B.276 table-jdbc-seq .......................................................................................................................... B-137
B.276.1 Function............................................................................................................................ B-137
B.276.2 Example............................................................................................................................ B-137
B.277 table-jdor-mapping-factory .................................................................................................. B-137
B.277.1 Function............................................................................................................................ B-138
B.277.2 Example............................................................................................................................ B-138
B.278 table-lock-update-manager .................................................................................................. B-138
B.278.1 Function............................................................................................................................ B-138
B.278.2 Example............................................................................................................................ B-138
B.279 table-name............................................................................................................................... B-138
B.279.1 Function............................................................................................................................ B-139
B.279.2 Example............................................................................................................................ B-139
B.280 table-schema-factory.............................................................................................................. B-139
B.280.1 Function............................................................................................................................ B-140
B.280.2 Example............................................................................................................................ B-140
B.281 tangosol-cache-name ............................................................................................................. B-140
B.281.1 Function............................................................................................................................ B-140
B.281.2 Example............................................................................................................................ B-140
B.282 tangosol-cache-type ............................................................................................................... B-140
B.282.1 Function............................................................................................................................ B-141
B.282.2 Example............................................................................................................................ B-141
B.283 tangosol-data-cache ............................................................................................................... B-141
B.283.1 Function............................................................................................................................ B-141
B.283.2 Example............................................................................................................................ B-141
B.284 tcp-remote-commit-provider................................................................................................ B-141
B.284.1 Function............................................................................................................................ B-142
B.284.2 Example............................................................................................................................ B-142
B.285 tcp-transport ........................................................................................................................... B-142
xxv
B.285.1 Function............................................................................................................................ B-142
B.285.2 Example............................................................................................................................ B-142
B.286 time-seeded-seq...................................................................................................................... B-142
B.286.1 Function............................................................................................................................ B-143
B.286.2 Example............................................................................................................................ B-143
B.287 topic.......................................................................................................................................... B-143
B.287.1 Function............................................................................................................................ B-143
B.287.2 Example............................................................................................................................ B-143
B.288 topic-connection-factory ....................................................................................................... B-143
B.288.1 Function............................................................................................................................ B-143
B.288.2 Example............................................................................................................................ B-144
B.289 track-changes .......................................................................................................................... B-144
B.289.1 Function............................................................................................................................ B-144
B.289.2 Example............................................................................................................................ B-144
B.290 transaction-isolation .............................................................................................................. B-144
B.290.1 Function............................................................................................................................ B-144
B.290.2 Example............................................................................................................................ B-145
B.291 transaction-mode ................................................................................................................... B-145
B.291.1 Function............................................................................................................................ B-145
B.291.2 Example............................................................................................................................ B-145
B.292 transaction-name-execution-context-name-provider ....................................................... B-145
B.292.1 Function............................................................................................................................ B-145
B.292.2 Example............................................................................................................................ B-145
B.293 type........................................................................................................................................... B-145
B.293.1 Function............................................................................................................................ B-146
B.293.2 Example............................................................................................................................ B-146
B.294 type-column ............................................................................................................................ B-146
B.294.1 Function............................................................................................................................ B-146
B.294.2 Example............................................................................................................................ B-147
B.295 types ......................................................................................................................................... B-147
B.295.1 Function............................................................................................................................ B-147
B.295.2 Example............................................................................................................................ B-147
B.296 URL .......................................................................................................................................... B-147
B.296.1 Function............................................................................................................................ B-147
B.296.2 Example............................................................................................................................ B-147
B.297 url ............................................................................................................................................. B-147
B.297.1 Function............................................................................................................................ B-148
B.297.2 Example............................................................................................................................ B-148
B.298 urls............................................................................................................................................ B-148
B.298.1 Function............................................................................................................................ B-148
B.298.2 Example............................................................................................................................ B-149
B.299 use-aliases ............................................................................................................................... B-149
B.299.1 Function............................................................................................................................ B-149
B.299.2 Example............................................................................................................................ B-149
B.300 use-schema-validation........................................................................................................... B-149
B.300.1 Function............................................................................................................................ B-150
B.300.2 Example............................................................................................................................ B-150
xxvi
B.301 user-object-execution-context-name-provider................................................................... B-150
B.301.1 Function............................................................................................................................ B-150
B.301.2 Example............................................................................................................................ B-150
B.302 UserName ............................................................................................................................... B-150
B.302.1 Function............................................................................................................................ B-150
B.302.2 Example............................................................................................................................ B-151
B.303 validate-false-returns-hollow ............................................................................................... B-151
B.303.1 Function............................................................................................................................ B-151
B.303.2 Example............................................................................................................................ B-151
B.304 validate-true-checks-store..................................................................................................... B-151
B.304.1 Function............................................................................................................................ B-151
B.304.2 Example............................................................................................................................ B-152
B.305 value-table-jdbc-seq ............................................................................................................... B-152
B.305.1 Function............................................................................................................................ B-152
B.305.2 Example............................................................................................................................ B-152
B.306 version-check-on-read-lock .................................................................................................. B-152
B.306.1 Function............................................................................................................................ B-152
B.306.2 Example............................................................................................................................ B-153
B.307 version-check-on-write-lock................................................................................................. B-153
B.307.1 Function............................................................................................................................ B-153
B.307.2 Example............................................................................................................................ B-153
B.308 version-lock-manager............................................................................................................ B-153
B.308.1 Function............................................................................................................................ B-153
B.308.2 Example............................................................................................................................ B-153
B.309 wls81-jmx ................................................................................................................................ B-154
B.309.1 Function............................................................................................................................ B-154
B.309.2 Example............................................................................................................................ B-154
B.310 write-lock-level....................................................................................................................... B-154
B.310.1 Function............................................................................................................................ B-154
B.310.2 Example............................................................................................................................ B-155
xxvii
xxviii
Preface
This preface describes the document accessibility features and conventions used in this
guide—Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server.
WLACH0010 and WLACH0020
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation
accessible to all users, including users that are disabled. To that end, our
documentation includes features that make information available to users of assistive
technology. This documentation is available in HTML format, and contains markup to
facilitate access by the disabled community. Accessibility standards will continue to
evolve over time, and Oracle is actively engaged with other market-leading
technology vendors to address technical obstacles so that our documentation can be
accessible to all of our customers. For more information, visit the Oracle Accessibility
Program Web site at http://www.oracle.com/accessibility/.
Conventions
The following text conventions are used in this document:
xxix
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated
with an action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for
which you supply particular values.
monospace Monospace type indicates commands within a paragraph, URLs, code
in examples, text that appears on the screen, or text that you enter.
xxx
1
Introduction and Roadmap
1
1-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
New and Changed Features in this Release
1-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
2
Understanding Enterprise JavaBeans 3.0
2
These sections describe the new features and programming model of EJB 3.0.
It is assumed the reader is familiar with Java programming, Java Platform, Enterprise
Edition (Java EE) Version 5, and EJB 2.x concepts and features.
■ Section 2.1, "Understanding EJB 3.0: New Features and Changes From EJB 2.X"
■ Section 2.2, "WebLogic Server Value-Added EJB 3.0 Features"
■ Section 2.3, "EJB 3.0 Examples"
■ Section 2.4, "Programming 3.0 Entities"
2.1 Understanding EJB 3.0: New Features and Changes From EJB 2.X
Enterprise JavaBeans (EJB) is a Java Platform, Enterprise Edition (Java EE) Version 5
technology for the development and deployment of component-based business
applications. Although EJB is a powerful and useful technology, the programming
model in version 2.X and previous was complex and confusing, requiring the creation
of multiple Java files and deployment descriptors for even the simplest of EJB. This
complexity hindered the wide adoption of EJBs.
As a consequence, one of the central goals of Version 3.0 of the EJB specification is to
make it much easier to program an EJB, in particular by reducing the number of
required programming artifacts and introducing a set of EJB-specific metadata
annotations that make programming the bean file easier and more intuitive.
Another goal of the EJB 3.0 specification was to standardize the persistence framework
and reduce the complexity of the entity bean programming model and
object-relational (O/R) mapping model.
The remainder of this section describes, at a high-level, how the programming model
and requirements changed in EJB 3.0, as compared to version 2.X, and lists a brief
description of the new features of EJB 3.0.
■ You are no longer required to create the EJB deployment descriptor files (such as
ejb-jar.xml). You can now use metadata annotations in the bean file itself to
configure metadata. You are still allowed, however, to use XML deployment
descriptors if you want; in the case of conflicts, the deployment descriptor value
overrides the annotation value.
■ The bean file can be a plain old Java object (or POJO); it is no longer required to
implement javax.ejb.SessionBean or javax.ejb.MessageDrivenBean.
■ As a result of not having to implement javax.ejb.SessionBean or
javax.ejb.MessageDrivenBean, the bean file no longer has to implement the
lifecycle callback methods, such as ejbCreate, ejbPassivate, and so on. If,
however, you want to implement these callback methods, you can name them
anything you want and then annotate them with the appropriate annotation, such
as @javax.ejb.PostActivate.
■ The bean file is required to use a business interface. The bean file can either
explicitly implement the business interface or it can specify it using the
@javax.ejb.Remote or @javax.ejb.Local annotations.)
■ The business interface is a plain old Java interface (or POJI); it should not extend
javax.ejb.EJBObject or javax.ejb.EJBLocalObject.
■ The business interface methods may not throw java.rmi.RemoteException
unless the business interface extends java.rmi.Remote.
Because the EJB 3.0 programming model is so simple, Oracle no longer supports using
the EJBGen tags and code-generating tool on EJB 3.0 beans. Rather, you can use this
tool only on 2.X beans. For information, see the "EJBGen Reference" in Programming
WebLogic Enterprise JavaBeans for Oracle WebLogic Server.
2-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
EJB 3.0 Examples
See Section 5.3.4, "Invoking a 3.0 Entity" and KodoEntityManager for general
information about EntityManager and the Oracle Kodo-provided
KodoEntityManager.
2-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
3
Simple Enterprise JavaBeans 3.0 Examples
3
The following sections describe simple Java examples of EJBs that use the new
metadata annotation programming model:
■ Section 3.1, "Example of a Simple Stateless EJB"
■ Section 3.2, "Example of a Simple Stateful EJB"
■ Section 3.3, "Example of an Interceptor Class"
■ Section 3.4, "Example of Invoking a 3.0 Entity From A Session Bean"
Later procedural sections of this guide that describe how to program an EJB make
reference to these examples.
The code shows that the Service business interface has one method,
sayHelloFromServiceBean(), that takes no parameters and returns void.
The following code shows the bean file that implements the preceding Service
interface; the code in bold is described after the example:
package examples;
import static javax.ejb.TransactionAttributeType.*;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.interceptor.ExcludeDefaultInterceptors;
/**
* Bean file that implements the Service business interface.
* Class uses following EJB 3.0 annotations:
* - @Stateless - specifies that the EJB is of type stateless session
* - @TransactionAttribute - specifies that the EJB never runs in a
* transaction
* - @ExcludeDefaultInterceptors - specifies any configured default
* interceptors should not be invoked for this class
*/
@Stateless
@TransactionAttribute(NEVER)
@ExcludeDefaultInterceptors
public class ServiceBean
implements Service
{
public void sayHelloFromServiceBean() {
System.out.println("Hello From Service Bean!");
}
}
The annotations that apply only to EJB 3.0 are in the javax.ejb package.
Annotations that can be used by other Java Platform, Enterprise Edition (Java EE)
Version 5 components are in more generic packages, such javax.interceptor
or javax.annotation.
■ The ServiceBean bean file is a plain Java file that implements the Service
business interface; it is not required to implement any EJB-specific interface. This
means that the bean file does not need to implement the lifecycle methods, such as
ejbCreate and ejbPassivate, that were required in the 2.X programming
model.
■ The class-level @Stateless metadata annotation specifies that the EJB is of type
stateless session.
■ The class-level @TransactionAttribute(NEVER) annotation specifies that the
EJB never runs inside of a transaction.
■ The class-level @ExcludeDefaultInterceptors annotation specifies that
default interceptors, if any are defined in the ejb-jar.xml deployment
descriptor file, should never be invoked for any method invocation of this
particular EJB.
The code shows that the Account business interface has three methods, deposit,
withdraw, and sayHelloFromAccountBean.
3-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Example of a Simple Stateful EJB
The following code shows the bean file that implements the preceding Account
interface; the code in bold is described after the example:
package examples;
import static javax.ejb.TransactionAttributeType.*;
import javax.ejb.Stateful;
import javax.ejb.TransactionAttribute;
import javax.ejb.Remote;
import javax.ejb.EJB;
import javax.annotation.PreDestroy;
import javax.interceptor.Interceptors;
import javax.interceptor.ExcludeClassInterceptors;
import javax.interceptor.InvocationContext;
/**
* Bean file that implements the Account business interface.
* Uses the following EJB annotations:
* - @Stateful: specifies that this is a stateful session EJB
* - @TransactionAttribute - specifies that this EJB never runs
* in a transaction
* - @Remote - specifies the Remote interface for this EJB
* - @EJB - specifies a dependency on the ServiceBean stateless
* session ejb
* - @Interceptors - Specifies that the bean file is associated with an
* Interceptor class; by default all business methods invoke the
* method in the interceptor class annotated with @AroundInvoke.
* - @ExcludeClassInterceptors - Specifies that the interceptor methods
* defined for the bean class should NOT fire for the annotated
* method.
* - @PreDestroy - Specifies lifecycle method that is invoked when the
* bean is about to be destoryed by EJB container.
*
*/
@Stateful
@TransactionAttribute(NEVER)
@Remote({examples.Account.class})
@Interceptors({examples.AuditInterceptor.class})
public class AccountBean
implements Account
{
private int balance = 0;
@EJB(beanName="ServiceBean")
private Service service;
public void deposit(int amount) {
balance += amount;
System.out.println("deposited: "+amount+" balance: "+balance);
}
public void withdraw(int amount) {
balance -= amount;
System.out.println("withdrew: "+amount+" balance: "+balance);
}
@ExcludeClassInterceptors
public void sayHelloFromAccountBean() {
service.sayHelloFromServiceBean();
}
@PreDestroy
public void preDestroy() {
System.out.println("Invoking method: preDestroy()");
}
}
import javax.annotation.PreDestroy;
import javax.interceptor.Interceptors;
import javax.interceptor.ExcludeClassInterceptors;
The annotations that apply only to EJB 3.0 are in the javax.ejb package.
Annotations that can be used by other Java Platform, Enterprise Edition (Java EE)
Version 5 components are in more generic packages, such javax.interceptor
or javax.annotation.
■ Import the InvocationContext class, used to maintain state between interceptors:
import javax.interceptor.InvocationContext;
■ The AccountBean bean file is a plain Java file that implements the Account
business interface; it is not required to implement any EJB-specific interface. This
means that the bean file does not need to implement the lifecycle methods, such as
ejbCreate and ejbPassivate, that were required in the 2.X programming
model.
■ The class-level @Stateful metadata annotation specifies that the EJB is of type
stateful session.
■ The class-level @TransactionAttribute(NEVER) annotation specifies that the
EJB never runs inside of a transaction.
■ The class-level @Remote annotation specifies the name of the remote interface of
the EJB; in this case it is the same as the business interface, Account.
■ The class-level @Interceptors({examples.AuditInterceptor.class})
annotation specifies the interceptor class that is associated with the bean file. This
class typically includes a business method interceptor method, as well as lifecycle
callback interceptor methods. See Section 3.3, "Example of an Interceptor Class" for
details about this class.
■ The field-level @EJB annotation specifies that the annotated variable, service, is
injected with the dependent ServiceBean stateless session bean context. The
data type of the injected field, Service, is the business interface of the
ServiceBean EJB. The following code in the sayHelloFromAccountBean
method shows how to invoke the sayHelloFromServiceBean method of the
dependent ServiceBean:
service.sayHelloFromServiceBean();
3-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Example of an Interceptor Class
of the AccountBean. This shows how you can specify interceptor methods (for
both business methods and lifecycle callbacks) in the bean file itself, in addition to
using an associated interceptor class.
WL_HOME refers to the directory in which you installed WebLogic Server, such as
/Oracle/Middleware/wlserver_10.3.
3-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
4
4Iterative Development of Enterprise
JavaBeans 3.0
The sections that follow describe the general EJB 3.0 implementation process, and
provide guidance for how to get an EJB 3.0 up and in WebLogic Server.
For a review of WebLogic Server EJB features, see Section 2.2, "WebLogic Server
Value-Added EJB 3.0 Features."
■ Section 4.1, "Overview of the EJB 3.0 Development Process"
■ Section 4.2, "Create a Source Directory"
■ Section 4.3, "Program the EJB 3.0 Business Interface"
■ Section 4.4, "Program the Annotated EJB Class"
■ Section 4.5, "Optionally Program Interceptors"
■ Section 4.6, "Compile Java Source"
■ Section 4.7, "Optionally Create and Edit Deployment Descriptors"
■ Section 4.8, "Packaging EJBs"
■ Section 4.9, "Deploying EJBs"
4-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Program the EJB 3.0 Business Interface
weblogic-ejb-jar.xml
weblogic-cmp-jar.xml
foo.class
fooHome.class
fooBean.class
Note: The only requirement for an EJB 3.0 business interface is hat it
must not extend javax.ejb.EJBObject or
javax.ejb.EJBLocalObject, as required in EJB 2.X.
See Section 3.1, "Example of a Simple Stateless EJB" and Section 3.2, "Example of a
Simple Stateful EJB" for examples of business interfaces implemented by stateless and
stateful session beans.
Then program the actual business interface to extend RootI<T> for a particular data
type:
@Remote
public interface StatelessI extends RootI<String> { }
Finally, program the actual stateless session bean to implement the business interface;
use the specified data type, in this case String, in the implementation of the methods:
@Stateless
public class StatelessSample implements StatelessI {
public String getObject() {
return null;
}
public void updateObject(String object) {
}
}
If you define the type variables on the business interface or class, they will be erased.
In this case, the EJB application can be deployed successfully only when the bean class
parameterizes the business interface with upper bounds of the type parameter and no
other generic information. For example, in the following example, the upper bound is
Object:
public class StatelessSample implements StatelessI<Object> {
public Object getObject() {
return null;
}
public void updateObject(Object object) {
}
}
4-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Compile Java Source
validation checks across the modules. See "Building Modules and Applications
Using wlappc" in Developing Applications for Oracle WebLogic Server.
■ wlcompile Ant task—Invokes the javac compiler to compile your application's
Java components in a split development directory structure. See "Compiling
Applications Using wlcompile" in Developing Applications for Oracle WebLogic
Server.
■ javac —The javac compiler provided with the Sun Java J2SE SDK provides java
compilation capabilities. See http://java.sun.com/docs/.
Note: This version of EJB 3.0 also supports all 2.X WebLogic-specific
EJB features. However, the features that are configured in the
weblogic-ejb-jar.xml or weblogic-cmp-rdbms-jar.xml
deployment descriptor files must continue to be configured that way
for this release of EJB 3.0 because currently they do not have any
annotation equivalent.
The 2.X version of Programming WebLogic Enterprise JavaBeans for Oracle WebLogic Server
provides detailed information about creating and editing EJB deployment descriptors,
both the Java EE standard and WebLogic-specific ones. In particular, see the following
sections:
■ "EJB Deployment Descriptors" (Overview Information)
■ "Edit Deployment Descriptors"
■ "Deployment Descriptor Schema and Document Type Definitions Reference"
■ "weblogic-ejb-jar.xml Deployment Descriptor Reference"
■ "weblogic-cmp-jar.xml Deployment Descriptor Reference"
4-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Deploying EJBs
4-8 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
5
Programming the Annotated EJB 3.0 Class
5
The sections that follow describe how to program the annotated EJB 3.0 class file:
■ Section 5.1, "Overview of Metadata Annotations and EJB 3.0 Bean Files"
■ Section 5.2, "Programming the Bean File: Requirements and Changes From 2.X"
■ Section 5.3, "Programming the Bean File: Typical Steps"
■ Section 5.4, "Complete List of Metadata Annotations By Function"
5.2 Programming the Bean File: Requirements and Changes From 2.X
The requirements for programming the 3.0 bean class file are essentially the same as
the 2.X requirements. This section briefly describes the basic mandatory requirements
of the bean class, mostly for overview purposes, as well as changes in requirements
between 2.X and 3.0.
See Programming WebLogic Enterprise JavaBeans for Oracle WebLogic Server for detailed
information about the mandatory and optional requirements for programming the
bean class.
■ If the bean is a session bean, the bean class must implement the bean's business
interface(s) or the methods of the bean's business interface(s), if any.
■ Session beans no longer need to implement javax.ejb.SessionBean, which
means the bean no longer needs to implement the ejbXXX() methods, such as
ejbCreate(), ejbPassivate(), and so on.
■ Stateful session beans no loner need to implement java.io.Serializable.
■ Message-driven beans no longer need to implement
javax.ejb.MessageDrivenBean.
The following requirements are the same as in EJB 2.X and are provided only as a brief
overview:
■ The class must be defined as public, must not be final, and must not be
abstract. The class must be a top level class.
■ The class must have a public constructor that takes no parameters.
■ The class must not define the finalize() method.
■ If the bean is message-driven, the bean class must implement, directly or
indirectly, the message listener interface required by the messaging type that it
supports or the methods of the message listener interface. In the case of JMS, this
is the javax.jms.MessageListener interface.
5-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
The requirements for programming the session bean class' methods (that implement
the business interface methods) are as follows:
■ The method names can be arbitrary.
■ The business method must be declared as public and must not be final or
static.
■ The argument and return value types for a method must be legal types for
RMI/IIOP if the method corresponds to a business method on the session bean's
remote business interface or remote interface.
■ The throws clause may define arbitrary application exceptions.
The requirements for programming the message-driven bean class' methods are as
follows:
■ The methods must implement the listener methods of the message listener
interface.
■ The methods must be declared as public and must not be final or static.
2. Specify the business interface that your EJB is going to implement, as well as other
standard interfaces. You can either explicitly implement the interface, or use an
annotation to specify it.
See Section 5.3.1, "Specifying the Business and Other Interfaces."
3. Use the required annotation to specify the type of bean you are programming
(session or message-driven).
See Section 5.3.2, "Specifying the Bean Type (Stateless, Stateful, Message-Driven)."
4. Optionally use dependency injection to use external resources, such as another EJB
or other Java Platform, Enterprise Edition (Java EE) Version 5 object.
See Section 5.3.3, "Injecting Resource Dependency into a Variable or Setter
Method."
5. Optionally create an EntityManager object and use the entity annotations to
inject entity information.
See Section 5.3.4, "Invoking a 3.0 Entity."
6. Optionally program and configure business method or life cycle callback method
interceptor method. You can program the interceptor methods in the bean file
itself, or in a separate Java file.
See Section 5.3.5, "Specifying Interceptors for Business Methods or Life Cycle
Callback Events."
7. If your business interface specifies that business methods throw application
exceptions, you must program the exception class, the same as in EJB 2.X.
See Section 5.3.6, "Programming Application Exceptions" for EJB 3.0 specific
information.
8. Optionally specify the security roles that are allowed to invoke the EJB methods
using the security-related metadata annotations.
See Section 5.3.7, "Securing Access to the EJB."
9. Optionally change the default transaction configuration in which the EJB runs.
See Section 5.3.8, "Specifying Transaction Management and Attributes."
5-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
For the full example, see Section 3.1, "Example of a Simple Stateless EJB."
Although not required, you can specify attributes of the annotations to further
describe the bean type. For example, you can set the following attributes for all bean
types:
■ name—Name of the bean class; the default value is the unqualified bean class
name.
■ mappedName—Product-specific name of the bean.
■ description—Description of what the bean does.
If you are programming a message-driven bean, then you can specify the following
optional attributes:
■ messageListenerInterface—Specifies the message listener interface, if you
haven't explicitly implemented it or if the bean implements additional interfaces.
■ activationConfig—Specifies an array of activation configuration name-value
pairs that configure the bean in its operational environment.
The following code snippet shows how to specify that a bean is a stateless session
bean:
@Stateless
public class ServiceBean
implements Service
For the full example, see Section 3.1, "Example of a Simple Stateless EJB."
You specify dependency injection by annotating a variable or setter method with one
of the following annotations, depending on the type of resource you want to inject:
■ @javax.ejb.EJB—Specifies a dependency on another EJB.
■ @javax.annotation.Resource—Specifies a dependency on an external
resource, such as a JDBC datasource or a JMS destination or connection factory.
In the preceding example, the private variable service is annotated with the
@javax.ejb.EJB annotation, which makes reference to the EJB with a bean name of
ServiceBean. The data type of the service variable is Service, which is the business
interface implemented by the ServiceBean bean class. As soon as the EJB container
creates the AccountBean EJB, the container injects a reference to ServiceBean into
the service variable; the variable then has direct access to all the business methods
of SessionBean, as shown in the sayHelloFromAccountBean method
implementation in which the sayHelloFromServiceBean method is invoked.
5-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
import javax.ejb.Stateless;
import javax.persistence.PersistenceContext;
import javax.persistence.EntityManager;
@Stateless
public class ServiceBean
implements Service
{
@PersistenceContext private EntityManager em;
...
Note: For clarity, this section assumes that the entities are configured
such that they represent actual rows in a database table.
return l;
5-8 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
@TransactionAttribute(REQUIRED)
public Person createNewPerson(String name, int age) {
The preceding example shows how to create a new Person, based on parameters
passed to the createNewPerson method, and then call the
EntityManager.persist method to automatically add the row to the database
table.
The preceding example also shows how to update the newly-created Person entity
(and thus new table row) with an Address by using the setAddress() entity
method. Depending on the cascade configuration of the Person entity, the second
persist() call may not be necessary; this is because the call to the setAddress()
method might have automatically triggered an update to the database. For more
information about cascading operations, see "Cascade Type" in the Oracle Kodo
documentation.
If you use the EntityManager.find() method to find an entity instance, and then
use a setXXX method to change a property of the entity, the database is automatically
updated and you do not need to explicitly call the EntityManager.persist()
method, as shown in the following code snippet:
@TransactionAttribute(REQUIRED)
public Person changePerson(int id, int newAge) {
Person p = em.find(Person.class, id);
p.setAge(newAge);
return p;
}
5.3.5 Specifying Interceptors for Business Methods or Life Cycle Callback Events
An interceptor is a method that intercepts a business method invocation or a life cycle
callback event. There are two types of interceptors: those that intercept business
methods and those that intercept life cycle callback methods.
Interceptors can be specified for session and message-driven beans.
You can program an interceptor method inside the bean class itself, or in a separate
interceptor class which you then associate with the bean class with the
@javax.interceptor.Interceptors annotation. You can create multiple
interceptor methods that execute as a chain in a particular order.
Interceptor instances may hold state. The life cycle of an interceptor instance is the
same as that of the bean instance with which it is associated. Interceptors can invoke
JNDI, JDBC, JMS, other enterprise beans, and the EntityManager. Interceptor methods
share the JNDI name space of the bean for which they are invoked. Programming
restrictions that apply to enterprise bean components to apply to interceptors as well.
Interceptors are configured using metadata annotations in the javax.interceptor
package, as described in later sections.
The following topics discuss how to actually program interceptors for your bean class:
■ Section 5.3.5.1, "Specifying Business or Life Cycle Interceptors: Typical Steps"
■ Section 5.3.5.2, "Programming the Interceptor Class"
■ Section 5.3.5.3, "Programming Business Method Interceptor Methods"
■ Section 5.3.5.4, "Programming Life Cycle Callback Interceptor Methods"
■ Section 5.3.5.5, "Specifying Default Interceptor Methods"
■ Section 5.3.5.6, "Saving State Across Interceptors With the InvocationContext API"
5-10 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
You can specify any number of interceptor classes for a given bean class—the
order in which they execute is the order in which they are listed in the annotation.
If you specify the interceptor class at the class-level, the interceptor methods apply
to all appropriate bean class methods. If you specify the interceptor class at the
method-level, the interceptor methods apply to only the annotated method.
3. In the bean class or interceptor class (wherever you are programming the
interceptor methods), program business method interceptor methods, as described
in Section 5.3.5.3, "Programming Business Method Interceptor Methods."
4. In the bean class or interceptor class (wherever you are programming the
interceptor methods), program life cycle callback interceptor methods, as
described in Section 5.3.5.3, "Programming Business Method Interceptor
Methods."
5. In the bean class, optionally annotate methods with the
@javax.interceptor.ExcludeClassInterceptors annotation to exclude
any interceptors defined at the class-level.
6. In the bean class, optionally annotate the class or methods with the
@javax.interceptor.ExcludeDefaultInterceptors annotation to
exclude any default interceptors that you might define later. Default interceptors
are configured in the ejb-jar.xml deployment descriptor, and apply to all EJBs
in the JAR file, unless you explicitly use the annotation to exclude them.
7. Optionally specify default interceptors for the entire EJB JAR file, as described in
Section 5.3.5.5, "Specifying Default Interceptor Methods."
The method annotated with the @AroundInvoke annotation must always call
InvocationContext.proceed() or neither the business method will be invoked
nor any subsequent @AroundInvoke methods. See Section 5.3.5.6, "Saving State
Across Interceptors With the InvocationContext API" for additional information about
the InvocationContext API.
Business method interceptor method invocations occur within the same transaction
and security context as the business method for which they are invoked. Business
method interceptor methods may throw runtime exceptions or application exceptions
that are allowed in the throws clause of the business method.
For an example, see Section 3.3, "Example of an Interceptor Class."
You use the preceding annotations the same way, whether the annotated method is in
the bean class or in a separate interceptor class. You can annotate the same method
with more than one annotation.
You can also specify any subset or combination of life cycle callback annotations in the
bean class or in an associated interceptor class. However, the same callback annotation
5-12 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
may not be specified more than once in a given class. If you do specify a callback
annotation more than once in a given class, the EJB will not deploy.
To specify that multiple interceptor methods execute for a given life cycle callback
event, you must associate multiple interceptor classes with the bean file, in addition to
optionally specifying the life cycle callback interceptor method in the bean file itself.
The order in which the interceptor methods execute is the order in which the
associated classes are listed in the @Interceptor annotation. Interceptor methods in
the bean class itself execute after those defined in the interceptor classes.
The signature of the annotated methods depends on where the method is defined:
■ Life cycle callback methods defined on a bean class have the following signature:
void <METHOD>()
■ Life cycle callback methods defined on an interceptor class have the following
signature:
void <METHOD>(InvocationContext)
See Section 5.3.5.6, "Saving State Across Interceptors With the InvocationContext API"
for additional information about the InvocationContext API.
See Section A.2.9, "javax.ejb.PostActivate," Section A.2.10, "javax.ejb.PrePassivate,"
Section A.5.1, "javax.annotation.PostConstruct," and Section A.5.2,
"javax.annotation.PreDestroy" for additional requirements when programming the life
cycle interceptor class.
For an example, see Section 3.3, "Example of an Interceptor Class."
<ejb-jar version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
...
<assembly-descriptor>
...
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>org.mycompany.DefaultIC</interceptor-class>
</interceptors>
</assembly-descriptor>
</ejb-jar>
The getBean method returns the bean instance. The getMethod method returns the
name of the business method for which the interceptor method was invoked; in the
case of life cycle callback interceptor methods, getMethod returns null.
The proceed method causes the invocation of the next interceptor method in the
chain, or the business method itself if called from the last @AroundInvoke interceptor
method.
For an example of using InvocationContext, see Section 3.3, "Example of an
Interceptor Class."
5-14 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Programming the Bean File: Typical Steps
import javax.ejb.ApplicationException;
/**
* Application exception class thrown when there was a processing error
* with a business method of the EJB. Annotated with the
* @ApplicationException annotation.
*/
@ApplicationException()
public class ProcessingException extends Exception {
/**
* Catches exceptions without a specified string
*
*/
public ProcessingException() {}
/**
* Constructs the appropriate exception with the specified string
*
* @param message Exception message
*/
public ProcessingException(String message) {super(message);}
}
You create security roles and map users to roles using the WebLogic Server
Administration Console to update your security realm. For details, see "Manage
Security Roles" in the Oracle WebLogic Server Administration Console Help.
The following example shows a simple stateless session EJB that uses all of the
security-related annotations; the code in bold is discussed after the example:
package examples;
import javax.ejb.Stateless;
import javax.annotation.security.DeclareRoles;
import javax.annotation.security.PermitAll;
import javax.annotation.security.DenyAll;
import javax.annotation.security.RolesAllowed;
import javax.annotation.security.RunAs;
/**
* Bean file that implements the Service business interface.
*/
@Stateless
@DeclareRoles( { "admin", "hr" } )
@RunAs ("admin")
@DenyAll
public void sayHelloSecret() {
System.out.println("No one can invoke this method.");
}
@PermitAll
public void sayHelloPublic() {
System.out.println("Everyone can invoke this method.");
}
}
5-16 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Complete List of Metadata Annotations By Function
■ The class-level @RunAs annotation specifies that, regardless of the user who
actually invokes a particular method of the EJB, the EJB container runs the method
as the admin role, assuming, of course, that the original user is allowed to invoke
the method.
■ The @RolesAllowed annotation on the sayHelloRestricted method specifies
that only users mapped to the admin and hr roles are allowed to invoke the
method.
■ The @DenyAll annotation on the sayHelloSecret method specifies that no one
is allowed to invoke the method.
■ The @PermitAll annotation on the sayHelloPublic method specifies that all
users mapped to any roles are allowed to invoke the method.
5-18 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Complete List of Metadata Annotations By Function
5-20 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Complete List of Metadata Annotations By Function
5-22 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
6
Using Oracle TopLink with Oracle WebLogic
6
Server
6-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Using JPA 2.0 with TopLink in WebLogic Server
6-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
7
Using Oracle Kodo with WebLogic Server
7
7-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Configuring Persistence
what class to use for the plugin and how to configure the public fields or bean
properties of the instantiated plugin instance.
Essentially, plugins are defined using a series of properties using name/value pairs.
For example, the following shows how a plugin is defined within persistence.xml:
<properties>
<property name='myplugin.DataCache' value='com.bea.MyDataCache(CacheSize=1000,
RemoteHost='CacheServer)'>
</properties>
Once you have deployed your Oracle Kodo application, you can alter the
configuration parameters defined in persistence.xml and
persistence-configuration.xml.
The following sections describe how to configure a Oracle Kodo application with or
without using the Administration Console.
7-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Configuring an Oracle Kodo Application
7-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
A
EJB 3.0 Metadata Annotations Reference
A
The following topics provide reference information about the EJB 3.0 metadata
annotations:
■ Section A.1, "Overview of EJB 3.0 Annotations"
■ Section A.2, "Annotations for Stateless, Stateful, and Message-Driven Beans"
■ Section A.3, "Annotations Used to Configure Interceptors"
■ Section A.4, "Annotations Used to Interact With Entity Beans"
■ Section A.5, "Standard JDK Annotations Used By EJB 3.0"
■ Section A.6, "Standard Security-Related JDK Annotations Used by EJB 3.0"
■ Section A.7, "WebLogic Annotations"
A.2.1 javax.ejb.ActivationConfigProperty
The following sections describe the annotation in more detail.
A.2.1.1 Description
Target: Any
Specifies properties used to configure a message-driven bean in its operational
environment. This may include information about message acknowledgement modes,
message selectors, expected destination or endpoint types, and so on.
This annotation is used only as a value to the activationConfig attribute of the
@javax.ejb.MessageDriven annotation. For more information about this
annotation, see "Using EJB 3.0 Compliant MDBs" and "Deployment Elements and
Annotations for MDBs" in Programming Message-Driven Beans for Oracle WebLogic
Server.
A.2.1.2 Attributes
The following table summarizes the attributes.
A.2.2 javax.ejb.ApplicationException
The following sections describe the annotation in more detail.
A.2.2.1 Description
Target: Class
Specifies that an exception is an application exception and that it should be reported to
the client application directly, or unwrapped.
A-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.2.2 Attributes
The following table summarizes the attributes.
A.2.3 javax.ejb.EJB
The following sections describe the annotation in more detail.
A.2.3.1 Description
Target: Class, Method, Field
Specifies a dependency or reference to an EJB business or home interface.
You annotate a bean’s instance variable with the @EJB annotation to specify a
dependence on another EJB. WebLogic Server automatically initializes the annotated
variable with the reference to the EJB on which it depends; this is also called
dependency injection. This initialization occurs before any of the bean’s business
methods are invoked and after the bean’s EJBContext is set.
You can also annotate a setter method in the bean class; in this case WebLogic Server
uses the setter method itself when performing dependency injection. This is an
alternative to instance variable dependency injection.
If you apply the annotation to a class, the annotation declares the EJB that the bean
will look up at runtime.
Whether using variable or setter method injection, WebLogic Server determines the
name of the referenced EJB by either the name or data type of the annotated instance
variable or setter method parameter. If there is any ambiguity, you should use the
beanName or mappedName attributes of the @EJB annotation to explicitly name the
dependent EJB.
A.2.3.2 Attributes
The following table summarizes the attributes.
A.2.4 javax.ejb.EJBs
The following sections describe the annotation in more detail.
A.2.4.1 Description
Target: Class
Specifies an array of @javax.ejb.EJB annotations.
A.2.4.2 Attribute
The following table summarizes the attributes.
A.2.5 javax.ejb.Init
The following sections describe the annotation in more detail.
A-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.5.1 Description
Target: Method
Specifies the correspondence of a method in the bean class with a createMETHOD
method for an adapted EJB 2.1 EJBHome or EJBLocalHome client view.
This annotation is used only in conjunction with stateful session beans, or those that
have been annotated with the @javax.ejb.Stateful class-level annotation,
The return type of a method annotated with the @javax.ejb.Init annotation must
be void, and its parameter types must be exactly the same as those of the referenced
createMETHOD method or methods.
The @Init annotation is required only for stateful session beans that provide a
Remote-Home or LocalHome interface. You must specify the name of the adapted
create method of the Home or LocalHome interface, using the value attribute, if
there is any ambiguity.
A.2.5.2 Attributes
The following table summarizes the attributes.
A.2.6 javax.ejb.Local
The following sections describe the annotation in more detail.
A.2.6.1 Description
Target: Class
Specifies the local interface or interfaces of a session bean. The local interface exposes
business logic to local clients—those running in the same application as the EJB. It
defines the business methods a local client can call.
You are required to specify this annotation if your bean class implements more than a
single interface, not including the following:
■ java.io.Serializable
■ java.io.Externalizable
■ javax.ejb.*
This annotation applies only to stateless or stateful session beans.
A.2.6.2 Attributes
The following table summarizes the attributes.
A.2.7 javax.ejb.LocalHome
The following sections describe the annotation in more detail.
A.2.7.1 Description
Target: Class
Specifies the local home interface of the bean class.
The local home interface provides methods that local clients—those running in the
same application as the EJB—can use to create, remove, and in the case of an entity
bean, find instances of the bean. The local home interface also has home
methods—business logic that is not specific to a particular bean instance.
This attribute applies only to stateless and stateful session beans.
You typically specify this attribute only if you are going to provide an adapted EJB 2.1
component view of the EJB 3.0 bean. You can also use this annotation with bean classes
that have been written to the EJB 2.1 APIs.
A.2.7.2 Attributes
The following table summarizes the attributes.
A.2.8 javax.ejb.MessageDriven
The following sections describe the annotation in more detail.
A.2.8.1 Description
Target: Class
Specifies that the Enterprise JavaBean is a message-driven bean.
A.2.8.2 Attributes
The following table summarizes the attributes.
A-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.9 javax.ejb.PostActivate
The following sections describe the annotation in more detail.
A.2.9.1 Description
Target: Method
Specifies the life cycle callback method that signals that the EJB container has just
reactivated the bean instance.
This annotation applies only to stateful session beans. Because the EJB container
automatically maintains the conversational state of a stateful session bean instance
when it is passivated, you do not need to specify this annotation for most stateful
session beans. You only need to use this annotation, along with its partner
@PrePassivate, if you want to allow your stateful session bean to maintain the open
resources that need to be closed prior to a bean instance’s passivation and then
reopened during the bean instance’s activation.
Only one method in the bean class can be annotated with this annotation. If you
annotate more than one method with this annotations, the EJB will not deploy.
The method annotated with @PostActivate must follow these requirements:
■ The return type of the method must be void.
■ The method must not throw a checked exception.
■ The method may be public, protected, package private or private.
■ The method must not be static.
■ The method must not be final.
This annotation does not have any attributes.
A.2.10 javax.ejb.PrePassivate
The following sections describe the annotation in more detail.
A.2.10.1 Description
Target: Method
Specifies the life cycle callback method that signals that the EJB container is about to
passivate the bean instance.
This annotation applies only to stateful session beans. Because the EJB container
automatically maintains the conversational state of a stateful session bean instance
when it is passivated, you do not need to specify this annotation for most stateful
session beans. You only need to use this annotation, along with its partner
@PostActivate, if you want to allow your stateful session bean to maintain the open
resources that need to be closed prior to a bean instance’s passivation and then
reopened during the bean instance’s activation.
Only one method in the bean class can be annotated with this annotation. If you
annotate more than one method with this annotations, the EJB will not deploy.
The method annotated with @PrePassivate must follow these requirements:
■ The return type of the method must be void.
■ The method must not throw a checked exception.
■ The method may be public, protected, package private or private.
■ The method must not be static.
■ The method must not be final.
A-8 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.11 javax.ejb.Remote
The following sections describe the annotation in more detail.
A.2.11.1 Description
Target: Class
Specifies the remote interface or interfaces of a session bean. The remote interface
exposes business logic to remote clients—clients running in a separate application
from the EJB. It defines the business methods a remote client can call.
This annotation applies only to stateless or stateful session beans.
A.2.11.2 Attributes
The following table summarizes the attributes.
A.2.12 javax.ejb.RemoteHome
The following sections describe the annotation in more detail.
A.2.12.1 Description
Target: Class
Specifies the remote home interface of the bean class.
The remote home interface provides methods that remote clients—those running in a
separate application from the EJB—can use to create, remove, and find instances of the
bean.
This attribute applies only to stateless and stateful session beans.
You typically specify this attribute only if you are going to provide an adapted EJB 2.1
component view of the EJB 3.0 bean. You can also use this annotation with bean classes
that have been written to the EJB 2.1 APIs.
A.2.12.2 Attributes
The following table summarizes the attributes.
A.2.13 javax.ejb.Remove
The following sections describe the annotation in more detail.
A.2.13.1 Description
Target: Method
Use the @javax.ejb.Remove annotation to denote a remove method of a stateful
session bean.
When the method completes, the EJB container will invoke the method annotated with
the @javax.annotation.PreDestroy annotation, if any, and then destroy the
stateful session bean.
A.2.13.2 Attributes
The following table summarizes the attributes.
A.2.14 javax.ejb.Stateful
The following sections describe the annotation in more detail.
A.2.14.1 Description
Target: Class
Specifies that the Enterprise JavaBean is a stateful session bean.
A.2.14.2 Attributes
The following table summarizes the attributes.
A-10 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.15 javax.ejb.Stateless
The following sections describe the annotation in more detail.
A.2.15.1 Description
Target: Class
Specifies that the Enterprise JavaBean is a stateless session bean.
A.2.15.2 Attributes
The following table summarizes the attributes.
A.2.16 javax.ejb.Timeout
The following sections describe the annotation in more detail.
A.2.16.1 Description
Target: Method
Specifies the timeout method of the bean class.
This annotation makes it easy to program an EJB timer service in your bean class. The
EJB timer service is an EJB-container provided service that allows you to create timers
that schedule callbacks to occur when a timer object expires.
Previous to EJB 3.0, your bean class was required to implement
javax.ejb.TimedObject if you wanted to program the timer service. Additionally,
your bean class had to include a method with the exact name ejbTimeout. These
requirements are relaxed in Version 3.0 of EJB. You no longer are required to
implement the javax.ejb.TimedObject interface, and you can name your timeout
method anything you want, as long as you annotate it with the @Timeout annotation.
You can, however, continue to use the pre-3.0 way of programming the timer service if
you want.
For details, see "Programming the EJB Timer Service" in Programming WebLogic
Enterprise JavaBeans for Oracle WebLogic Server.
This annotation does not have any attributes.
A.2.17 javax.ejb.TransactionAttribute
The following sections describe the annotation in more detail.
A-12 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations for Stateless, Stateful, and Message-Driven Beans
A.2.17.1 Description
Target: Class, Method
Specifies whether the EJB container invokes an EJB business method within a
transaction context.
Note: If you specify this annotation, you are also required to use the
@TransactionManagement annotation to specify
container-managed transaction demarcation.
You can specify this annotation on either the bean class, or a particular method of the
class that is also a method of the business interface. If specified at the bean class, the
annotation applies to all applicable business interface methods of the class. If specified
for a particular method, the annotation applies to that method only. If the annotation is
specified at both the class and the method level, the method value overrides if the two
disagree.
If you do not specify the @TransactionAttribute annotation in your bean class,
and the bean uses container managed transaction demarcation, the semantics of the
REQUIRED transaction attribute are assumed.
A.2.17.2 Attributes
The following table summarizes the attributes.
A.2.18 javax.ejb.TransactionManagement
The following sections describe the annotation in more detail.
A.2.18.1 Description
Target: Class
Specifies the transaction management demarcation type of the session bean or
message-driven bean.
A transaction is a unit of work that changes application state—whether on disk, in
memory or in a database—that, once started, is completed entirely, or not at all.
Transactions can be demarcated—started, and ended with a commit or rollback—by
the EJB container, by bean code, or by client code. This annotation specifies whether
the EJB container or the user-written bean code manages the demarcation of a
transaction.
If you do not specify this annotation in your bean class, it is assumed that the bean has
container-managed transaction demarcation.
For additional information about transactions, see "Transaction Design and
Management Options" in Programming WebLogic Enterprise JavaBeans for Oracle
WebLogic Server.
A.2.18.2 Attributes
The following table summarizes the attributes.
A.3.1 javax.interceptor.AroundInvoke
The following sections describe the annotation in more detail.
A.3.1.1 Description
Target: Method
Specifies the business method interceptor for either a bean class or an interceptor class.
A-14 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations Used to Configure Interceptors
You can annotate only one method in the bean class or interceptor class with the
@AroundInvoke annotation; the method cannot be a business method of the bean
class.
This annotation does not have any attributes.
A.3.2 javax.interceptor.ExcludeClassInterceptors
The following sections describe the annotation in more detail.
A.3.2.1 Description
Target: Method
Specifies that any class-level interceptors should not be invoked for the annotated
method. This does not include default interceptors, whose invocation are excluded
only with the @ExcludeDefaultInterceptors annotation.
This annotation does not have any attributes.
A.3.3 javax.interceptor.ExcludeDefaultInterceptors
The following sections describe the annotation in more detail.
A.3.3.1 Description
Target: Class, Method
Specifies that any defined default interceptors (which can be specified only in the EJB
deployment descriptors, and not with annotations) should not be invoked.
If defined at the class-level, the default interceptors are never invoked for any of the
bean’s business methods. If defined at the method-level, the default interceptors are
never invoked for the particular business method, but they are invoked for all other
business methods that do not have the @ExludeDefaultInterceptors annotation.
This annotation does not include any attributes.
A.3.4 javax.interceptor.Interceptors
The following sections describe the annotation in more detail.
A.3.4.1 Description
Target: Class, Method
Specifies the interceptor classes that are associated with the bean class or method. An
interceptor class is a class—distinct from the bean class itself—whose methods are
invoked in response to business method invocations and/or life cycle events on the
bean.
The interceptor class can include both an business interceptor method (annotated with
the @javax.interceptor.AroundInvoke annotation) and life cycle callback
methods (annotated with the @javax.annotation.PostConstruct,
@javax.annotation.PreDestroy, @javax.ejb.PostActivate, and
@javax.ejb.PrePassivate annotations).
Any number of interceptor classes may be defined for a bean class. If more than one
interceptor class is defined, they are invoked in the order they are specified in the
annotation.
If the annotation is specified at the class-level, the interceptors apply to all business
methods of the EJB. If specified at the method-level, the interceptors apply to just that
method. You can specify the same interceptor class to more than one method of the
bean class. By default, method-level interceptors are invoked after all applicable
interceptors (default interceptors, class-level interceptors, and so on).
A.3.4.2 Attributes
The following table summarizes the attributes.
A.4.1 javax.persistence.PersistenceContext
The following sections describe the annotation in more detail.
A.4.1.1 Description
Target: Class, Method, Field
Specifies a dependency on a container-managed EntityManager persistence context.
You use this annotation to interact with a 3.0 entity bean, typically by performing
dependency injection into an EntityManager instance.
The EntityManager interface defines the methods that are used to interact with the
persistence context. A persistence context is a set of entity instances; an entity is a
lightweight persistent domain object. The EntityManager API is used to create and
remove persistent entity instances, to find entities by their primary key, and to query
over entities.
A.4.1.2 Attributes
The following table summarizes the attributes.
A-16 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Annotations Used to Interact With Entity Beans
A.4.2 javax.persistence.PersistenceContexts
The following sections describe the annotation in more detail.
A.4.2.1 Description
Target: Class
Specifies an array of @javax.persistence.PersistenceContext annotations.
A.4.2.2 Attributes
The following table summarizes the attributes.
A.4.3 javax.persistence.PersistenceUnit
The following sections describe the annotation in more detail.
A.4.3.1 Description
Target: Class, Method, Field
Specifies a dependency on an EntityManagerFactory object.
You use this annotation to interact with a 3.0 entity bean, typically by performing
dependency injection into an EntityManagerFactory instance. You can then use
the EntityManagerFactory to create one or more EntityManager instances. This
annotation is similar to the @PersistenceContext annotation, except that it gives
you more control over the life of the EntityManager because you create and destroy
it yourself, rather than let the EJB container do it for you.
The EntityManager interface defines the methods that are used to interact with the
persistence context. A persistence context is a set of entity instances; an entity is a
lightweight persistent domain object. The EntityManager API is used to create and
remove persistent entity instances, to find entities by their primary key, and to query
over entities.
A.4.3.2 Attributes
The following table summarizes the attributes.
A-18 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Standard JDK Annotations Used By EJB 3.0
A.4.4 javax.persistence.PersistenceUnits
The following sections describe the annotation in more detail.
A.4.4.1 Description
Target: Class
Specifies an array of @javax.persistence.PersistenceUnit annotations.
A.4.4.2 Attributes
The following table summarizes the attributes.
A.5.1 javax.annotation.PostConstruct
The following sections describe the annotation in more detail.
A.5.1.1 Description
Target: Method
Specifies the life cycle callback method that the EJB container should execute before
the first business method invocation and after dependency injection is done to perform
any initialization.
You may specify a @PostConstruct method in any bean class that includes
dependency injection.
Only one method in the bean class can be annotated with this annotation. If you
annotate more than one method with this annotations, the EJB will not deploy.
The method annotated with @PostConstruct must follow these requirements:
■ The return type of the method must be void.
■ The method must not throw a checked exception.
■ The method may be public, protected, package private or private.
■ The method must not be static.
■ The method must not be final.
This annotation does not have any attributes.
A.5.2 javax.annotation.PreDestroy
The following sections describe the annotation in more detail.
A.5.2.1 Description
Target: Method
Specifies the life cycle callback method that signals that the bean class instance is about
to be destroyed by the EJB container. You typically apply this annotation to methods
that release resources that the bean class has been holding.
Only one method in the bean class can be annotated with this annotation. If you
annotate more than one method with this annotations, the EJB will not deploy.
The method annotated with @PreDestroy must follow these requirements:
■ The return type of the method must be void.
■ The method must not throw a checked exception.
■ The method may be public, protected, package private or private.
■ The method must not be static.
■ The method must not be final.
This annotation does not have any attributes.
A.5.3 javax.annotation.Resource
The following sections describe the annotation in more detail.
A.5.3.1 Description
Target: Class, Method, Field
Specifies a dependence on an external resource, such as a JDBC data source or a JMS
destination or connection factory.
A-20 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Standard JDK Annotations Used By EJB 3.0
If you specify the annotation on a field or method, the EJB container injects an instance
of the requested resource into the bean when the bean is initialized. If you apply the
annotation to a class, the annotation declares a resource that the bean will look up at
runtime.
A.5.3.2 Attributes
The following table summarizes the attributes.
A.5.4 javax.annotation.Resources
The following sections describe the annotation in more detail.
A.5.4.1 Description
Target: Class
Specifies an array of @Resource annotations.
A.5.4.2 Attributes
The following table summarizes the attributes.
A.6.1 javax.annotation.security.DeclareRoles
The following sections describe the annotation in more detail.
A.6.1.1 Description
Target: Class
Defines the security roles that will be used in the EJB.
You typically use this annotation to define roles that can be tested from within the
methods of the annotated class, such as using the isUserInRole method. You can
A-22 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
Standard Security-Related JDK Annotations Used by EJB 3.0
also use the annotation to explicitly declare roles that are implicitly declared if you use
the @RolesAllowed annotation on the class or a method of the class.
You create security roles in WebLogic Server using the Administration Console. For
details, see "Manage Security Roles" in the Oracle WebLogic Server Administration
Console Help.
A.6.1.2 Attributes
The following table summarizes the attributes.
A.6.2 javax.annotation.security.DenyAll
The following sections describe the annotation in more detail.
A.6.2.1 Description
Target: Method
Specifies that no security role is allowed to access the annotated method, or in other
words, the method is excluded from execution in the EJB container.
This annotation does not have any attributes.
A.6.3 javax.annotation.security.PermitAll
The following sections describe the annotation in more detail.
A.6.3.1 Description
Target: Method
Specifies that all security roles currently defined for WebLogic Server are allowed to
access the annotated method.
This annotation does not have any attributes.
A.6.4 javax.annotation.security.RolesAllowed
The following sections describe the annotation in more detail.
A.6.4.1 Description
Target: Class, Method
Specifies the list of security roles that are allowed to access methods in the EJB.
If you specify it at the class-level, then it applies to all methods in the bean class. If you
specify it at the method-level, then it only applies to that method. If you specify the
annotation at both the class- and method-level, the method value overrides the class
value.
You create security roles in WebLogic Server using the Administration Console. For
details, see "Manage Security Roles" in the Oracle WebLogic Server Administration
Console Help.
A.6.4.2 Attributes
The following table summarizes the attributes.
A.6.5 javax.annotation.security.RunAs
The following sections describe the annotation in more detail.
A.6.5.1 Description
Target: Class
Specifies the security role which actually executes the EJB in the EJB container.
The security role must exist in the WebLogic Server security realm and map to a user
or group. For details, see "Manage Security Roles" in the Oracle WebLogic Server
Administration Console Help.
A.6.5.2 Attributes
The following table summarizes the attributes.
A-24 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
WebLogic Annotations
A.7.1 weblogic.javaee.AllowRemoveDuringTrasaction
The following sections describe the annotation in more detail.
A.7.1.1 Description
Target: Class (Stateful session EJBs only)
Flag that specifies whether an instance can be removed during a transaction.
A.7.2 weblogic.javaee.CallByReference
The following sections describe the annotation in more detail.
A.7.2.1 Description
Target: Class (Stateful or stateless sessions EJBs only)
Flag that specifies whether parameters are copied—or passed by reference—regardless
of whether the EJB is called remotely or from within the same EAR.
A.7.3 weblogic.javaee.DisableWarnings
The following sections describe the annotation in more detail.
A.7.3.1 Description
Target: Class
Specifies that WebLogic Server should disable the warning message whose ID is
specified.
A.7.3.2 Attributes
The following table summarizes the attributes.
A.7.4 weblogic.javaee.EJBReference
The following sections describe the annotation in more detail.
A.7.4.1 Description
Target: Class, Method, Field
Maps EJB reference name to its JNDI name.
A.7.4.2 Attribute
The following table summarizes the attributes.
A-26 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
WebLogic Annotations
A.7.5 weblogic.javaee.Idempotent
The following sections describe the annotation in more detail.
A.7.5.1 Description
Target: Class
Specifies an EJB that is written in such a way that repeated calls to the same method
with the same arguments has exactly the same effect as a single call. This allows the
failover handler to retry a failed call without knowing whether the call actually
compiled on the failed server. When you enable idempotent for a method, the EJB stub
can automatically recover from any failure as long as it can reach another server
hosting the EJB.
A.7.5.2 Attributes
The following table summarizes the attributes.
A.7.6 weblogic.javaee.JMSClientID
The following sections describe the annotation in more detail.
A.7.6.1 Description
Target: Method
Specifies a client ID for the MDB when it connects to a JMS destination. Required for
durable subscriptions to JMS topics.
If you specify the connection factory that the MDB uses in Section A.7.8,
"weblogic.javaee.MessageDestinationConfiguration," the client ID can be defined in
the ClientID element of the associated JMSConnectionFactory element in
config.xml.
If JMSConnectionFactory in config.xml does not specify a ClientID, or if you
use the default connection factory, (you do not specify Section A.7.8,
"weblogic.javaee.MessageDestinationConfiguration") the MDB uses the
jms-client-id value as its client id.
A.7.6.2 Attributes
The following table summarizes the attributes.
A.7.7 weblogic.javaee.JNDIName
The following sections describe the annotation in more detail.
A.7.7.1 Description
Target: Class (Stateful or stateless session EJBs only)
Specifies the JNDI name of an actual EJB, resource, or reference available in WebLogic
Server. This annotation is valid on the remote interface and the implementation class,
if there is only one remote interface.
A.7.7.2 Attributes
The following table summarizes the attributes.
A-28 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
WebLogic Annotations
A.7.8 weblogic.javaee.MessageDestinationConfiguration
The following sections describe the annotation in more detail.
A.7.8.1 Description
Target: Class (Message-driven EJBs only)
Specifies the JNDI name of the JMS Connection Factory that a message-driven EJB
looks up to create its queues and topics.
A.7.8.2 Attributes
The following table summarizes the attributes.
A.7.9 weblogic.javaee.TransactionIsolation
The following sections describe the annotation in more detail.
A.7.9.1 Description
Target: Method
Method-level transaction isolation settings for an EJB.
A.7.9.2 Attributes
The following table summarizes the attributes.
A.7.10 weblogic.javaee.TransactionTimeoutSeconds
The following sections describe the annotation in more detail.
A.7.10.1 Description
Target: Class
Defines the timeout for transactions in seconds.
A.7.10.2 Attributes
The following table summarizes the attributes.
A-30 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
B
Persistence Configuration Schema
B
Reference
The following sections describe the namespace, schema location, file structure, and
elements in the Kodo-specific deployment descriptor,
persistence-configuration.xml.
■ Section B.1, "persistence-configuration.xml Namespace Declaration and Schema
Location"
■ Section B.2, "persistence-configuration.xml Deployment Descriptor File Structure"
■ Section B.3, "persistence-configuration.xml Deployment Descriptor Elements"
http://xmlns.oracle.com/weblogic/persistence-configuration/1.0/persistence-configu
ration.xsd">
...
</persistence-configuration>
* auto-clear
* auto-detaches
* default-broker-factory | abstract-store-broker-factory |
client-broker-factory | jdbc-broker-factory | custom-broker-factory
* default-broker-impl | kodo-broker | custom-broker-impl
* default-class-resolver | custom-class-resolver
* default-compatibility | compatibility | default-compatibility
* connection2-driver-name
* connection2-password
* connection2-properties
* connection2-url
* connection2-user-name
* connection-decorators
* connection-driver-name
* connection-factory2-name
* connection-factory2-properties
* connection-factory-mode
* connection-factory-name
* connection-factory-properties
* connection-password
* connection-properties
* connection-retain-mode
* connection-url
* connection-user-name
* data-caches
* default-data-cache-manager | kodo-data-cache-manager |
data-cache-manager-impl | custom-data-cache-manager
* data-cache-timeout
* 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
B-2 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
persistence-configuration.xml Deployment Descriptor File Structure
B-4 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
access-dictionary
■ jmx
– none-jmx
– local-jmx
– gui-jmx
– jmx2-jmx
– mx4j1-jmx
– wls81-jmx
B.4 abstract-store-broker-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.4.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.kernel.BrokerFactory type to use, in this case
abstract store. For more information, see "kodo.BrokerFactory" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.4.2 Example
<abstract-store-broker-factory/>
B.5 access-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.5.1 Function
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 Help.
B.5.2 Example
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>
B-6 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
access-dictionary
<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-nontransac
tional-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-f
or-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-impo
rted-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-i
nfo>
<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-prima
ry-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>
B.6 access-unloaded
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
B-8 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
addresses
B.6.1 Function
Flag that specifies whether to allow access to unloaded fields of detached objects. Set
to false to throw an exception whenever an unloaded field is accessed. This option is
only available when you use detached state managers.
For more information about the detach state, see "Defining the Detached Object
Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.6.2 Example
<access-unloaded>true</access-unloaded>
B.7 action
Range of values: warn | exception
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
inverse-manager
B.7.1 Function
Controls the action taken when the inverse manager detects an inconsistent
bidirectional relation. Valid options include:
■ warn—Log a warning.
■ exception—Throw an exception.
For more information, see "Managed Inverses" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.7.2 Example
<action>warn</action>
B.8 addresses
Range of values: Valid IP addresses
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.8.1 Function
Specifies a semicolon separated list of IP addresses to which notifications should be
sent. For more information, see "TCP" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.8.2 Example
<addresses>[]</addresses>
B.9 advanced-sql
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.9.1 Function
Configures advanced SQL features. For more information, see "kodo.jdbc.SQLFactory"
in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.10 aggregate-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.10.1 Function
Specifies a list of aggregate listeners to make available to all queries. Each listener
must implement the org.apache.openjpa.kernel.exps.AggregateListener
interface. For more information, see "kodo.AggregateListeners" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.10.2 Example
<aggregate-listeners>
<custom-aggregate-listener>
<classname>...</classname>
<properties>...</properties>
</custom-aggregate-listener>
</aggregate-listener>
B.11 allocate
Range of values: Integer
Default value: 50
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
B-10 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
auto-clear
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
B.11.1 Function
Specifies the number of values to allocate on each database trip. Defaults to 50,
meaning the class will set aside the next 50 numbers each time it accesses the sequence
table. In this case, Kodo only accesses the database to get new sequence numbers once
every 50 sequence number requests. For more information, see "Generators" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.11.2 Example
<allocate>50</allocate>
B.12 assert-allowed-type
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
B.12.1 Function
Flag that specifies whether to immediately throw an exception if you attempt to add
an element to a collection or map that is not assignable to the element type declared in
metadata. For more information, see "Custom Proxies" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.12.2 Example
<assert-allowed-type>false</assert-allowed-type>
B.13 auto-clear
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
B.13.1 Function
Controls whether an object's field values are cleared when entering a transaction. Valid
values include:
■ datastore (0)—Clear object field values when entering a datastore transaction.
This is the default.
■ all (1)—Clear object field values when entering any transaction.
B.13.2 Example
<auto-clear>datastore</auto-clear>
B.14 auto-detach
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
B.14.1 Function
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.
For more information, see "Automatic Detachment" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.14.2 Example
<auto-detach>close</auto-detach>
B-12 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
batching-operation-order-update-manager
B.15 auto-detaches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.15.1 Function
Specifies a list of events on which the managed instances are automatically detached.
Specifies one or more Section B.14, "auto-detach" elements. For more information, see
"Automatic Detachment" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.15.2 Example
<auto-detaches>
<auto-detach>close</auto-detach>
</auto-detaches>
B.16 base-name
Range of values: String
Default value: N/A
Parent elements:
profiling
export-profiling
B.16.1 Function
Defines the basename of the exported data file to create. See "Dumping Profiling Data
to Disk from a Batch Process" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.16.2 Example
<base-name>base</base-name>
B.17 batching-operation-order-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
profiling
B.17.1 Function
Defines an update manager capable of statement batching, that ignores foreign keys
and table-level locking, but optimizes based on the order in which the application has
modified objects. For more information, see "kodo.jdbc.UpdateManager" and
"Statement Batching" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.17.2 Example
<batching-operation-order-update-manager>
<maximize-batch-size>true</maximize-batch-size>
</batching-operation-order-update-manager>
B.18 buffer-size
Range of values: Integer
Default value: 10
Parent elements:
persistence-configuration
persistence-configuration-unit
cluster-remote-commit-provider
B.18.1 Function
Specifies the buffer size of the remote commit provider. For more information, see
"Remote Commit Provider Configuration" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.18.2 Example
<buffer-size>10</buffer-size>
B.19 cache-map
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.19.1 Function
Defines the cache map used to associate query strings and their parsed form. For more
information, see "Query Compilation Cache" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.19.2 Example
<cache-map>
<cache-size>1000</cache-size>
<soft-reference-size>-1</soft-reference-size>
</cache-map>
B-14 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
channel
B.20 cache-size
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
B.20.1 Function
Set the data or query cache size. For more information, see "Configuring the Data
Cache Size" and "Query Cache" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.20.2 Example
<cache-size>1000</cache-size>
B.21 channel
Range of values: String
Default value: openjpa.Runtime
Parent elements:
persistence-configuration
persistence-configuration-unit
B.21.1 Function
Specifies the channel to which you want to log. For more information, see "Orphaned
Keys" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.21.2 Example
<channel>openjpa.Runtime</channel>
B.22 class-table-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.22.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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.
For more information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.22.2 Example
<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>
B.23 classname
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
B-16 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
classpath-scan
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
B.23.1 Function
Name of the class associated with the custom feature.
B.24 classpath-scan
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
B.24.1 Function
Specifies a semicolon-separated list of directories or jar archives listed in your
classpath. Each directory and jar archive is scanned for annotated JP entities or JDO
metadata files based on your metadata factory. For more information, see "Metadata
Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.24.2 Example
<classpath-scan>build</classpath-scan>
B.25 clear-on-close
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
B.25.1 Function
Flag that specifies whether the Tangosol named cache should be completely cleared
when the EntityManagerFactory or PersistenceManagerFactory is closed.
B.25.2 Example
<clear-on-close>false</clear-on-close>
B.26 client-broker-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.26.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing the kodo.kernel.BrokerFactory type to use, in this case remote. For
more information, see "kodo.BrokerFactory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B-18 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
cluster-remote-commit-provider
B.26.2 Example
<client-broker-factory/>
B.27 close-on-managed-commit
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.27.1 Function
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.
For more information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.27.2 Example
<close-on-managed-commit>false</close-on-managed-commit>
B.28 cluster-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.28.1 Function
Configures Kodo to share commit notifications among
persistenceManagerFactories in a cluster. For more information, see "Remote
Commit Provider Configuration" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.28.2 Example
<cluster-remote-commit-provider>
<name>kodo.RemoteCommitProvider</name>
<buffer-size>10</buffer-size>
<recover-action>none</recover-action>
</cluster-remote-commit-provider>
B.29 commons-log-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.29.1 Function
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.
For more information, see "Apache Commons Logging" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.29.2 Example
<commons-log-factory/>
B.30 compatibility
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.30.1 Function
Configure backwards compatibility settings for certain runtime behaviors. For more
information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.30.2 Example
<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>
B.31 concurrent-hash-map
Range of values: N/A
B-20 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
connection-decorators
B.31.1 Function
Defines the concurrent hash map used to associate query strings and their parsed
form. For more information, see "Query Compilation Cache" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.31.2 Example
<concurrent-hash-map>
<max-size>2147483647</max-size>
</concurrent-hash-map>
B.32 connection-decorators
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.32.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing org.apache.openjpa.lib.jdbc.ConnectionDecorator
implementations to install on the connection factory. Specify one or more Section B.57,
"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.
B.32.2 Example
<connection-decorators>
<custom-connection-decorator>
<classname>...</classname>
<properties>...</properties>
</custom-connection-decorator>
</connection-decorators>
B.33 connection-driver-name
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
B.33.1 Function
Full class name of either the JDBC java.sql.Driver or a
javax.sql.DataSource implementation to use to connect to the database. For more
information, see "JDBC" in Kodo 4.2.0 Developers Guide for JPA/JDO.
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
B-22 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
connection-factory-name
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
B.33.2 Example
<connection-driver-name>oracle.jdbc.driver.OracleDriver</connection-driver-name>
B.34 connection-factory-mode
Range of values: local | managed
Default value: local
Parent elements:
persistence-configuration
persistence-configuration-unit
B.34.1 Function
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.
For more information, see "Managed and XA DataSources" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.34.2 Example
<connection-factory-mode>local</connection-factory-mode>
B.35 connection-factory-name
Range of values: JNDI name
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.35.1 Function
The JNDI location of a javax.sql.DataSource to use to connect to the database.
For more information, see "JDBC" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.35.2 Example
<connection-factory-name>java:/OracleSource</connection-factory-name>
B.36 connection-factory-properties
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.36.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
listing properties for configuration of the javax.sql.DataSource, described at
http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html,
in use. For more information, see "JDBC" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.36.2 Example
<connection-factory-properties>
<property>
<name>QueryTimeout</name>
<value>5000</value>
<name>MaxIdle</name>
<value>1</value>
</property>
</connection-factory-properties>
B.37 connection-factory2-name
Range of values: JNDI name
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.37.1 Function
The JNDI location of an unmanaged javax.sql.DataSource to use to connect to
the database. For more information, see "XA Transactions" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.37.2 Example
<connection-factory2-name>java:/OracleXASource</connection-factory2-name>
B-24 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
connection-properties
B.38 connection-factory2-properties
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.38.1 Function
Properties used to configure the javax.sql.DataSource, described at
http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html,
used as the unmanaged ConnectionFactory. For more information, see "Managed and
XA DataSources" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.38.2 Example
<connection-factory2-properties>
<property>
<name>MaxActive</name>
<value>20</value>
<name>MaxIdle</name>
<value>1</value>
</property>
</connection-factory2-properties>
B.39 connection-password
Range of values: Valid password
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.39.1 Function
Password for the user specified by connection-user-name. For more information,
see "JDBC" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.39.2 Example
<connection-password>tiger</connection-password>
B.40 connection-properties
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.40.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more information, see "JDBC" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.40.2 Example
<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>
B.41 connection-retain-mode
Range of values: always | on-demand | persistence-manager | transaction
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.41.1 Function
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.
B-26 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
connection-url
For more information, see "Configuring the Use of JDBC Connections" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.41.2 Example
<connection-retain-mode>on-demand</connection-retain-mode>
B.42 connection-url
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
B.42.1 Function
The JDBC URL for the database. For more information, see "JDBC" in Kodo 4.2.0
Developers Guide for JPA/JDO.
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=<data
base>
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=cu
rsor
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
B.42.2 Example
<connection-url>
jdbc:oracle:thin:@<hostname>:1521:<database>
</connection-url>
B.43 connection-user-name
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
B.43.1 Function
Username to use when connecting to the data source specified by Section B.42,
"connection-url." For more information, see "JDBC" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.43.2 Example
<connection-user-name>scott</connection-user-name>
B.44 connection2-driver-name
Range of values: Valid username
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.44.1 Function
Full class name of either the JDBC java.sql.Driver or a
javax.sql.DataSource implementation to use to connect to the unmanaged
B-28 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
connection2-properties
database. For more information, see "Managed and XA DataSources" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.44.2 Example
<connection2-driver-name>oracle.jdbc.driver.OracleDriver</connection2-driver-name>
B.45 connection2-password
Range of values: Valid password
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.45.1 Function
Password for the unmanaged data source specified by connection2-url.
B.45.2 Example
<connection2-password>tiger</connection2-password>
B.46 connection2-properties
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.46.1 Function
Properties for the unmanaged data source specified by connection2-driver-name
For more information, see "Managed and XA DataSources" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.46.2 Example
<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>
B.47 connection2-url
Range of values: Valid URL
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.47.1 Function
The JDBC URL for the unmanaged datasource. For more information, see "Managed
and XA DataSources" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.47.2 Example
<connection2-url>jdbc:oracle:thin:@CROM:1521:KodoDB</connection2-url>
B.48 connection2-user-name
Range of values: Valid username
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.48.1 Function
Username to use when connecting to the data source specified by Section B.44,
"connection2-driver-name."
B.48.2 Example
<connection2-user-name>scott</connection2-user-name>
B.49 constraint-names
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
B-30 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
copy-object-ids
B.49.1 Function
Flag that specifies whether to include the names of foreign key and unique constraints
in all generated mappings. For more information, see "Mapping Factory" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.49.2 Example
<constraint-names>false</constraint-names>
B.50 constraint-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.50.1 Function
Defines the standard update manager, capable of statement batching and foreign key
constraint evaluation. For more information, see "kodo.jdbc.UpdateManager" and
"Statement Batching" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.50.2 Example
<constraint-update-manager>
<maximize-batch-size>true</maximize-batch-size>
</constraint-update-manager>
B.51 copy-object-ids
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.51.1 Function
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.
For more information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.51.2 Example
<copy-object-ids>false</copy-object-ids>
B.52 custom-aggregate-listener
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
aggregate-listeners
B.52.1 Function
Defines a custom aggregate listener. Each listener must implement the
org.apache.openjpa.kernel.exps.AggregateListener interface. For more
information, see "kodo.AggregateListeners" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.52.2 Example
<aggregate-listeners>
<custom-aggregate-listener>
<classname>...</classname>
<properties>...</properties>
</custom-aggregate-listener>
</aggregate-listener>
B.53 custom-broker-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.53.1 Function
Enables you to specify a custom broker factory. For more information, see
"kodo.BrokerFactory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.53.2 Example
<custom-broker-factory>
<classname>...</classname>
<properties>...</properties>
</custom-broker-factory>
B.54 custom-broker-impl
Range of values: N/A
B-32 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-compatibility
B.54.1 Function
Enables you to define a custom broker implementation. For more information, see
"kodo.BrokerImpl" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.54.2 Example
<custom-broker-impl>
<classname>...</classname>
<properties>...</properties>
</custom-broker-impl>
B.55 custom-class-resolver
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.55.1 Function
Enables you to define a custom class resolver for class name resolution. For more
information, see "kodo.ClassResolver" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.55.2 Example
<custom-class-resolver>
<classname>...</classname>
<properties>...</properties>
</custom-class-resolver>
B.56 custom-compatibility
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.56.1 Function
Enables you to define your own custom compatibility flag. For more information, see
"Compatibility Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.56.2 Example
<custom-compatibility>
<classname>...</classname>
<properties>...</properties>
</custom-compatibility>
B.57 custom-connection-decorator
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
connection-decorators
B.57.1 Function
Enables you to define a custom
org.apache.openjpa.lib.jdbc.ConnectionDecorator implementation to
install on all connection pools. For more information, see
"kodo.jdbc.ConnectionDecorators" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.57.2 Example
<connection-decorators>
<custom-connection-decorator>
<classname>...</classname>
<properties>...</properties>
</custom-connection-decorator>
</connection-decorators>
B.58 custom-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.58.1 Function
Enables you to define a custom data cache. For more information, see
"kodo.DataCache" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.58.2 Example
<data-caches>
<custom-data-cache>
<name>...</name>
<classname>...</classname>
B-34 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-dictionary
<properties>...</properties>
</custom-data-cache>
</data-caches>
B.59 custom-data-cache-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.59.1 Function
Enables you to define a custom data cache manager. For more information, see
"kodo.DataCacheManager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.59.2 Example
<custom-data-cache-manager>
<classname>...</classname>
<properties>...</properties>
</custom-data-cache-manager>
B.60 custom-detach-state
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.60.1 Function
Enables you to define a custom detach state. For more information, see
"kodo.DetachState" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.60.2 Example
<custom-detach-state>
<classname>...</classname
<properties>...</properties>
</custom-detach-state>
B.61 custom-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.61.1 Function
Enables you to define a custom dictionary. For more information, see "Custom
Dictionary Configuration" in the Oracle WebLogic Server Administration Console Help.
B.61.2 Example
<custom-dictionary>
<name>custom-dictionary</name
<classname>..</classname>
<properties>...</properties>
</custom-dictionary>
B.62 custom-driver-data-source
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.62.1 Function
Enables you to define a custom datasource driver. For more information, see
"kodo.jdbc.DriverDataSource" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.62.2 Example
<custom-driver-data-source>
<classname>...</classname
<properties>...</properties>
</custom-driver-data-source>
B.63 custom-filter-listener
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
filter-listeners
B.63.1 Function
Enables you to define a custom filter listener. For more information, see
"kodo.FilterListeners" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B-36 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-lock-manager
B.63.2 Example
<filter-listeners>
<custom-filter-listener>
<classname>...</classname>
<properties>...</properties>
</custom-filter-listener>
</filter-listeners>
B.64 custom-jdbc-listener
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
jdbc-listeners
B.64.1 Function
Enables you to define a custom JDBC listener. For more information, see
"kodo.JDBCListeners" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.64.2 Example
<jdbc-listeners>
<custom-jdbc-listener>
<classname>...</classname>
<properties>...</properties>
</custom-jdbc-listener>
</jdbc-listeners>
B.65 custom-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.65.1 Function
Enables you to define a custom lock manager. For more information, see "Lock
Manager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.65.2 Example
<custom-lock-manager>
<classname>...</classname>
<properties>...</properties>
</custom-lock-manager>
B.66 custom-log
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.66.1 Function
Enables you to define a custom log file. For more information, see "Custom Log" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.66.2 Example
<custom-log>
<classname>...</classname>
<properties>...</properties>
</custom-log>
B.67 custom-mapping-defaults
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.67.1 Function
Enables you to define custom mapping defaults. For more information, see "Mapping
Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.67.2 Example
<custom-mapping-defaults>
<classname>...</classname
<properties>...</properties>
</custom-mapping-defaults>
B.68 custom-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-38 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-meta-data-repository
B.68.1 Function
Specifies a custom mapping factory. For more information, see "Mapping Factory" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.68.2 Example
<custom-mapping-factory/>
B.69 custom-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.69.1 Function
Enables you to specify a custom metadata factory. For more information, see
"Metadata Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.69.2 Example
<custom-meta-data-factory>
<classname>...</classname>
<properties>...</properties>
</custom-meta-data-factory>
B.70 custom-meta-data-repository
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.70.1 Function
Enables you to specify a custom metadata repository. For more information, see
"Metadata Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.70.2 Example
<custom-meta-data-repository>
<classname>...</classname>
<properties>...</properties>
</custom-meta-data-repository>
B.71 custom-orphaned-key-action
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.71.1 Function
Enables you to define a custom orphaned key action. For more information, see
"Orphaned Keys" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.71.2 Example
<custom-orphaned-key-action>
<channel>openjpa.Runtime</channel>
<level>4</level>
<classname>...</classname>
<properties>...</properties>
</custom-orphaned-key-action>
B.72 custom-persistence-server
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.72.1 Function
Enables you to define a custom persistence server. For more information, see
"Standalone Persistence Server" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.72.2 Example
<custom-persistence-server>
<classname>...</classname>
<properties>...</properties>
</custom-persistence-server>
B.73 custom-proxy-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-40 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-remote-commit-provider
B.73.1 Function
Enables you to define a custom proxy manager. For more information, see "Custom
Proxies" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.73.2 Example
<custom-proxy-manager>
<classname>...</classname
<properties>...</properties>
</custom-proxy-manager>
B.74 custom-query-compilation-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.74.1 Function
Enables you to define a custom query compilation cache. For more information, see
"Query Compilation Cache" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.74.2 Example
<custom-query-compilation-cache>
<classname>...</classname
<properties>...</properties>
</custom-query-compilation-cache>
B.75 custom-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.75.1 Function
Enables you to specify a custom remote commit provider. For more information, see
"JMS" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.75.2 Example
<custom-remote-commit-provider>
<name>kodo.RemoteCommitProvider</name>
<classname>...</classname>
<properties>...</properties>
</custom-remote-commit-provider>
B.76 custom-savepoint-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.76.1 Function
Enables you to specify a custom savepoint manager. For more information, see
"Savepoints" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.76.2 Example
<custom-savepoint-manager>
<classname>...</classname>
<properties>...</properties>
</custom-savepoint-manager>
B.77 custom-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.77.1 Function
Specifies a custom schema factory. For more information, see "Schema Factory" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.77.2 Example
<custom-schema-factory>
<classname>...</classname>
<properties>...</properties>
</custom-schema-factory>
B.78 custom-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-42 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
custom-update-manager
B.78.1 Function
Enables you to define a custom generator. For more information, see "Generators" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.78.2 Example
<custom-seq>
<classname>...</classname
<properties>...</properties>
</custom-seq>
B.79 custom-sql-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.79.1 Function
Enables you to define a custom SQL factory. For more information, see
"kodo.jdbc.SQLFactory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.79.2 Example
<custom-sql-factory>
<classname>...</classname>
<properties>...</properties>
</custom-sql-factory>
B.80 custom-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.80.1 Function
Enables you to define a custom update manager to use to flush persistent object
changes to the datastore. For more information, see "kodo.jdbc.UpdateManager" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.80.2 Example
<custom-update-manager>
<classname>..</classname>
<properties>...</properties>
</custom-update-manager>
B.81 data-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.81.1 Function
Specifies plugins used to cache data loaded from the data store. Must implement
org.apache.openjpa.datacache.DataCache. For more information, see "Data
Cache" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.81.2 Example
<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>
B.82 data-cache-manager-impl
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.82.1 Function
Enables the kodo.datacache.DataCacheManager that manages the system data
caches. For more information, see "kodo.DataCacheManager" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.82.2 Example
<data-cache-manager-impl/>
B.83 data-cache-timeout
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration
persistence-configuration-unit
B-44 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
default-access-type
B.83.1 Function
Specifies the amount of time in milliseconds that a class' data is valid. A value of -1
specifies no expiration. See "Setting the Data Cache Timeout Value" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.83.2 Example
<data-cache-timeout>-1</data-cache-timeout>
B.84 db2-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.84.1 Function
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 Help
B.84.2 Example
The db2-dictionary element shares the same subelements as "access-dictionary" on
page B-5.
B.85 default-access-type
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
B.85.1 Function
Specifies the default access type. Valid values include:
■ FIELD—Injects state directly into your persistent fields, and retrieves changed
state from your fields as well.
■ PROPERTY—Retrieves and loads state through JavaBean "getter" and "setter"
methods.
For more information, see "Field and Property Metadata" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.85.2 Example
<default-access-type>FIELD</default-access-type>
B.86 default-broker-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.86.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.kernel.BrokerFactory type to use, in this case the
default, which is JDBC. For more information, see "kodo.BrokerFactory" in the Kodo
4.2.0 Developers Guide for JPA/JDO.
B.86.2 Example
<default-broker-factory/>
B.87 default-broker-impl
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.87.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.kernel.Broker type to use at runtime, in this case
the default. For more information, see "kodo.BrokerImpl" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.87.2 Example
<default-broker-impl/>
B.88 default-class-resolver
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-46 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
default-data-cache
B.88.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.util.ClassResolver implementation to use for
class name resolution, in this case the default. You may wish to plug in your own
resolver if you have special class loading needs. For more information, see
"kodo.ClassResolver" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.88.2 Example
<default-class-resolver/>
B.89 default-compatibility
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.89.1 Function
Sets the default compatibility settings. For more information, see "Compatibility
Configuration"" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.89.2 Example
<default-compatibility/>
B.90 default-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.90.1 Function
Defines the default data cache. For more information, see "Data Cache" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.90.2 Example
<data-caches>
<default-data-cache>
<name>kodo.DataCache</name>
</default-data-cache>
</data-caches>
B.91 default-detach-state
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.91.1 Function
Specifies the default detached state, in this case loaded. For more information, see
"Defining the Detached Object Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.91.2 Example
<default-detach-state/>
B.92 default-data-cache-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.92.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.datacache.DataCacheManager that manages the
system data caches, in this case the default. For more information, see "Data Cache" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.92.2 Example
<default-data-cache-manager>...</default-data-cache-manager>
B.93 default-driver-data-source
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.93.1 Function
Specifies the default kodo.jdbc.schema.DriverDataSource implementation to
use to wrap JDBC Driver classes with javax.sql.DataSource instances. The
provided default implementation, kodo.jdbc.schema.KodoPoolingDataSource,
B-48 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
default-mapping-defaults
will perform connection pooling as described at "JDBC" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.93.2 Example
<default-driver-data-source/>
B.94 default-level
Range of values: TRACE | DEBUG | INFO | WARN | ERROR
Default value: INFO
Parent elements:
persistence-configuration
persistence-configuration-unit
log-factory-impl
B.94.1 Function
Specifies the default logging level of unconfigured channels. For more information, see
"Kodo Logging" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.94.2 Example
<default-level>INFO</default-level>
B.95 default-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.95.1 Function
Specifies to use the default lock manager. For more information, see "Configuring
Default Locking" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.95.2 Example
<default-lock-manager/>
B.96 default-mapping-defaults
Range of values: String
Standard implementations include: jdo and jpa
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.96.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.jdbc.meta.MappingDefaults to use to define
default column names, table names, and constraints for your persistent classes. For
more information and a list of standard implementations, see "Mapping Defaults" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.96.2 Example
<default-mapping-defaults>jpa</default-mapping-defaults>
B.97 default-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.97.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataFactory type to use, in this case the
default, which is kodo.jdo.JDOMetaDataFactory. For more information, see
"Metadata Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.97.2 Example
<default-meta-data-factory/>
B.98 default-meta-data-repository
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.98.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataRepository to use to store the
metadata for your persistent classes, in this case the default,. For more information, see
"Metadata Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B-50 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
default-proxy-manager
B.98.2 Example
<default-meta-data-repository/>
B.99 default-orphaned-key-action
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.99.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.event.OrphanedKeyAction to invoke when Kodo
discovers an orphaned datastore key, in this case the default which is
kodo.event.LogOrphanedKeyAction. In this case, Kodo logs a message for each
orphaned key. For more information, see "Orphaned Keys" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.99.2 Example
<default-orphaned-key-action>
<channel>openjpa.Runtime</channel>
<level>4</level>
</default-orphaned-key-action>
B.100 default-proxy-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.100.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.util.ProxyManager to use for proxying mutable
second class objects, in this case the default, which is
kodo.util.ProxyManagerImpl. For more information, see "Custom Proxies" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.100.2 Example
<default-proxy-manager/>
B.101 default-query-compilation-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.101.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the Map used to associate query strings and their parsed form, in
this case the default. For more information, see "Query Compilation Cache" in the Kodo
4.2.0 Developers Guide for JPA/JDO.
B.101.2 Example
<default-query-compilation-cache/>
B.102 default-savepoint-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.102.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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. For more information, see "Savepoints" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.102.2 Example
<default-savepoint-manager/>
B.103 default-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-52 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
default-update-manager
B.103.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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.
For more information, see "Schema Factory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.103.2 Example
<default-schema-factory/>
B.104 default-sql-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.104.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.jdbc.SQLFactory to use to abstract common SQL
constructs, in this case the default. For more information, see "kodo.jdbc.SQLFactory"
in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.104.2 Example
<default-meta-data-factory/>
B.105 default-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.105.1 Function
Specifies to use the default update manager,
kodo.jdbc.kernel.ConstraintUpdateManager. For more information, see
"kodo.jdbc.UpdateManager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.105.2 Example
<default-update-manager/>
B.106 deprecated-jdo-mapping-defaults
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.106.1 Function
Specifies the mapping defaults for JDO 1.0. For more information, see "Mapping
Defaults" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.106.2 Example
The deprecated-jdo-mapping-defaults element shares the same subelements
as mapping-defaults-impl.
B.107 deprecated-jdo-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.107.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataFactory type to use, in this case
kodo.jdo.DeprecatedJDOMetaDataFactory. For more information, see
""Metadata Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.107.2 Example
<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>
B-54 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
detach-options-all
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
<scan-top-down>false</scan-top-down>
</deprecated-jdo-meta-data-factory>
B.108 derby-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.108.1 Function
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 Help.
B.108.2 Example
The derby-dictionary element shares the same subelements as, plus the following
subelement (default shown):
<derby-dictionary>
...
<shutdown-on-close>true</shutdown-on-close>
</derby-dictionary>
B.109 detach-options-all
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.109.1 Function
Sets the detach state to all to 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. For more information, see
"Defining the Detached Object Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.109.2 Example
<detach-options-all>
<detached-state-manager>true</detached-state-manager>
<detached-state-transient>false</detached-state-transient>
<access-unloaded>true</access-unloaded>
<detached-state-field>true</detached-state-field>
</detach-options-all>
B.110 detach-options-fetch-groups
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.110.1 Function
Sets the detach state to detach all fields and relations in the default fetch group, and
any other fetch groups that you have added to the current fetch configuration. For
more information on custom fetch groups, see "Fetch Groups" in Kodo 4.2.0 Developers
Guide for JPA/JDO. For more information about the detach state, see "Defining the
Detached Object Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.110.2 Example
<detach-options-fetch-groups>
<detached-state-manager>true</detached-state-manager>
<detached-state-transient>false</detached-state-transient>
<access-unloaded>true</access-unloaded>
<detached-state-field>true</detached-state-field>
</detach-options-fetch-groups>
B.111 detach-options-loaded
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.111.1 Function
Sets the detach state to detach all fields and relations that are already loaded, but do
not include unloaded fields in the detached graph. This is the default. For more
information about the detach state, see "Defining the Detached Object Graph" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.111.2 Example
<detach-options-loaded>
<detached-state-manager>true</detached-state-manager>
<detached-state-transient>false</detached-state-transient>
<access-unloaded>true</access-unloaded>
<detached-state-field>true</detached-state-field>
</detach-options-loaded>
B.112 detach-state
Range of values: 1 | 2 | 3
B-56 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
detached-state-field
Default value: 1
Parent elements:
persistence-configuration
persistence-configuration-unit]
kodo-broker
B.112.1 Function
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. For more information, see "Defining the
Detached Object Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.112.2 Example
<detach-state>1</detach-state>
B.113 detached-state-field
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
B.113.1 Function
Flag that specifies whether Kodo should take advantage of a detached state field to
make the attach process more efficient. This field is added by the enhancer and is not
visible to your application. For more information, see "Attach Behavior" in Kodo 4.2.0
Developers Guide for JPA/JDO.
For more information about the detach state, see "Defining the Detached Object
Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.113.2 Example
<detached-state-field>true</detached-state-field>
B.114 detached-state-manager
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
B.114.1 Function
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 Section B.113, "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.
For more information about the detach state, see "Defining the Detached Object
Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.114.2 Example
<detached-state-manager>true</detached-state-manager>
B.115 detached-state-transient
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
detach-options-all
B-58 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
diagnostic-context
persistence-configuration
persistence-configuration-unit
detach-options-fetch-groups
persistence-configuration
persistence-configuration-unit
detach-options-loaded
B.115.1 Function
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.
For more information about the detach state, see "Defining the Detached Object
Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.115.2 Example
<detached-state-transient>false</detached-state-transient>
B.116 detached-new
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.116.1 Function
Flag that specifies whether to use a non-transient detached state field so that objects
crossing serialization barriers can still be attached efficiently. This requires, however,
that your client tier have the enhanced versions of your classes and the Kodo libraries.
For more information about the detach state, see "Defining the Detached Object
Graph" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.116.2 Example
<detached-new>true</detached-new>
B.117 diagnostic-context
Range of values: String
Default value: kodo.ID property, if set
Parent elements:
persistence-configuration
persistence-configuration-unit
log-factory-impl
B.117.1 Function
String that is prepended to all log messages. The kodo.ID property is used by default,
if specified. For more information, see "Kodo Logging" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.117.2 Example
<diagnostic-context>KodoID</diagnostic-context>
B.118 dynamic-data-structs
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
B.118.1 Function
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.
For more information, see "kodo.DynamicDataStructs" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.118.2 Example
<dynamic-data-structs>false</dynamic-data-structs>
B.119 dynamic-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.119.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.jdbc.schema.SchemaFactory to use to store and
B-60 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
eager-fetch-mode
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.
For more information, see "Schema Factory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.119.2 Example
<dynamic-schema-factory/>
B.120 eager-fetch-mode
Range of values: join | multiple | none | parallel | single
Default value: parallel
Parent elements:
persistence-configuration
persistence-configuration-unit
B.120.1 Function
Configures eager fetching. Eager fetching is the ability to efficiently load subclass data
and related objects along with the base instances being queried. For complete details,
see "Eager Fetching" in Kodo 4.2.0 Developers Guide for JPA/JDO.
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 described in "Eager Fetch Mode" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
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
described in "Eager Fetch Mode" in Kodo 4.2.0 Developers Guide for JPA/JDO.
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.
B.120.2 Example
<eager-fetch-mode>parallel</eager-fetch-mode>
B-62 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
EnableRuntimeMBean
B.121 empress-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.121.1 Function
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 Help.
B.121.2 Example
The empress-dictionary element shares the same subelements as Section B.5,
"access-dictionary," plus the following subelement (default shown):
<empress-dictionary>
...
<allow-concurrent-read>false</allow-concurrent-read>
</empress-dictionary>
B.122 EnableLogMBean
Range of values: true | false
Default value: N/A
Parent elements:
jmx
local-jmx
B.122.1 Function
Flag that specifies whether the LogMBean should be registered. For more information,
see "Optional Parameters in Management Group" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.122.2 Example
<EnableLogMBean>true</EnableLogMBean>
B.123 EnableRuntimeMBean
Range of values: true | false
Default value: N/A
Parent elements:
jmx
local-jmx
B.123.1 Function
Flag that specifies whether the RuntimeMBean should be registered. For more
information, see "Optional Parameters in Management Group" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.123.2 Example
<EnableRuntimeMBean>true</EnableRuntimeMBean>
B.124 evict-from-data-cache
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.124.1 Function
Flag that specifies whether to evict data from the data cache at specific times. You
defined the eviction schedule using the Section B.125, "eviction-schedule" element. For
more information, see "Data Cache" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.124.2 Example
<evict-from-data-cache>true</evict-from-data-cache>
B.125 eviction-schedule
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
B-64 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
exception-orphaned-key-action
tangosol-data-cache
B.125.1 Function
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
For more information, see "Configuring the Eviction Schedule" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.125.2 Example
The following setting schedules the default cache to evict values from the cache at 15
and 45 minutes past 3:00 pm on Sunday.
<eviction-schedule>15,45 15 * * 1</eviction-schedule>
B.126 exception-orphaned-key-action
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.126.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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. For more information, see
"Orphaned Keys" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.126.2 Example
<exception-orphaned-key-action/>
B.127 exception-reconnect-attempts
Range of values: Integer
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
B.127.1 Function
Specifies the number of time to attempt to reconnect if the JMS system notifies Kodo of
a serious connection error. A value of 0 (the default) indicates that Kodo will log the
error but otherwise ignore it, hoping the connection is still valid. For more
information, see "JMS" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.127.2 Example
<exception-reconnect-attempts>0<exception-reconnect-attempts>
B.128 execution-context-name-provider
Range of values: N/A
Default value: N/A
Parent elements: N/A
B.128.1 Function
Configure the execution context name provider. For more information, see
"kodo.ExecutionContextNameProvider" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.128.2 Example
<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>
B.129 export-profiling
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
profiling
B-66 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
fetch-batch-size
B.129.1 Function
Configure export profiling data. See "Dumping Profiling Data to Disk from a Batch
Process" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.129.2 Example
<profiling>
<export-profiling>
<interval-millis>-1</interval-millis>
<base-name>name</base-name>
</export-profiling>
</profiling>
B.130 extension-deprecated-jdo-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.130.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more information, see "Mapping Factory" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.130.2 Example
<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>
B.131 fetch-batch-size
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration
persistence-configuration-unit
B.131.1 Function
The number of rows to fetch at one time when scrolling through a result set. The fetch
size can also be set at runtime, as described in "Large Result Sets" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.131.2 Example
<fetch-batch-size>-1</fetch-batch-size>
B.132 fetch-direction
Range of values: forward | reverse | unknown
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
B.132.1 Function
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, as described in "Large Result Sets" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.132.2 Example
<fetch-direction>forward</fetch-direction>
B.133 fetch-group
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
fetch-group
B.133.1 Function
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.
B-68 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
field-override
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.
For more information, see "Custom Fetch Groups" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.133.2 Example
<fetch-groups>
<fetch-group>detail</fetch-group>
</fetch-groups>
B.134 fetch-groups
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.134.1 Function
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. For more information,
see "Custom Fetch Groups" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.134.2 Example
<fetch-groups>
<fetch-group>detail</fetch-group>
</fetch-groups>
B.135 field-override
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
B.135.1 Function
Flag that specifies whether to enable field override.
B.135.2 Example
<field-override>true</field-override>
B.136 file
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
B.136.1 Function
If the parent element is Section B.138, "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. For more information, see "Schema Factory" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
If the parent element is Section B.186, "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. For more information, see
"Kodo Logging" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.136.2 Example
<file>stdout</file>
B.137 file-name
Range of values: String
Default value: package.schema
Parent elements:
persistence-configuration
persistence-configuration-unit
file-schema-factory
B.137.1 Function
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
B-70 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
files
CLASSPATH or in the top level of any JAR in your CLASSPATH. For more information,
see "Schema Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.137.2 Example
<file-name>package.schema</file-name>
B.138 file-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.138.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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 Section B.280, "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.
For more information, see "Schema Factory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.138.2 Example
<file-schema-factory>
<file-name>package.schema</file-name>
<file>package.schema</file>
</file-schema-factory>
B.139 files
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
B.139.1 Function
Specifies a semicolon-separated list of metadata files or JAR archives. Each jar archive
will be scanned for annotated JPA entities or JDO metadata files based on your
metadata factory. For more information, see "Metadata Factory" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.139.2 Example
<files>com/file1;com/file2</files>
B.140 filter-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.140.1 Function
Defines one or more full plugin strings (see "Plugin Configuration" in Kodo 4.2.0
Developers Guide for JPA/JDO) for custom kodo.FilterListeners to make available
to all queries, in addition to the standard set of listeners. You can also add filter
listeners to individual queries, as described in "Query Language Extensions" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
For more information, see "kodo.FilterListeners" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B-72 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
foxpro-dictionary
B.140.2 Example
<filter-listeners>
<custom-filter-listener>detail</custom-filter-listener>
</filter-listeners>
B.141 foreign-keys
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
B.141.1 Function
Flag that specifies whether to read automatically foreign key information during
schema validation. For more information, see "Schema Factory" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.141.2 Example
<foreign-keys>false</foreign-keys>
B.142 format
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
B.142.1 Function
Specifies the format. For more information, see "Generators" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.143 foxpro-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.143.1 Function
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 Help.
B.143.2 Example
The foxpro-dictionary element shares the same subelements as Section B.5,
"access-dictionary."
B.144 flush-before-queries
Range of values: true | false | with-connection
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
B.144.1 Function
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.
For more information, see "Configuring the Use of JDBC Connections" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.144.2 Example
<flush-before-queries>true</flush-before-queries>
B.145 hsql-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-74 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
gem-fire-data-cache-name
B.145.1 Function
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 Help.
B.145.2 Example
The hsql-dictionary element shares the same subelements as Section B.5,
"access-dictionary."
B.146 gem-fire-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.146.1 Function
Integrates with GemStone's GemFire v5.0.1 caching system. For more information, see
"GemStone GemFire Integration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.146.2 Example
<data-caches>
<gem-fire-data-cache>
<name>kodo.DataCache</name>
<gem-fire-cache-name>root/kodo-data-cache</gem-fire-cache-name>
<eviction-schedule>15, 45 15 * * 1</eviction-schedule>
</gem-fire-data-cache>
</data-caches>
B.147 gem-fire-data-cache-name
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
B.147.1 Function
GemFire region name. For more information, see "GemStone GemFire Integration" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.147.2 Example
<gem-fire-data-cache-name>root/kodo-data-cache</gem-fire-data-cache-name>
B.148 gui-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.148.1 Function
Enable management and invoke the JMX management console in the local JVM.
Supports optional parameters in the Management Group, as described in "Optional
Parameters in Management Group" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.148.2 Example
<gui-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
</gui-jmx>
B.149 gui-profiling
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
profiling
B.149.1 Function
Turns on the local profiling GUI. See "Profiling in an Embedded GUI" in the Kodo
Developer's Guide for more information.
B.149.2 Example
<profiling>
<gui-profiling/>
</profiling>
B.150 Host
Range of values: N/A
Default value: N/A
B-76 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
http-transport
Parent elements:
jmx
mx4j1-jmx
B.150.1 Function
Hostname on which the RMI registry naming service listens. Defaults to localhost.
For more information, see "Optional Parameters in Remote Group" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.150.2 Example
<Host>localhost</Host>
B.151 host
Range of values: Valid hostname
Default value: localhost
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-transport
B.151.1 Function
Specifies the host name of the server. This setting is used by clients, not by the server.
For more information, see "Standalone Persistence Server" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.151.2 Example
<host>localhost</host>
B.152 http-transport
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.152.1 Function
Specifies the URL of the remote server. For more information, see "Client Managers" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.152.2 Example
<http-transport>
<url>servlet-url</url>
</http-transport>
B.153 ignore-changes
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.153.1 Function
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 inmemory or flush before running it
against the datastore. For more information, see "kodo.IgnoreChanges" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.153.2 Example
<ignore-changes>false</ignore-changes>
B.154 ignore-unmapped
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
B.154.1 Function
Flag that specifies whether to ignore unmapped base classes and instead use one row
per least-derived mapped class. For more information, see "Generators" in the Kodo
4.2.0 Developers Guide for JPA/JDO.
B.154.2 Example
<ignore-unmapped>false</ignore-unmapped>
B.155 ignore-virtual
Range of values: true | false
Default value: true
Parent elements:
B-78 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
increment
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
B.155.1 Function
Flag that specifies whether to ignore virtual classes. For more information, see
"Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.155.2 Example
<ignore-virtual>false</ignore-virtual>
B.156 in-memory-savepoint-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.156.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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. For
more information, see "Savepoints" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.156.2 Example
<in-memory-savepoint-manager/>
B.157 increment
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
B.157.1 Function
Specifies the amount of sequence increments. For more information, see "Generators"
in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.157.2 Example
<increment>1</increment>
B.158 indexes
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
B.158.1 Function
Flag that specifies whether to read automatically index information during schema
validation. For more information, see "Schema Factory" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.158.2 Example
<indexes>false</indexes>
B.159 informix-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.159.1 Function
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 Help.
B-80 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
interval-millis
B.159.2 Example
The informix-dictionary element shares the same subelements as Section B.5,
"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>
B.160 initial-value
Range of values: N/A
Default value: 1
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
B.160.1 Function
Specifies the initial sequence value. For more information, see "Generators" in the Kodo
4.2.0 Developers Guide for JPA/JDO.
B.160.2 Example
<initial-value>1</intial-value>
B.161 interval-millis
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
export-profiling
profiling
export-profiling
B.161.1 Function
Number of milliseconds between exports. This value defaults to -1, indicating that
there will be a single export upon exit. See "Dumping Profiling Data to Disk from a
Batch Process" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.161.2 Example
<interval-millis>-1</interval-millis>
B.162 inverse-manager
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
B.162.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing a kodo.kernel.InverseManager to use for managing bidirectional
relations upon a flush. For more information, see "Managed Inverses" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.162.2 Example
<inverse-manager>
<action>warn</action>
<manage-lrs>false</manage-lrs>
</inverse-manager>
B.163 jdatastore-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.163.1 Function
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 Help.
B.163.2 Example
The jdatastore-dictionary element shares the same subelements as Section B.5,
"access-dictionary."
B.164 jdbc-broker-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-82 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
jdbc3-savepoint-manager
B.164.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing the kodo.kernel.BrokerFactory type to use, in this case JDBC. For
more information, see "kodo.BrokerFactory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.164.2 Example
<jdbc-broker-factory/>
B.165 jdbc-listeners
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.165.1 Function
Defines one or more full plugin strings (see "Plugin Configuration" in Kodo 4.2.0
Developers Guide for JPA/JDO) for custom
kodo.jdbc.kernel.exps.JDBCFilterListeners to make available to all
queries, in addition to the standard set of listeners. You can also add filter listeners to
individual queries, as described in "Query Language Extensions" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.165.2 Example
<jdbc-listeners>detail</jdbc-listeners>
B.166 jdbc3-savepoint-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.166.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.kernel.SavepointManager to use for managing
transaction savepoints, in this case the default which is
kodo.jdbc.kernel.JDBCSavepointManager. This plugin implements savepoints
by issuing a flush to the database. For more information, see "Savepoints" in the Kodo
4.2.0 Developers Guide for JPA/JDO.
B.166.2 Example
<jdbc3-savepoint-manager/>
B.167 jdo-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.167.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataFactory type to use, in this case
kodo.jdo.JDOMetaDataFactory. For more information, see "Metadata Factory" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.167.2 Example
<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>
B.168 jms-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.168.1 Function
Configures the JMS remote commit provider. For more information, see "JMS" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.168.2 Example
<jms-remote-commit-provider>
<name>kodo.RemoteCommitProvider</name>
<topic>topic/KodoCommitProviderTopic</topic>
B-84 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
jmx2-jmx
<exception-reconnect-attempts>0<exception-reconnect-attempts>
<topic-connection-factory>java:/ConnectionFactory</topic-connection-factory>
</jms-remote-commit-provider>
B.169 jmx
Range of values: N/A
Default value: N/A
Parent elements:
B.169.1 Function
Enables for the configuration of management capabilities. For more information, see
"Management and Monitoring" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.169.2 Example
<jmx>
<none-jmx/>
<local-jmx>...</local-jmx>
<gui-jmx>...</gui-jmx>
<jmx2-jmx>...</jmx2-jmx>
<mx4j1-jmx>...</mx4j1-jmx>
<wls81-jmx>...</wls81jmx>
</jmx>
B.170 jmx2-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.170.1 Function
Enable remote management via JMX v.1.2 implementations (supporting JSR 160 for
remote management). Supports optional parameters in the Management Group and
the JSR 160 Group, as described in "Optional Parameters in Management Group"
and "Optional Parameters in JSR 160 Group" in the Kodo 4.2.0 Developers Guide for
JPA/JDO, respectively.
B.170.2 Example
<jmx2-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
<NamingImpl>mx4j.tools.naming.NamingService</NamingImpl>
<ServiceURL>service:jmx:rmi://localhost/jndi/jmxservice</ServiceURL>
</jmx2-jmx>
B.171 JNDIName
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
JNDIName
B.171.1 Function
JNDI name under which to register the remote JMX adaptor. Defaults to jrmp. For
more information, see "Optional Parameters in Remote Group" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.171.2 Example
<JNDIName>jrmp</JNDIName>
B.172 kodo-broker
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.172.1 Function
Configures the kodo.BrokerImpl. For more information, see "kodo.BrokerImpl" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.172.2 Example
<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>
B-86 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
kodo-mapping-repository
B.173 kodo-concurrent-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.173.1 Function
Enables the basic concurrent data cache. For more information, see "Data Cache" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.173.2 Example
<data-caches>
<kodo-concurrent-data-cache>
<name>default</name>
<cache-size>1000</cache-size>
<soft-reference-size>0</soft-reference-size>
<eviction-schedule>15,45 15 * * 1</eviction-schedule>
</kodo-concurrent-data-cache>
</data-caches>
B.174 kodo-data-cache-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.174.1 Function
Enables the kodo.datacache.DataCacheManager that manages the system data
caches. For more information, see "kodo.DataCacheManager" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.174.2 Example
<kodo-data-cache-manager/>
B.175 kodo-mapping-repository
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.175.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataRepository to use. For more
information, see "kodo.MetaDataRepository" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.175.2 Example
<kodo-mapping-repository>
<resolve>3</resolve>
<validate>7</validate>
<source-mode>7</source-mode>
</kodo-mapping-repository>
B.176 kodo-persistence-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.176.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.176.2 Example
<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>
B.177 kodo-persistence-meta-data-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-88 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
kodo-sql-factory
B.177.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.meta.MetaDataFactory type to use, in this case
org.apache.openjpa.persistence.PersistenceMetaDataFactory. For
more information, see "Metadata Factory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.177.2 Example
<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>
B.178 kodo-pooling-data-source
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.178.1 Function
Configures the kodo.jdbc.schema.KodoPoolingDataSource which by default performs
connection pooling. For more information, see "JDBC" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.178.2 Example
<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>
B.179 kodo-sql-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.179.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.jdbc.SQLFactory to use to abstract common SQL
constructs. For more information, see "kodo.jdbc.SQLFactory" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.179.2 Example
<kodo-sql-factory>
<advanced-sql>...</advanced-sql>
</kodo-sql-factory>
B.180 large-transaction
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.180.1 Function
Flag that specifies whether the transaction will generate a large number of objects.
B.180.2 Example
<large-transaction>false</large-transaction>
B.181 lazy-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.181.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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
B-90 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
local-jmx
B.181.2 Example
<lazy-schema-factory>
<foreign-keys>false</foreign-keys>
<indexes>false</indexes>
<primary-keys>false</primary-keys>
</lazy-schema-factory>
B.182 level
Range of values: 1 | 2 | 3 | 4 | 5
Default value: 4
Parent elements:
persistence-configuration
persistence-configuration-unit
B.182.1 Function
Specifies the level at which to log. Valid values include: 1 (TRACE), 2 (DEBUG), 3
(INFO), 4 (WARN), and 5 (ERROR). For more information, see "Orphaned Keys" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.182.2 Example
<level>4</level>
B.183 local-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.183.1 Function
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, as described
in "Optional Parameters in Management Group" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.183.2 Example
<local-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
</local-jmx>
B.184 local-profiling
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
profiling
B.184.1 Function
Enable profiling without export or GUI. Useful when trying to access the
ProfilingAgent programmatically. For more information, see "Profiling" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.184.2 Example
<profiling>
<local-profiling/>
</profiling>
B.185 lock-timeout
Range of values: Integer
Default value: -1
Parent elements:
persistence-configuration
persistence-configuration-unit
B.185.1 Function
Default amount of time that Kodo waits when trying to obtain a lock. A value of -1
specifies that there is no limit. For more information, see "Configuring Default
Locking" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.185.2 Example
<lock-timeout>-1</lock-timeout>
B.186 log-factory-impl
Range of values: N/A
B-92 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
log4j-log-factory
B.186.1 Function
Configures the default logging system. For more information, see "Kodo Logging" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.186.2 Example
<log-factory-impl>
<diagnostic-context>ID</diagnostic-context>
<default-level>INFO</default-level>
<file>stdout</file>
</log-factory-impl>
B.187 log-orphaned-key-action
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.187.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.event.OrphanedKeyAction to invoke when Kodo
discovers an orphaned datastore key, in this case
kodo.event.LogOrphanedKeyAction. In this case, Kodo logs a message for each
orphaned key. For more information, see "Orphaned Keys" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.187.2 Example
<log-orphaned-key-action>
<channel>openjpa.Runtime</channel>
<level>4</level>
</log-orphaned-key-action>
B.188 log4j-log-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.188.1 Function
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 Manual at
http://jakarta.apache.org/log4j/docs/manual.html. For more
information, see "Log4J" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.188.2 Example
<log4j-log-factory/>
B.189 login-timeout
Range of values: Valid classname
Default value:
Section B.178, "kodo-pooling-data-source": 10
Section B.258, "simple-driver-data-source": 0
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-pooling-data-source
persistence-configuration
persistence-configuration-unit
simple-driver-data-source
B.189.1 Function
Specifies the login timeout. For more information, see "Using the Kodo Data Source" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.189.2 Example
<login-timeout>0</login-timeout>
B.190 lrs-size
Range of values: query | last | unknown
Default value: query
Parent elements:
persistence-configuration
persistence-configuration-unit
B-94 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
lru-data-cache
B.190.1 Function
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.
For more information, see "Large Result Sets" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.190.2 Example
<lrs-size>query</lrs-size>
B.191 lru-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.191.1 Function
Sets the least-recently-used (LRU) data caching option. For more information, see
"Configuring the LRU Caching Option" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.191.2 Example
<data-caches>
<lru-data-cache>
<name>kodo.DataCache</name>
<cache-size>1000</cache-size>
<soft-reference-size>0</soft-reference-size>
<eviction-schedule>15,45 15 * * 1</eviction-schedule>
</lru-data-cache>
</data-caches>
B.192 manage-lru
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
inverse-manager
B.192.1 Function
Flag that specifies whether large result set fields are included from management. For
more information, see "Managed Inverses" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.192.2 Example
<manage-lrs>false</manage-lrs>
B.193 mapping
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
orm-filie-mapping-factory
B.193.1 Function
When a child element of Section B.225, "persistence-configuration-unit," specifies the
symbolic name of the object-to-datastore mapping to use. For more information, see
"Mapping Metadata" (JPA) or "Mapping Metadata Placement" (JDO) in Kodo 4.2.0
Developers Guide for JPA/JDO.
When a child element of Section B.221, "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. For more
information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.193.2 Example
<mapping>org/mag/Magazine-hsql.orm</mapping>
B.194 mapping-column
Range of values: String
Default value: MAPPING_DEF
Parent elements:
B-96 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
mapping-defaults-impl
persistence-configuration
persistence-configuration-unit
table-deprecated-jdo-mapping-factory
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
B.194.1 Function
Specifies the name of the column that holds the XML mapping. For more information,
see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.194.2 Example
<mapping-column>MAPPING_DEF</mapping-column>
B.195 mapping-defaults-impl
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.195.1 Function
Configures the mapping defaults if you set Section B.96, "default-mapping-defaults" to
jdo. For a complete description of each of the values that you can specify, see
"Mapping Defaults" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.195.2 Example
<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>
B.196 mapping-file-deprecated-jdo-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.196.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more information, see "Mapping Factory" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.196.2 Example
<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>
B.197 max-active
Range of values: Integer
Default value: 2
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
B.197.1 Function
Specifies the maximum allowed number of TCP sockets (channels) to open
simultaneously between each peer in the cluster. For more information, see "TCP" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.197.2 Example
<max-active>2</max-active>
B-98 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
maximize-batch-size
B.198 max-idle
Range of values: Integer
Default value: 2
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
B.198.1 Function
Specifies the maximum allowed number of TCP sockets (channels) to open
simultaneously between each peer in the cluster. For more information, see "TCP" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.198.2 Example
<max-idle>2</max-idle>
B.199 max-size
Range of values: Integer
Default value: 2147483647
Parent elements:
persistence-configuration
persistence-configuration-unit
B.199.1 Function
Defines the maximum size of the concurrent hash map used to associate query strings
and their parsed form. For more information, see "Query Compilation Cache" in the
Kodo 4.2.0 Developers Guide for JPA/JDOv.
B.199.2 Example
<max-size>2147483647</max-size>
B.200 maximize-batch-size
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
B.200.1 Function
Flag that specifies whether to sort statements in order to optimize batch size when
statement batching is on. For more information, see "kodo.jdbc.UpdateManager" in
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.200.2 Example
<maximize-batch-size>true</maximize-batch-size>
B.201 MBeanServerStrategy
Range of values: any-create | create | agentID:<agentID>
Default value: any-create
Parent elements:
jmx
local-jmx
B.201.1 Function
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.
For more information, see "Optional Parameters in Management Group" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.201.2 Example
<MBeanServerStrategy>any-create</MBeanServerStrategy>
B.202 multithreaded
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
B-100 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
mysql-dictionary
B.202.1 Function
Flag that specifies whether persistent instances and Kodo components are accessed by
multiple threads at once. For more information, see "kodo.Multithreaded" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.202.2 Example
<multithreaded>false</multithreaded>
B.203 mx4j1-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.203.1 Function
Enable remote management via MX4J v.1.x implementations (supporting versions of
the JMX specification prior to 1.2). Supports optional parameters in the Management
Group and the Remote Group, as described in "Optional Parameters in Management
Group" and "Optional Parameters in Remote Group" in the Kodo 4.2.0 Developers Guide
for JPA/JDO, respectively.
B.203.2 Example
<mx4j1-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
<Host>localhost</Host>
<Port>1099</Port>
<JNDIName>jrmp</JNDIName>
</mx4j1-jmx>
B.204 mysql-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.204.1 Function
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 Help.
B.204.2 Example
The mysql-dictionary element shares the same subelements as Section B.5,
"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>
B.205 name
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
B.205.1 Function
Specifies the name of the corresponding element.
B.206 name-column
Range of values: String
B-102 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
native-jdbc-seq
persistence-configuration
peristence-configuration-unit
table-jdor-mapping-factory
B.206.1 Function
Name of the column that holds the mapping name. For class mappings, the mapping
name is the class name. For named queries and sequences, it is the sequence or query
name. For more information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.206.2 Example
<name-column>NAME</name-column>
B.207 NamingImpl
Range of values: Valid classname
Default value: N/A
Parent elements:
jmx
jmx2-jmx
B.207.1 Function
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. For more information, see "Optional Parameters in JSR 160
Group" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.207.2 Example
<NamingImpl>mx4j.tools.naming.NamingService</NamingImpl>
B.208 native-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.208.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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.
For more information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.208.2 Example
<native-jdbc-seq>
<type>0</type>
<allocate>50</allocate>
<table-name>DUAL</table-name>
<initial-value>1</intial-value>
<sequence>OPENJPA_SEQUENCE</sequence>
<sequence-name>OPENJPA_SEQUENCE</sequence-name>
<format>format</format>
<increment>1</increment>
</native-jdbc-seq>
B.209 none-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.209.1 Function
No management is turned on. This is the default. For more information, see
"Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.209.2 Example
<none-jmx/>
B.210 none-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-104 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
none-orphaned-key-action
B.210.1 Function
Specifies the kodo.kernel.NoneLockManager which does not perform any
locking. For more information, see "Lock Manager" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.210.2 Example
<none-lock-manager/>
B.211 none-log-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.211.1 Function
Disable logging. For more information, see "Disable Logging" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.211.2 Example
<none-log-factory/>
B.212 none-orphaned-key-action
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.212.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) describing the kodo.event.OrphanedKeyAction to invoke when Kodo
discovers an orphaned datastore key, in this case
kodo.event.NoneOrphanedKeyAction. In this case, Kodo ignores orphaned keys.
For more information, see "Orphaned Keys" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.212.2 Example
<none-orphaned-key-action/>
B.213 none-profiling
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
profiling
B.213.1 Function
Turns off profiling of your code. For more information, see "Profiling" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.213.2 Example
<profiling>
<none-profiling/>
</profiling>
B.214 nontransactional-read
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
B.214.1 Function
Flag that specifies whether the Kodo runtime allows you to read data outside of a
transaction. For more information, see "kodo.NontransacationalRead" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.214.2 Example
<nontransactional-read>true</nontransactional-read>
B.215 nontransactional-write
Range of values: true | false
Default value: false
B-106 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
operation-order-update-manager
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
B.215.1 Function
Flag that specifies whether the you can modify persistent objects and perform
persistence operations outside of a transaction. Changes will take effect in the next
transaction. For more information, see "kodo.NontransacationalWrite" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.215.2 Example
<nontransactional-write>false</nontransactional-write>
B.216 num-broadcast-threads
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
B.216.1 Function
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. See the MaxActive property of
kodo.ConnectionFactoryProperties in "Using the Kodo Data Source" in Kodo
4.2.0 Developers Guide for JPA/JDO. Setting a value of 0 will result in behavior where the
thread invoking commit will perform the broadcast directly. For more information, see
"TCP" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.216.2 Example
<num-broadcast-threads>2<num-broadcast-threads>
B.217 operation-order-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.217.1 Function
Defines an update manager that writes SQL in object-level operation order. For more
information, see "kodo.jdbc.UpdateManager" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.217.2 Example
<operation-order-update-manager/>
B.218 optimistic
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
persistence-configuration
persistence-configuration-unit
kodo-broker
B.218.1 Function
Flag that specifies whether the datastore transactional mode is optimistic. For more
information, see "kodo.Optimistic" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.218.2 Example
<optimistic>true</optimistic>
B.219 oracle-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.219.1 Function
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 Help.
B.219.2 Example
The oracle-dictionary element shares the same subelements as Section B.5,
"access-dictionary," plus the following subelements (defaults shown):
<oracle-dictionary>
...
B-108 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
orm-file-jdor-mapping-factory
<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>
B.220 oracle-savepoint-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.220.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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
Section B.166, "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. For more information, see
"Savepoints" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.220.2 Example
<oracle-savepoint-manager/>
B.221 orm-file-jdor-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.221.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing the kodo.jdo.jdbc.ORMFileJDORMappingFactory that stores
mapping metadata in .orm files. This setting is valid for JDO 1.0. For more
information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.221.2 Example
<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>
B.222 order-dirty-objects
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.222.1 Function
Flag that specifies whether Kodo maintains the order that changes were made to dirty
objects when writing the changes back to the database.
B.222.2 Example
<order-dirty-objects>false</order-dirty-objects>
B.223 Password
Range of values: N/A
Default value: N/A
Parent elements:
jmx
wls81-jmx
B.223.1 Function
Password that Kodo should use to access the WebLogic MBeanServer. This must be
set. For more information, see "Optional Parameters in WebLogic 8.1 Group" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.223.2 Example
<Password>admin</Password>
B.224 persistence-configuration
Range of values: N/A
Default value: N/A
Parent elements: N/A
B-110 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
persistence-mapping-defaults
B.224.1 Function
Root element of the persistence deployment descriptor.
B.225 persistence-configuration-unit
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
B.225.1 Function
Contains the deployment information for a persistence unit that is available in
WebLogic Server.
B.226 pessimistic-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.226.1 Function
Specifies the kodo.jdbc.kernel.PessimisticLockManager, which uses SELECT
FOR UPDATE statements (or the database's equivalent) to lock the database rows
corresponding to locked objects. This lock manager does not distinguish between read
locks and write locks; all locks are write locks. For more information, see "Lock
Manager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.226.2 Example
<pessimistic-lock-manager>
<version-check-on-read-lock>false</version-check-on-read-lock>
<version-update-on-write-lock>false</version-update-on-write-lock>
</pessimistic-lock-manager>
B.227 persistence-mapping-defaults
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.227.1 Function
Configures the mapping defaults if you set Section B.96, "default-mapping-defaults" to
jpa. For a complete description of each of the values that you can specify, see
"Mapping Defaults" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.227.2 Example
The persistence-mapping-defaults element shares the same subelements as
Section B.195, "mapping-defaults-impl."
B.228 populate-data-cache
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.228.1 Function
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 datacache so that the transaction does not fill the entire data cache with objects that
will not be accessed again.
B.228.2 Example
<populate-data-cache>true</populate-data-cache>
B.229 Port
Range of values: N/A
Default value: N/A
Parent elements:
jmx
mx4j1-jmx
B.229.1 Function
Port on which the RMI registry naming service listens. Defaults to 1099. For more
information, see "Optional Parameters in Remote Group" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.229.2 Example
<Port>1099</Port>
B-112 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
postgres-dictionary
B.230 port
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
B.230.1 Function
Specifies the port on which the server will listen. This setting is used by clients, not by
the server.
If the parent element is Section B.285, "tcp-transport," the element defaults to 5637.
For more information, see "Standalone Persistence Server" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
If the parent element is Section B.284, "tcp-remote-commit-provider," the element
defaults to 5636. For more information, see "TCP" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.230.2 Example
<port>5637</port>
B.231 postgres-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.231.1 Function
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 Help.
B.231.2 Example
The postgres-dictionary element shares the same subelements as Section B.5,
"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
B.232 primary-key-column
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
B.232.1 Function
Specifies the name of the table's numeric primary key column. For more information,
see "Generators" or "Schema Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.232.2 Example
<primary-key-column>ID</primary-key-column>
B.233 primary-key-value
Range of values: String
Default value: DEFAULT
Parent elements:
persistence-configuration
persistence-configuration-unit
value-table-jdbc-seq
B-114 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
profiling
B.233.1 Function
Specifies the primary key that is used by this instance. For more information, see
"Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.233.2 Example
<primary-key-value>DEFAULT</primary-key-value>
B.234 primary-keys
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
lazy-schema-factory
B.234.1 Function
Flag that specifies whether to read automatically primary key information during
schema validation. For more information, see "Schema Factory" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.234.2 Example
<primary-keys>false</primary-keys>
B.235 profiling
Range of values: N/A
Default value: N/A
Parent elements: N/A
B.235.1 Function
Enables you to configure profiling of your application code. For more information, see
"Profiling" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.235.2 Example
<profiling>
<export-profiling>
<interval-millis>-1</interval-millis>
<base-name>name</base-name>
</export-profiling>
</profiling>
<profiling>
<gui-profiling/>
</profiling>
<profiling>
<local-profiling/>
</profiling>
<profiling>
<none-profiling/>
</profiling>
B.236 profiling-proxy-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.236.1 Function
Configures the profiling proxy manager. For more information, see "Custom Proxies"
in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.236.2 Example
<profiling-proxy-manager>
<assert-allowed-type>false</assert-allowed-type>
<track-changes>true</track-changes>
</profiling-proxy-manager>
B.237 properties
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
B-116 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
properties
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
B.237.1 Function
Specifies one or more Section B.238, "property" elements.
B.238 property
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
properties
B.238.1 Function
Enables you to specify the name and value of a property.
B.238.2 Example
<property>
<name>timeout</name>
<value>1000</value>
</property>
B.239 proxy-manger-impl
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.239.1 Function
Configures the default proxy manager. For more information, see "Custom Proxies" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B-118 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
quoted-numbers-in-queries
B.239.2 Example
<proxy-manager-impl>
<assert-allowed-type>false</assert-allowed-type>
<track-changes>true</track-changes>
</proxy-manager-impl>
B.240 query-caches
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.240.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
describing the kodo.datacache.QueryCache implementation to use for caching of
queries loaded from the data store. For more information, see "Query Cache" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.240.2 Example
<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>
B.241 quoted-numbers-in-queries
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.241.1 Function
Flag that specifies whether to interpret quoted numbers in query strings as numbers,
as opposed to strings. Set to true to mimic the behavior of Kodo 3.1 and earlier and
treat quoted numbers as numbers. For more information, see "Compatibility
Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.241.2 Example
<quoted-numbers-in-queries>false</quoted-numbers-in-queries>
B.242 read-lock-level
Range of values: none | read | write | numeric values for lock manager- specific
lock levels
Default value: read
Parent elements:
persistence-configuration
persistence-configuration-unit
B.242.1 Function
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, the read and write lock
levels are equivalent.
For more information, see "Object Locking" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.242.2 Example
<read-lock-level>read</read-lock-level>
B.243 recover-action
Range of values: none | clear
Default value: none
Parent elements:
persistence-configuration
persistence-configuration-unit
B-120 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
resources
cluster-remote-commit-provider
B.243.1 Function
Specifies the action to take during recovery. Valid values include:
■ none—No action is performed.
■ clear—Clears the notifications.
For more information, see "Remote Commit Provider Configuration" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.243.2 Example
<recover-action>none</recover-action>
B.244 recovery-time-millis
Range of values: Integer
Default value: 15000
Parent elements:
persistence-configuration
persistence-configuration-unit
tcp-remote-commit-provider
B.244.1 Function
Specifies the amount of time to wait in milliseconds before attempting to reconnect to
a peer of the cluster when connectivity to the peer is lost. For more information, see
"TCP" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.244.2 Example
<recovery-time-millis>15000</recovery-time-millis>
B.245 resources
Range of values: Valid resource path
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
B.245.1 Function
Specifies a semicolon-separated list of resource paths to metadata files or jar archives.
Each jar archive will be scanned for annotated JPA entities or JDO metadata files based
on your metadata factory. For more information, see "Metadata Factory" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.245.2 Example
<resources>com/aaa/package.jdo;com/bbb/package.jdo</resources>
B.246 restore-state
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
B.246.1 Function
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.
For more information, see "Restoring State" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.246.2 Example
<restore-state>none</restore-state>
B.247 result-set-type
Range of values: forward--only | scroll-sensitive | scroll-insensitive
Default value: forward-only
Parent elements:
persistence-configuration
persistence-configuration-unit
B-122 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
retry-class-registration
B.247.1 Function
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-insenstive—Scrollable result set that is not sensitive to changes made
by others. The result set is updatable.
For more information, see "Large Result Sets" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.247.2 Example
<result-set-type>forward-only</result-set-type>
B.248 retain-state
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
B.248.1 Function
Flag that specifies whether persistent fields retain their values on transaction commit.
This element defaults to true when a child element of the Section B.225,
"persistence-configuration-unit" and false when a child element of the Section B.172,
"kodo-broker" element.
For more information, see "kodo.RetainState" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.248.2 Example
<retain-state>true</retain-state>
B.249 retry-class-registration
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
B.249.1 Function
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. For more information, see "kodo.RetryClassRegistration" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.249.2 Example
<retry-class-registration>false</retry-class-registration>
B.250 scan-top-down
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
B.250.1 Function
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
B-124 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
schemas
in the parent package, and so on to the package root. For more information, see
"Metadata Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.250.2 Example
<scan-top-down>false</scan-top-down>
B.251 schema
Range of values: String
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.251.1 Function
Specifies the default schema name to prepend to unqualified table names. In addition,
specifies the schema in which Kodo creates new tables. For more information, see
"Default Schema" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.251.2 Example
<schema>SCHEMA</schema>
B.252 schema-column
Range of values: String
Default value: SCHEMA_DEF
Parent elements:
persistence-configuration
persistence-configuration-unit
table-schema-factory
B.252.1 Function
Specifies the name of the table's string column for holding the schema definition as an
XML string. For more information, see "Schema Factory" in the Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.252.2 Example
<schema-column>SCHEMA_DEF</schema-column>
B.253 schemas
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.253.1 Function
Specifies a comma-separated list of the schemas and/or tables used for your persistent
data. For more information, see "Schemas List" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.253.2 Example
<schemas>BUSOBJS,GENERAL.ADDRESS,.SYSTEM_INFO </schemas>
B.254 sequence
Range of values: N/A
Default value: OPENJPA_SEQUENCE
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
B.254.1 Function
Specifies the name of the database sequence. For more information, see "Generators" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.254.2 Example
<sequence>OPENJPA_SEQUENCE</sequence>
B.255 sequence-column
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
B.255.1 Function
Specifies the name of the column that holds the current sequence value. For more
information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B-126 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
simple-driver-data-source
B.255.2 Example
<sequence-column>SEQUENCE_VALUE</sequence-column>
B.256 sequence-name
Range of values: String
Default value: OPENJPA_SEQUENCE
Parent elements:
persistence-configuration
persistence-configuration-unit
native-jdbc-seq
B.256.1 Function
Specifies the name of the database sequence. For more information, see "Generators" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.256.2 Example
<sequence-name>OPENJPA_SEQUENCE</sequence-name>
B.257 ServiceURL
Range of values: Valid service URL
Default value: service:jmx:rmi://localhost/jndi/jmxservice
Parent elements:
jmx
jmx2-jmx
B.257.1 Function
JMX service URL name under which to register the JMX Connector Server. This value
defaults to service:jmx:rmi://localhost/jndi/jmxservice, indicating that
the RMI connector will be used and registered under the JNDI name jmxsevice. For
more information, see "Optional Parameters in JSR 160 Group" in Kodo 4.2.0 Developers
Guide for JPA/JDO.
B.257.2 Example
<ServiceURL>service:jmx:rmi://localhost/jndi/jmxservice</ServiceURL>
B.258 simple-driver-data-source
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.258.1 Function
Configures the Kodo datasource implementation. For more information, see "Using the
Kodo DataSource" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.258.2 Example
<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>
B.259 single-file
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
mapping-file-deprecated-jdo-mapping-factory
B.259.1 Function
Flag specifying whether or not to use a single file.
B.259.2 Example
<single-file>false</single-file>
B.260 single-jvm-exclusive-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.260.1 Function
Specifies the kodo.kernel.SingleJVMExclusiveLockManager. This lock
manager uses in-memory mutexes to obtain exclusive locks on object ids. It does not
perform any database-level locking. Also, it does not distinguish between read and
write locks; all locks are write locks. For more information, see "Lock Manager" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.260.2 Example
<single-jvm-exclusive-lock-manager>
<version-check-on-read-lock>false</version-check-on-read-lock>
B-128 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
soft-reference-size
<version-check-on-write-lock>false</version-check-on-write-lock>
</single-jvm-exclusive-lock-manager>
B.261 single-jvm-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.261.1 Function
Configures Kodo to share commit notifications among
persistenceManagerFactories in the same JVM. For more information, see
"Remote Commit Provider Configuration" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.261.2 Example
<single-jvm-remote-commit-provider>
<name>kodo.RemoteCommitProvider</name>
</single-jvm-remote-commit-provider>
B.262 soft-reference-size
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
B.262.1 Function
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. For more information, see "Configuring the Data Cache Size" and
"Query Cache" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.262.2 Example
<soft-reference-size>-1</soft-reference-size>
B.263 so-timeout
Range of values: Integer
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
http-transport
B.263.1 Function
Specifies the socket read timeout in milliseconds. For more information, see
"Standalone Persistence Server" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.263.2 Example
<so-timeout>0</so-timeout>
B.264 sql-server-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.264.1 Function
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 Help.
B.264.2 Example
The sql-server-dictionary element shares the same subelements as Section B.5,
"access-dictionary," plus the following subelements (defaults shown):
<sql-server-dictionary>
...
B-130 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
store-mode
<unique-identifier-as-varbinary>true</unique-identifier-as-varbinary>
</sql-server-dictionary>
B.265 stack-execution-context-name-provider
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
B.265.1 Function
Provider examines the current thread's stack and builds an execution context name
based on that information. For more information, see "Configuring the Execution
Context Name Provider" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.265.2 Example
<stack-execution-context-name-provider>
<style>full</style>
</stack-execution-context-name-provider>
B.266 store-mode
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
B.266.1 Function
Specifies the data store mode.
B.266.2 Example
<store-mode>1</store-mode>
B.267 strict
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
B-132 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
style
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
B.267.1 Function
Flag that specifies whether strict mode is enabled.
B.267.2 Example
<strict>true</strict>
B.268 strict-identity-values
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.268.1 Function
Flag that specifies whether to require identity values used for finding application
identity instances to be of the exact right type. By default, Kodo allows stringified
identity values, and performs conversions between numeric types. For more
information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.268.2 Example
<strict-identity-values>false</strict-identity-values>
B.269 style
Range of values: line | partial | full
Default value: N/A
Parent elements:
execution-context-name-provider
stack-execution-context-name-provider
B.269.1 Function
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.
For more information, see "Configuring the Execution Context Name Provider" in Kodo
4.2.0 Developers Guide for JPA/JDO.
B.269.2 Example
<style>full</style>
B.270 subclass-fetch-mode
Range of values: join | multiple | none | parallel | single
Default value: join
Parent elements:
execution-context-name-provider
stack-execution-context-name-provider
B.270.1 Function
Specifies the method to use to select subclass data when it is in other tables. For a
description of the valid values, see under Section B.120, "eager-fetch-mode." For
complete details, see "Eager Fetching" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.270.2 Example
<subclass-fetch-mode>join</subclass-fetch-mode>
B.271 sybase-dictionary
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.271.1 Function
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 Help.
B.271.2 Example
The sybase-dictionary element shares the same subelements as Section B.5,
"access-dictionary," plus the following subelements (defaults shown):
<sybase-dictionary>
...
B-134 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
table
<create-identity-column>true</create-identity-column>
<identity-column-name>UNQ_INDEX</identity-column-name>
</sybase-dictionary>
B.272 sync-with-managed-transactions
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
kodo-broker
B.272.1 Function
Flag that specifies whether to sync with managed transactions. For more information,
see "kodo.BrokerImpl" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.272.2 Example
<sync-with-managed-transactions>false</sync-with-managed-transactions>
B.273 synchronize-mappings
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
B.273.1 Function
Controls whether Kodo attempts to run the mapping tool on all persistent classes to
synchronize their mappings and schema at runtime. This element save you the trouble
of running the mapping tool manually, and is useful for rapid test and debug cycles.
For more information, see "Runtime Forward Mapping" in Kodo Developer's Guide.
B.273.2 Example
<synchronize-mappings>false</synchronize-mappings>
B.274 table
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
B.274.1 Function
Specifies the name of the table. For more information, see "Mapping Factory" in Kodo
4.2.0 Developers Guide for JPA/JDO. 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
B.274.2 Example
<table>KODO_JDO_MAPPING</table>
B.275 table-deprecated-jdo-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.275.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more
information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.275.2 Example
<table-deprecated-jdo-mapping-factory>
<table-name>JDO_MAPPING</table-name>
<urls>t3://localhost:7001/metadata.jar</urls>
<classpath-scan>build</classpath-scan>
B-136 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
table-jdor-mapping-factory
<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>
B.276 table-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.276.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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. For more information, see
"Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.276.2 Example
<table-jdbc-seq>
<type>0</type>
<allocate>50</allocate>
<table-name>OPENJPA_SEQUENCE_TABLE</table-name>
<table>OPENJPA_SEQUENCE_TABLE</table>
<primary-key-column>ID</primary-key-column>
<sequence-column>SEQUENCE_VALUE</sequence-column>
<increment>1</increment>
</table-jdbc-seq>
B.277 table-jdor-mapping-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.277.1 Function
A plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for JPA/JDO)
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. For more
information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.277.2 Example
<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>
B.278 table-lock-update-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.278.1 Function
Defines an update manager capable of statement batching, that ignores foreign keys
and autoincrement, but optimizes for table level locking. This is useful when using
table-level locking and trying to avoid deadlocks. For more information, see
"kodo.jdbc.UpdateManager" and "Statement Batching" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.278.2 Example
<table-lock-update-manager>
<maximize-batch-size>true</maximize-batch-size>
</table-lock-update-manager>
B.279 table-name
Range of values: String
Default value: See below
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
B-138 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
table-schema-factory
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
B.279.1 Function
Specifies the name of the table.
The default varies based on the parent element, as follows:
■ class-table-jdbc-seq: OPENJPA_SEQUENCES_TABLE. For more
information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
■ Section B.208, "native-jdbc-seq": DUAL. For more information, see "Generators" in
the Kodo 4.2.0 Developers Guide for JPA/JDO.
■ Section B.275, "table-deprecated-jdo-mapping-factory": JDO_MAPPING. For more
information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
■ Section B.276, "table-jdbc-seq": OPENJPA_SEQUENCE_TABLE. For more
information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
■ Section B.280, "table-schema-factory": OPENJPA_SCHEMA. For more information,
see "Schema Factory" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
■ Section B.305, "value-table-jdbc-seq": OPENJPA_SEQUENCE_TABLE. For more
information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.279.2 Example
<table-name>JDO_MAPPING</table-name>
B.280 table-schema-factory
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.280.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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.
For more information, see "Schema Factory" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.280.2 Example
<table-schema-factory>
<schema-column>SCHEMA_DEF</schema-column
<table-name>OPENJPA_SCHEMA</table-name>
<table>OPENJPA_SCHEMA</table>
<primary-key-column>ID</primary-key-column>
</table-schema-factory>
B.281 tangosol-cache-name
Range of values: String
Default value: kodo
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
B.281.1 Function
Name of the Tangosol Coherence cache to use. For more information, see "Tangosol
Integration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.281.2 Example
<tangosol-cache-name>kodo</tangosol-cache-name>
B.282 tangosol-cache-type
Range of values: named | distributed | replicated
Default value: named
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
B-140 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
tcp-remote-commit-provider
persistence-configuration
persistence-configuration-unit
tangosol-query-cache
B.282.1 Function
Type of Tangosol Coherence cache to use. Valid values include:
■ named—Cache is looked up via the
com.tangosol.net.CacheFactory.getCache(String) method. This
method looks up the cache by the name as defined in the Coherence configuration.
■ distributed
■ replicated
For more information, see "Tangosol Integration" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B.282.2 Example
<tangosol-cache-type>name</tangosol-cache-type>
B.283 tangosol-data-cache
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
data-caches
B.283.1 Function
Integrates with Tangosol's Coherence caching system. For more information, see
"Tangosol Integration" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.283.2 Example
<data-caches>
<tangosol-data-cache>
<name>kodo.dataCache</name>
<clear-on-close>false</clear-on-close>
<tangosol-cache-type>name</tangosol-cache-type>
<tangosol-cache-name>kodo</tangosol-cache-name>
<eviction-schedule>15,45 15 * * 1</eviction-schedule>
</tangosol-data-cache>
</data-caches>
B.284 tcp-remote-commit-provider
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.284.1 Function
Configures the TCP remote commit provider. For more information, see "TCP" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.284.2 Example
<tcp-remote-commit-provider>
<name>kodo.RemoteCommitProvider</name>
<max-idle>2</max-idle>
<num-broadcast-threads>2<num-broadcast-threads>
<recovery-time-millis>15000</recovery-time-millis>
<max-active>2</max-active>
<port>5636</port>
<addresses>[]</addresses>
</tcp-remote-commit-provider>
B.285 tcp-transport
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.285.1 Function
Specifies the transport layer for the remote communication. For more information, see
"Standalone Persistence Server" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.285.2 Example
<tcp-transport>
<so-timeout>0</so-timeout>
<host>localhost</host>
<port>5637</port>
</tcp-transport>
B.286 time-seeded-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B-142 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
topic-connection-factory
B.286.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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. For more information, see "Generators" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.286.2 Example
<time-seeded-seq>
<type>0</type>
<increment>1</increment>
</time-seeded-seq>
B.287 topic
Range of values: Valid topic
Default value: topic/KodoCommitProviderTopic
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
B.287.1 Function
Specifies the topic to which the remote commit provider should publish notifications
and subscribe for notifications sent from other JVMs. For more information, see "JMS"
in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.287.2 Example
<topic>topic/KodoCommitProviderTopic</topic>
B.288 topic-connection-factory
Range of values: Valid connection factory
Default value: java:/ConnectionFactory
Parent elements:
persistence-configuration
persistence-configuration-unit
jms-remote-commit-provider
B.288.1 Function
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
B.288.2 Example
<topic-connection-factory>java:/ConnectionFactory</topic-connection-factory>
B.289 track-changes
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
B.289.1 Function
Flag that specifies whether to use smart proxies. For more information, see "Custom
Proxies" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.289.2 Example
<track-changes>true</track-changes>
B.290 transaction-isolation
Range of values: default | none | read-committed | read-uncommitted |
repeatable-read | serializable
Default value: default
Parent elements:
persistence-configuration
persistence-configuration-unit
B.290.1 Function
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.
B-144 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
type
For more information, see "Setting the Transaction Isolation" in Kodo Developer's
Guide.
B.290.2 Example
<transaction-isolation>default</transaction-isolation>
B.291 transaction-mode
Range of values: local | managed
Default value: local
Parent elements:
persistence-configuration
persistence-configuration-unit
B.291.1 Function
Specifies the transaction mode to use. You can override this setting per session.
■ local—Perform transaction operations locally. This is the default.
■ managed—Integrate with the application server's managed global transactions.
For more information, see "Integrating with the Transaction Manager" in Kodo
Developer's Guide.
B.291.2 Example
<transaction-mode>local</transaction-mode>
B.292 transaction-name-execution-context-name-provider
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
B.292.1 Function
Provider returns the current transaction's name, as defined by WebLogic transaction
naming semantics. For more information, see "Configuring the Execution Context
Name Provider" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.292.2 Example
<transacation-name-execution-context-name-provider/>
B.293 type
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
B.293.1 Function
Specifies the type of generator. For more information, see "Generators" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.293.2 Example
<type>0</type>
B.294 type-column
Range of values: 0 | 1 | 2 | 3
Default value: 0
Parent elements:
persistence-configuration
persistence-configuration-unit
table-jdor-mapping-factory
B.294.1 Function
Specifies the name of the column that holds the mapping type. Valid types constants
include:
■ 0—Class mapping.
■ 1—Named sequence.
■ 2—System-level named query.
■ 3—Class-level named query.
For more information, see "Mapping Factory" in Kodo 4.2.0 Developers Guide for
JPA/JDO.
B-146 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
url
B.294.2 Example
<type-column>0</type-column>
B.295 types
Range of values: Valid persistent class names
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
tangosol-data-cache
B.295.1 Function
Specifies a semicolon-separated list of fully-qualified persistent class names. For more
information, see "Metadata Factory" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.295.2 Example
<types>classname1; classname2</types>
B.296 URL
Range of values: Valid URL
Default value: t3://localhost:7001
Parent elements:
jmx
wls81-jmx
B.296.1 Function
URL to which Kodo should connect to access the WebLogic MBeanServer. For more
information, see "Optional Parameters in WebLogic 8.1 Group" in the Kodo 4.2.0
Developers Guide for JPA/JDO.
B.296.2 Example
<URL>t3://localhost:7001</URL>
B.297 url
Range of values: Valid URL
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
http-transport
B.297.1 Function
URL to which Kodo should connect to access the remote server. For more information,
see "Client Managers" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.297.2 Example
<url>t3://localhost:7001/remote-server</url>
B.298 urls
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
B.298.1 Function
Specifies a semicolon-separated list of URLs of metadata files or jar archives. Each jar
archive will be scanned for annotated JPA entities or JDO metadata files based on your
metadata factory. For more information, see "Metadata Factory" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B-148 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
use-schema-validation
B.298.2 Example
<urls>t3://localhost:7001/metadata.jar</urls>
B.299 use-aliases
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
class-table-jdbc-seq
B.299.1 Function
Flag that specifies whether to use each class' entity name as the primary key value of
each row rather than the full classname. For more information, see "Generators" in the
Kodo 4.2.0 Developers Guide for JPA/JDO.
B.299.2 Example
<use-aliases>false</use-aliases>
B.300 use-schema-validation
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
B.300.1 Function
Flag that specifies whether to use schema validation.
B.300.2 Example
<use-schema-validation>true</use-schema-validation>
B.301 user-object-execution-context-name-provider
Range of values: N/A
Default value: N/A
Parent elements:
execution-context-name-provider
B.301.1 Function
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). For more
information, see "Configuring the Execution Context Name Provider" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.301.2 Example
<user-object-execution-context-name-provider/>
B.302 UserName
Range of values: N/A
Default value: N/A
Parent elements:
jmx
wsl81-jmx
B.302.1 Function
Specifies the username that Kodo should use to access the WebLogic MBeanServer.
This must be set. For more information, see "Optional Parameters in WebLogic 8.1
Group" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B-150 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
validate-true-checks-store
B.302.2 Example
<wls81-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
<URL>t3://localhost:7001</URL>
<UserName>admin</UserName>
<Password>admin</Password>
</wls81-jmx>
B.303 validate-false-returns-hollow
Range of values: true | false
Default value: true
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.303.1 Function
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.
For more information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.303.2 Example
<validate-false-returns-hollow>true</validate-false-returns-hollow>
B.304 validate-true-checks-store
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
compatibility
B.304.1 Function
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.
For more information, see "Compatibility Configuration" in Kodo 4.2.0 Developers Guide
for JPA/JDO.
B.304.2 Example
<validate-true-checks-store>false</validate-true-checks-store>
B.305 value-table-jdbc-seq
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.305.1 Function
Specifies a plugin string (see "Plugin Configuration" in Kodo 4.2.0 Developers Guide for
JPA/JDO) 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 Section B.276, "table-jdbc-seq," but has an arbitrary number of rows
for sequence values, rather than a fixed pattern of one row per class. For more
information, see "Generators" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.305.2 Example
<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>
B.306 version-check-on-read-lock
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
pessimistic-lock-manager
B.306.1 Function
Specifies whether to perform version checking and incrementing behavior of the
pessimistic lock manager on read operations. For more information, see "Lock
Manager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B-152 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
version-lock-manager
B.306.2 Example
<version-check-on-read-lock>false</version-check-on-read-lock>
B.307 version-check-on-write-lock
Range of values: true | false
Default value: false
Parent elements:
persistence-configuration
persistence-configuration-unit
pessimistic-lock-manager
B.307.1 Function
Specifies whether to perform version checking and incrementing behavior of the
pessimistic lock manager on write operations. For more information, see "Lock
Manager" in Kodo 4.2.0 Developers Guide for JPA/JDO.
B.307.2 Example
<version-check-on-write-lock>false</version-check-on-write-lock>
B.308 version-lock-manager
Range of values: N/A
Default value: N/A
Parent elements:
persistence-configuration
persistence-configuration-unit
B.308.1 Function
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. For more information, see "Lock Manager" in Kodo 4.2.0
Developers Guide for JPA/JDO.
B.308.2 Example
<version-lock-manager>
<version-check-on-read-lock>false</version-check-on-read-lock>
<version-check-on-write-lock>false</version-check-on-write-lock>
</version-lock-manager>
B.309 wls81-jmx
Range of values: N/A
Default value: N/A
Parent elements:
jmx
B.309.1 Function
Enable management and invoke the JMX management console in the local JVM.
Supports optional parameters in the Management Group and WebLogic 8.1
Group, as described in "Optional Parameters in Management Group" and "Optional
Parameters in WebLogic 8.1 Group" in the Kodo 4.2.0 Developers Guide for JPA/JDO.
B.309.2 Example
<wls81-jmx>
<MBeanServerStrategy>any-create</MBeanServerStrategy>
<EnableLogMBean>true</EnableLogMBean>
<EnableRuntimeMBean>true</EnableRuntimeMBean>
<URL>t3://localhost:7001</URL>
<UserName>admin</UserName>
<Password>admin</Password>
</wls81-jmx>
B.310 write-lock-level
Range of values: none | read | write | numeric values for lock-manager specific
lock leves
Default value: read
Parent elements:
persistence-configuration
persistence-configuration-unit
B.310.1 Function
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, the read and write lock
levels are equivalent.
For more information, see "Object Locking" in the Kodo 4.2.0 Developers Guide for
JPA/JDO.
B-154 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
write-lock-level
B.310.2 Example
<write-lock-level>read</write-lock-level>
B-156 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server