org.eclipse.persistence.config
public class EntityManagerProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_POLICY
ConnectionPolicy
Allows to specify an entire ConnectionPolicy.
|
static String |
EXCLUSIVE_CONNECTION_IS_LAZY
Determines when write connection is acquired lazily.
|
static String |
EXCLUSIVE_CONNECTION_MODE
Determines when reads are performed through the write connection.
|
static String |
FLUSH_CLEAR_CACHE
Defines EntityManager cache behavior after a call to flush method
followed by a call to clear method.
|
static String |
JDBC_DRIVER
JDBC Driver class name.
|
static String |
JDBC_PASSWORD
DataSource or JDBC DriverManager password.
|
static String |
JDBC_URL
JDBC Connection String.
|
static String |
JDBC_USER
DataSource or JDBC DriverManager user name.
|
static 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 String |
JTA_DATASOURCE
JTA DataSource.
|
static String |
NON_JTA_DATASOURCE
NON JTA DataSource.
|
static String |
ORACLE_PROXY_TYPE
This property is used to specify proxy type that should be passed to OarcleConnection.openProxySession method.
|
static String |
ORDER_UPDATES
Configures if updates should be ordered by primary key.
|
static String |
PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT
Specifies that the EntityManager will be closed or not used after commit (not extended).
|
static 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 String |
PERSISTENCE_CONTEXT_FLUSH_MODE
Allows the EntityManager FlushMode to be set as a persistence property.
|
static 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 String |
PERSISTENCE_CONTEXT_REFERENCE_MODE
Specifies whether there should be hard or soft references used within the Persistence Context.
|
static 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.
|
Constructor and Description |
---|
EntityManagerProperties() |
public static final String JOIN_EXISTING_TRANSACTION
public static final String PERSISTENCE_CONTEXT_REFERENCE_MODE
ReferenceMode
,
Constant Field Valuespublic static final String PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT
public static final String PERSISTENCE_CONTEXT_PERSIST_ON_COMMIT
public static final String PERSISTENCE_CONTEXT_COMMIT_WITHOUT_PERSIST_RULES
public static final String PERSISTENCE_CONTEXT_FLUSH_MODE
EntityManager.setFlushMode(javax.persistence.FlushModeType)
,
FlushModeType
,
Constant Field Valuespublic static final String ORACLE_PROXY_TYPE
public static final String EXCLUSIVE_CONNECTION_MODE
ExclusiveConnectionMode
,
Constant Field Valuespublic static final String EXCLUSIVE_CONNECTION_IS_LAZY
public static final String JTA_DATASOURCE
public static final String NON_JTA_DATASOURCE
public static final String JDBC_DRIVER
public static final String JDBC_URL
public static final String JDBC_USER
public static final String JDBC_PASSWORD
public static final String CONNECTION_POLICY
public static final String VALIDATE_EXISTENCE
public static final String ORDER_UPDATES
public static final String FLUSH_CLEAR_CACHE
FlushClearCache
,
Constant Field Values