EclipseLink 1.0_1.0 M8 - 20080604 API Reference - Incubation

org.eclipse.persistence.jpa.config
Class EntityManagerProperties

java.lang.Object
  extended by org.eclipse.persistence.jpa.config.EntityManagerProperties

public class EntityManagerProperties
extends java.lang.Object

The class defines TopLink properties' names. This properties are specific to an EnityManger and should be passed to createEntityManager methods of EntityManagerFactory. Property values are usually case-insensitive with some common sense exceptions, for instance class names.


Field Summary
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 ORACLE_PROXY_TYPE
          This property is used to specify proxy type that should be passed to OarcleConnection.openProxySession method.
static java.lang.String PERSISTENCE_CONTEXT_REFERENCE_MODE
          Specifies whether there should be hard or soft references used within the Persistence Context.
 
Constructor Summary
EntityManagerProperties()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOIN_EXISTING_TRANSACTION

public static final 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. Valid values are case-insensitive "false" and "true"; "false" is default. The property could also be set in persistence.xml or passed to createEntityManagerFactory, Note that if the property set to "true" then objects read during transaction won't be placed into the shared cache unless they have been updated. in that case it affects all EntityManagers created by the factory.

See Also:
Constant Field Values

PERSISTENCE_CONTEXT_REFERENCE_MODE

public static final java.lang.String PERSISTENCE_CONTEXT_REFERENCE_MODE
Specifies whether there should be hard or soft references used within the Persistence Context. Default is "HARD". With soft references entities no longer referenced by the application may be garbage collected freeing resources. Any changes that have not been flushed in these entities will be lost. The property could also be set in persistence.xml or passed to createEntityManagerFactory, in that case it affects all EntityManagers created by the factory.

See Also:
ReferenceMode, Constant Field Values

ORACLE_PROXY_TYPE

public static final java.lang.String ORACLE_PROXY_TYPE
This property is used to specify proxy type that should be passed to OarcleConnection.openProxySession method. Requires Oracle jdbc version 10.1.0.2 or later. Requires Oracle9Platform or later as a database platform (TARGET_DATABASE property value should be TargetDatabase.Oracle9 or later). The valid values are: OracleConnection.PROXYTYPE_USER_NAME, OracleConnection.PROXYTYPE_DISTINGUISHED_NAME, OracleConnection.PROXYTYPE_CERTIFICATE. Property property corresponding to the specified type should be also provided: OracleConnection.PROXY_USER_NAME, OracleConnection.PROXY_DISTINGUISHED_NAME, OracleConnection.PROXY_CERTIFICATE. Typically these properties should be set into EntityManager (either through createEntityManager method or using proprietary setProperties method on EntityManagerImpl) - that causes EntityManager to use proxy connection for writing and reading inside transaction. If proxy-type and the corresponding proxy property set into EntityManagerFactory then all connections created by the factory will be proxy connections.

See Also:
Constant Field Values
Constructor Detail

EntityManagerProperties

public EntityManagerProperties()

EclipseLink 1.0_1.0 M8 - 20080604 API Reference - Incubation