![]() ![]() ![]() ![]() |
Persistence Unit: Advanced Configuration
Configuration Options Related Tasks Related Topics
This page shows the advanced attributes of a persistence unit.
This page also allows you to create and configure DB Dictionaries and Query Caches.
DB Dictionaries
The following considerations apply to DB Dictionaries:
- If a DB Dictionary is defined in persistence.xml, it appears in the DB Dictionary table. If a DB Dictionary is defined in persistence.xml, you cannot delete it, but you can configure it via the Administration Console.
- If a DB Dictionary is not defined in persistence.xml, you can create a new one from this page.
- If a DB Dictionary is not defined in persistence.xml or you have not explictly created one, an internal default is used. The Kodo runtime configures the default DB Dictionary based on the Connection URL and Connection Drive attribues. This default DB Dictionary does not appear in the DB Dictionary table.
- Note:
- Only one DB Dictionary can be defined per module.
Query Caches
The following considerations apply to Query Caches:
- If a Query Cache is defined in persistence.xml, it appears in the Query Cache table. If a Query Cache is defined in persistence.xml, you cannot delete it, but you can configure it via the Administration Console.
- If a Query Cache is not defined in persistence.xml, you can create a new one from this page.
- If a Query Cache is not defined in persistence.xml or you have not explictly created one, an internal default is used. The Kodo runtime configures the default Query Cache based on the Data Cache that you have configured. This default DB Dictionary does not appear in the DB Dictionary table.
- Note:
- You can define multiple Query Caches per module.
Configuration Options
Name Description Transaction Isolation The name ofthe JDBC transaction isolation level to use. "default" indicates to use the JDBC driver's default level.
MBean Attribute:
PersistenceUnitConfigurationBean.TransactionIsolation
Changes take effect after you redeploy the module or restart the server.
Connection Retain Mode Controls when connections are pulled from the connection pool.
MBean Attribute:
PersistenceUnitConfigurationBean.ConnectionRetainMode
Changes take effect after you redeploy the module or restart the server.
Lock Timeout The number of milliseconds to wait for an object lock before throwing an exception, or -1 for no limit.
MBean Attribute:
PersistenceUnitConfigurationBean.LockTimeout
Schema Names A list of schemas and/or tables you are using for persistent class tables.
MBean Attribute:
PersistenceUnitConfigurationBean.Schemata
Changes take effect after you redeploy the module or restart the server.
DB Dictionaries MBean Attribute:
PersistenceUnitConfigurationBean.DBDictionaryTypes
Changes take effect after you redeploy the module or restart the server.
Query Caches This is a Kodo plugin. default subtype: DefaultQueryCacheBean
MBean Attribute:
PersistenceUnitConfigurationBean.QueryCaches
Changes take effect after you redeploy the module or restart the server.
![]() |