public enum PhysicalConnectionHandlingMode extends Enum<PhysicalConnectionHandlingMode>
Enum Constant and Description |
---|
DELAYED_ACQUISITION_AND_HOLD
The Connection will be acquired as soon as it is needed and then held
until the Session is closed.
|
DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT
The Connection will be acquired as soon as it is needed; it will be released
after each statement is executed.
|
DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION
The Connection will be acquired as soon as it is needed; it will be released
after each transaction is completed.
|
IMMEDIATE_ACQUISITION_AND_HOLD
The Connection will be acquired as soon as the Session is opened and
held until the Session is closed.
|
Modifier and Type | Method and Description |
---|---|
ConnectionAcquisitionMode |
getAcquisitionMode() |
ConnectionReleaseMode |
getReleaseMode() |
static PhysicalConnectionHandlingMode |
interpret(ConnectionAcquisitionMode acquisitionMode,
ConnectionReleaseMode releaseMode) |
static PhysicalConnectionHandlingMode |
interpret(Object setting) |
static PhysicalConnectionHandlingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhysicalConnectionHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhysicalConnectionHandlingMode IMMEDIATE_ACQUISITION_AND_HOLD
public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_HOLD
public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT
public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION
public static PhysicalConnectionHandlingMode[] values()
for (PhysicalConnectionHandlingMode c : PhysicalConnectionHandlingMode.values()) System.out.println(c);
public static PhysicalConnectionHandlingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ConnectionAcquisitionMode getAcquisitionMode()
public ConnectionReleaseMode getReleaseMode()
public static PhysicalConnectionHandlingMode interpret(Object setting)
public static PhysicalConnectionHandlingMode interpret(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode)
Copyright © 2019 JBoss by Red Hat. All rights reserved.