public class ExclusiveConnectionMode extends 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 String |
Always
The value causes creation of ExclusiveIsolatedClientSession
in both isolated and non-isolated cases.
|
static String |
DEFAULT |
static String |
Isolated
The value causes creation of
ExclusiveIsolatedClientSession in isolated case
and throws exception otherwise.
|
static String |
Transactional
The value causes creation of
IsolatedClientSession in isolated case
and ClientSession otherwise.
|
Constructor and Description |
---|
ExclusiveConnectionMode() |
public static final String Transactional
public static final String Isolated
public static final String Always
public static final String DEFAULT
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.