public enum ConnectionAcquisitionMode extends 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(String value) |
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 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 nullpublic static ConnectionAcquisitionMode interpret(String value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.