public class ExclusiveConnectionMode
extends java.lang.Object
JPA persistence property Usage:
properties.add(PersistenceUnitProperties.EXCLUSIVE_CONNECTION_MODE, ExclusiveConnectionMode.Isolated);
Values are case-insensitive. "" could be used instead of default value ExclusiveConnectionMode.DEFAULT.
PersistenceUnitProperties
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Always
The value causes creation of ExclusiveIsolatedClientSession
in both isolated and non-isolated cases.
|
static java.lang.String |
DEFAULT |
static java.lang.String |
Isolated
The value causes creation of
ExclusiveIsolatedClientSession in isolated case
and throws exception otherwise.
|
static java.lang.String |
Transactional
The value causes creation of
IsolatedClientSession in isolated case
and ClientSession otherwise.
|
Constructor and Description |
---|
ExclusiveConnectionMode() |
public static final java.lang.String Transactional
public static final java.lang.String Isolated
public static final java.lang.String Always
public static final java.lang.String DEFAULT