|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.config.PersistenceUnitProperties
public class PersistenceUnitProperties
The class defines EclipseLink properties' names. JPA persistence properties could be specified either in PersistenceUnit or passes to createEntityManagerFactory / createContainerEntityManagerFactory methods of EntityManagerFactoryProvider. Property values are usually case-insensitive with some common sense exceptions, for instance class names.
CacheType
,
TargetDatabase
,
TargetServer
Field Summary | |
---|---|
static java.lang.String |
ALLOW_ZERO_ID
By default an id value of 0 is assumed to be null/unassigned. |
static java.lang.String |
APP_LOCATION
|
static java.lang.String |
BATCH_WRITING
Specify the use of batch writing to optimize transactions with multiple writes, by default batch writing is not used. |
static java.lang.String |
BATCH_WRITING_SIZE
Specify the batch size used for batch writing. |
static java.lang.String |
CACHE_SHARED_
Indicates whether entity's cache should be shared (non-isolated). |
static java.lang.String |
CACHE_SHARED_DEFAULT
Default caching properties - apply to all entities. |
static java.lang.String |
CACHE_SIZE_
Caching Prefixes. |
static java.lang.String |
CACHE_SIZE_DEFAULT
Default caching properties - apply to all entities. |
static java.lang.String |
CACHE_STATEMENTS
Specify enable/disable cache statements. |
static java.lang.String |
CACHE_STATEMENTS_SIZE
Specify number of statements held when using internal statement caching, default "50". |
static java.lang.String |
CACHE_TYPE_
All valid values for CACHE_TYPE_ properties are declared in CacheType class. |
static java.lang.String |
CACHE_TYPE_DEFAULT
Default caching properties - apply to all entities. |
static java.lang.String |
CATEGORY_LOGGING_LEVEL_
Category-specific logging level prefix Property names formed out of this prefix by appending a category name e.g.) eclipselink.logging.level.sql Valid categories are defined in SessionLog |
static java.lang.String |
CLASSLOADER
Specify the classloader to use to create an EntityManagerFactory in the property map passed to Persistence.createEntityManagerFactory. |
static java.lang.String |
CREATE_JDBC_DDL_FILE
|
static java.lang.String |
CREATE_ONLY
|
static java.lang.String |
DDL_BOTH_GENERATION
|
static java.lang.String |
DDL_DATABASE_GENERATION
|
static java.lang.String |
DDL_GENERATION
Allows the database schema to be generated on deployment. |
static java.lang.String |
DDL_GENERATION_MODE
Configures if database schema should be generated on the database, to a file, or both. |
static java.lang.String |
DDL_SQL_SCRIPT_GENERATION
|
static java.lang.String |
DEFAULT
Default Suffix could be appended to some prefixes to form a property name setting the default for the persistence unit. |
static java.lang.String |
DEFAULT_APP_LOCATION
|
static java.lang.String |
DEFAULT_CREATE_JDBC_FILE_NAME
|
static java.lang.String |
DEFAULT_DDL_GENERATION_MODE
|
static java.lang.String |
DEFAULT_DROP_JDBC_FILE_NAME
|
static java.lang.String |
DESCRIPTOR_CUSTOMIZER_
Customization Prefix Property names formed out of this prefix by appending either entity name, or class name (indicating that the property values applies only to a particular entity) Allows descriptor customization. |
static java.lang.String |
DROP_AND_CREATE
|
static java.lang.String |
DROP_JDBC_DDL_FILE
|
static java.lang.String |
EXCEPTION_HANDLER_CLASS
Specify ExceptionHandler implementing class. |
static java.lang.String |
EXCLUDE_ECLIPSELINK_ORM_FILE
A persistence unit may opt to exclude an EclipseLink orm file for a specific persistence unit. |
static java.lang.String |
EXCLUSIVE_CONNECTION_IS_LAZY
Determines when write connection is acquired lazily. |
static java.lang.String |
EXCLUSIVE_CONNECTION_MODE
Determines when reads are performed through the write connection. |
static java.lang.String |
FLUSH_CLEAR_CACHE
Defines EntityManager cache behavior after a call to flush method followed by a call to clear method. |
static java.lang.String |
INCLUDE_DESCRIPTOR_QUERIES
Specify whether to enable the copying of all descriptor named queries to the session to be usable from the entity manager. |
static java.lang.String |
JAVASE_DB_INTERACTION
|
static java.lang.String |
JDBC_BIND_PARAMETERS
Bind all parameters property. |
static java.lang.String |
JDBC_DRIVER
JDBC DriverManager class name. |
static java.lang.String |
JDBC_PASSWORD
DataSource or JDBC DriverManager password. |
static java.lang.String |
JDBC_READ_CONNECTIONS_MAX
EclipseLink JDBC (internal) connection pools properties. |
static java.lang.String |
JDBC_READ_CONNECTIONS_MIN
EclipseLink JDBC (internal) connection pools properties. |
static java.lang.String |
JDBC_READ_CONNECTIONS_SHARED
EclipseLink JDBC (internal) connection pools properties. |
static java.lang.String |
JDBC_URL
JDBC DriverManager driver URL. |
static java.lang.String |
JDBC_USER
DataSource or JDBC DriverManager user name. |
static java.lang.String |
JDBC_WRITE_CONNECTIONS_MAX
EclipseLink JDBC (internal) connection pools properties. |
static java.lang.String |
JDBC_WRITE_CONNECTIONS_MIN
EclipseLink JDBC (internal) connection pools properties. |
static java.lang.String |
JOIN_EXISTING_TRANSACTION
Set to "true" this property forces persistence context to read through JTA-managed ("write") connection in case there is an active transaction. |
static java.lang.String |
JTA_DATASOURCE
Standard JPA JTA DataSource name. |
static java.lang.String |
LOGGING_EXCEPTIONS
By default ("true") stack trace is logged for SEVERE all the time and at FINER level for WARNING or less. |
static java.lang.String |
LOGGING_FILE
Specify a file location where the log will be output to instead of standard out. |
static java.lang.String |
LOGGING_LEVEL
Valid values are names of levels defined in java.util.logging.Level, default value is INFO. |
static java.lang.String |
LOGGING_LOGGER
The type of logger. |
static java.lang.String |
LOGGING_SESSION
By default ("true") the Session is always printed whenever available. |
static java.lang.String |
LOGGING_THREAD
By default ("true") the thread is logged at FINE or less level. |
static java.lang.String |
LOGGING_TIMESTAMP
By default ("true") the timestamp is always logged. |
static java.lang.String |
NATIVE_QUERY_UPPERCASE_COLUMNS
When native SQL queries are used, the JDBC meta-data may return column names in lower case on some platforms. |
static java.lang.String |
NATIVE_SQL
Indicate whether to enable EclipseLink to generate DB platform specific SQL versus generic SQL. |
static java.lang.String |
NON_JTA_DATASOURCE
Standard JPA non-JTA DataSource name. |
static java.lang.String |
NONE
|
static java.lang.String |
ORACLE_PROXY_TYPE
This property is used to specify proxy type that should be passed to OracleConnection.openProxySession method. |
static java.lang.String |
ORM_SCHEMA_VALIDATION
This property set on the session is used to override orm.xml schema validation from its default of false. |
static java.lang.String |
PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT
Specifies that the EntityManager will be closed or not used after commit (not extended). |
static java.lang.String |
PERSISTENCE_CONTEXT_COMMIT_WITHOUT_PERSIST_RULES
Specifies that the EntityManager will search all managed objects and persist any related non-managed new objects that are found ignoring any absence of CascadeType.PERSIST settings. |
static java.lang.String |
PERSISTENCE_CONTEXT_FLUSH_MODE
Allows the EntityManager FlushMode to be set as a persistence property. |
static java.lang.String |
PERSISTENCE_CONTEXT_PERSIST_ON_COMMIT
Specifies that the EntityManager will search all managed objects and persist any related non-managed new objects that are cascade persist. |
static java.lang.String |
PERSISTENCE_CONTEXT_REFERENCE_MODE
Specifies whether there should be hard or soft references used within the Persistence Context. |
static java.lang.String |
PESSIMISTIC_LOCK_TIMEOUT
Configures the WAIT timeout used in pessimistic locking, if the database query exceeds the timeout the database will terminate the query and return an exception. |
static java.lang.String |
PROFILER
The type of performance profiler. |
static java.util.Map<java.lang.String,java.lang.String> |
PROPERTY_LOG_OVERRIDES
INTERNAL: The following properties will not be displayed through logging but instead have an alternate value shown in the log. |
static java.lang.String |
SESSION_CUSTOMIZER
Allows session customization. |
static java.lang.String |
SESSION_EVENT_LISTENER_CLASS
Specify a session event listener class. |
static java.lang.String |
SESSION_NAME
By default a unique session name is generated by EclipseLink, but the user can provide a customary session name - and make sure it's unique. |
static java.lang.String |
SESSIONS_XML
Specify persistence info to be loaded from a sessions-xml file. |
static java.lang.String |
TARGET_DATABASE
Valid values are defined in TargetDatabase class - they correspond to database platforms currently supported by TopLink. |
static java.lang.String |
TARGET_SERVER
Valid values are defined in TargetServer class - they correspond to server platforms currently supported by EclipseLink. |
static java.lang.String |
TEMPORAL_MUTABLE
Specify the default for detecting changes to temporal field (Date, Calendar). |
static java.lang.String |
THROW_EXCEPTIONS
Configures if the first exception that occurs during deployment should be thrown, or if all exceptions should be caught and summary thrown at end of deployment attempt. |
static java.lang.String |
TRANSACTION_TYPE
Standard JPA PersistenceUnitTransactionType property, JTA or RESOURCE_LOCAL. |
static java.lang.String |
VALIDATE_EXISTENCE
Configures if the existence of an object should be verified on persist(), otherwise it will assume to be new if not in the persistence context. |
static java.lang.String |
VALIDATION_ONLY_PROPERTY
Validate deployment, but do not connect. |
static java.lang.String |
WEAVING
Indicates whether weaving should be performed. |
static java.lang.String |
WEAVING_CHANGE_TRACKING
Indicates whether AttributeLevelChangeTracking should be enabled through weaving - "true" by default. |
static java.lang.String |
WEAVING_EAGER
Indicates whether EAGER mappings should be enabled to use indirection - "false" by default. |
static java.lang.String |
WEAVING_FETCHGROUPS
Indicates whether FetchGroup support should be enabled through weaving - "true" by default. |
static java.lang.String |
WEAVING_INTERNAL
Indicates whether internal optimizations should be enabled through weaving - "true" by default. |
static java.lang.String |
WEAVING_LAZY
Indicates whether LAZY OneToOne mappings should be enabled through weaving - "true" by default. |
Constructor Summary | |
---|---|
PersistenceUnitProperties()
|
Method Summary | |
---|---|
static java.lang.String |
getOverriddenLogStringForProperty(java.lang.String propertyName)
INTERNAL: Return the overridden log string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRANSACTION_TYPE
public static final java.lang.String JTA_DATASOURCE
public static final java.lang.String NON_JTA_DATASOURCE
public static final java.lang.String JDBC_DRIVER
public static final java.lang.String JDBC_URL
public static final java.lang.String JDBC_USER
public static final java.lang.String JDBC_PASSWORD
public static final java.lang.String JDBC_WRITE_CONNECTIONS_MAX
public static final java.lang.String JDBC_WRITE_CONNECTIONS_MIN
public static final java.lang.String JDBC_READ_CONNECTIONS_MAX
public static final java.lang.String JDBC_READ_CONNECTIONS_MIN
public static final java.lang.String JDBC_READ_CONNECTIONS_SHARED
public static final java.lang.String JDBC_BIND_PARAMETERS
public static final java.lang.String CACHE_SIZE_
Property names formed out of these prefixes by appending either entity name, or class name (indicating that the property values applies only to a particular entity) or DEFAULT suffix (indicating that the property value applies to all entities). For most cache types, the size is only the initial size, not a fixed or maximum size. For CacheType.SoftCache and CacheType.HardCache the size is the sub-cache size. The default cache size is 100.
public static final java.lang.String CACHE_TYPE_
CACHE_SHARED_
,
CacheType
,
Constant Field Valuespublic static final java.lang.String CACHE_SHARED_
public static final java.lang.String DEFAULT
public static final java.lang.String CACHE_SIZE_DEFAULT
public static final java.lang.String CACHE_TYPE_DEFAULT
CACHE_SHARED_DEFAULT
,
Constant Field Valuespublic static final java.lang.String CACHE_SHARED_DEFAULT
public static final java.lang.String EXCLUSIVE_CONNECTION_MODE
ExclusiveConnectionMode
,
Constant Field Valuespublic static final java.lang.String EXCLUSIVE_CONNECTION_IS_LAZY
public static final java.lang.String LOGGING_LOGGER
LoggerType
,
Constant Field Valuespublic static final java.lang.String LOGGING_LEVEL
public static final java.lang.String CATEGORY_LOGGING_LEVEL_
public static final java.lang.String LOGGING_TIMESTAMP
public static final java.lang.String LOGGING_THREAD
public static final java.lang.String LOGGING_SESSION
public static final java.lang.String LOGGING_EXCEPTIONS
public static final java.lang.String TARGET_DATABASE
TargetDatabase
,
Constant Field Valuespublic static final java.lang.String EXCLUDE_ECLIPSELINK_ORM_FILE
public static final java.lang.String SESSION_NAME
public static final java.lang.String WEAVING
public static final java.lang.String WEAVING_INTERNAL
public static final java.lang.String WEAVING_LAZY
public static final java.lang.String WEAVING_EAGER
public static final java.lang.String WEAVING_CHANGE_TRACKING
public static final java.lang.String WEAVING_FETCHGROUPS
FetchGroupManager
,
FetchGroup
,
Constant Field Valuespublic static final java.lang.String TARGET_SERVER
TargetServer
,
Constant Field Valuespublic static final java.lang.String SESSION_CUSTOMIZER
SessionCustomizer
,
Constant Field Valuespublic static final java.lang.String DESCRIPTOR_CUSTOMIZER_
public static final java.lang.String NATIVE_SQL
public static final java.lang.String NATIVE_QUERY_UPPERCASE_COLUMNS
public static final java.lang.String BATCH_WRITING
BatchWriting
,
Constant Field Valuespublic static final java.lang.String BATCH_WRITING_SIZE
BATCH_WRITING
,
Constant Field Valuespublic static final java.lang.String EXCEPTION_HANDLER_CLASS
public static final java.lang.String CACHE_STATEMENTS_SIZE
public static final java.lang.String INCLUDE_DESCRIPTOR_QUERIES
public static final java.lang.String CACHE_STATEMENTS
public static final java.lang.String SESSION_EVENT_LISTENER_CLASS
SessionEventListener
,
Constant Field Valuespublic static final java.lang.String SESSIONS_XML
public static final java.lang.String LOGGING_FILE
public static final java.lang.String TEMPORAL_MUTABLE
public static final java.lang.String ALLOW_ZERO_ID
PrimaryKey
,
IdValidation
,
Constant Field Valuespublic static final java.lang.String FLUSH_CLEAR_CACHE
FlushClearCache
,
Constant Field Valuespublic static final java.lang.String CLASSLOADER
public static final java.lang.String THROW_EXCEPTIONS
public static final java.lang.String ORM_SCHEMA_VALIDATION
public static final java.lang.String VALIDATION_ONLY_PROPERTY
public static final java.lang.String DDL_GENERATION
public static final java.lang.String CREATE_ONLY
public static final java.lang.String DROP_AND_CREATE
public static final java.lang.String NONE
public static final java.lang.String APP_LOCATION
public static final java.lang.String CREATE_JDBC_DDL_FILE
public static final java.lang.String DROP_JDBC_DDL_FILE
public static final java.lang.String DEFAULT_APP_LOCATION
public static final java.lang.String DEFAULT_CREATE_JDBC_FILE_NAME
public static final java.lang.String DEFAULT_DROP_JDBC_FILE_NAME
public static final java.lang.String JAVASE_DB_INTERACTION
public static final java.lang.String DDL_GENERATION_MODE
public static final java.lang.String DDL_SQL_SCRIPT_GENERATION
public static final java.lang.String DDL_DATABASE_GENERATION
public static final java.lang.String DDL_BOTH_GENERATION
public static final java.lang.String DEFAULT_DDL_GENERATION_MODE
public static final java.lang.String VALIDATE_EXISTENCE
public static final java.lang.String PROFILER
ProfilerType
,
Constant Field Valuespublic static final java.lang.String JOIN_EXISTING_TRANSACTION
public static final java.lang.String PERSISTENCE_CONTEXT_REFERENCE_MODE
ReferenceMode
,
Constant Field Valuespublic static final java.lang.String PESSIMISTIC_LOCK_TIMEOUT
public static final java.lang.String PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT
public static final java.lang.String PERSISTENCE_CONTEXT_PERSIST_ON_COMMIT
public static final java.lang.String PERSISTENCE_CONTEXT_COMMIT_WITHOUT_PERSIST_RULES
public static final java.lang.String PERSISTENCE_CONTEXT_FLUSH_MODE
EntityManager.setFlushMode(javax.persistence.FlushModeType)
,
FlushModeType
,
Constant Field Valuespublic static final java.lang.String ORACLE_PROXY_TYPE
public static final java.util.Map<java.lang.String,java.lang.String> PROPERTY_LOG_OVERRIDES
Constructor Detail |
---|
public PersistenceUnitProperties()
Method Detail |
---|
public static final java.lang.String getOverriddenLogStringForProperty(java.lang.String propertyName)
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |