public enum ConnectionAcquisitionMode extends java.lang.Enum<ConnectionAcquisitionMode>
ConnectionReleaseMode
.Enum Constant and Description |
---|
AS_NEEDED
The legacy behavior.
|
IMMEDIATELY
The Connection will be acquired as soon as the Hibernate Session is opened.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionAcquisitionMode |
interpret(java.lang.Object setting) |
static ConnectionAcquisitionMode |
interpret(java.lang.String value) |
static ConnectionAcquisitionMode |
valueOf(java.lang.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 ConnectionAcquisitionMode[] values()
for (ConnectionAcquisitionMode c : ConnectionAcquisitionMode.values()) System.out.println(c);
public static ConnectionAcquisitionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ConnectionAcquisitionMode interpret(java.lang.String value)
public static ConnectionAcquisitionMode interpret(java.lang.Object setting)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.