public enum ConnectionAcquisitionMode extends Enum<ConnectionAcquisitionMode>
ConnectionReleaseMode
.
NOTE : Not yet used. The only current behavior is the legacy behavior, which is
AS_NEEDED
.Enum Constant and Description |
---|
AS_NEEDED
The legacy behavior.
|
DEFAULT
Not sure yet tbh :)
|
IMMEDIATELY
The Connection will be acquired as soon as the Hibernate Session is opened.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionAcquisitionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionAcquisitionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionAcquisitionMode IMMEDIATELY
public static final ConnectionAcquisitionMode AS_NEEDED
public static final ConnectionAcquisitionMode DEFAULT
public static ConnectionAcquisitionMode[] values()
for (ConnectionAcquisitionMode c : ConnectionAcquisitionMode.values()) System.out.println(c);
public static ConnectionAcquisitionMode 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 nullCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.