|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ConnectionReleaseMode>
org.hibernate.ConnectionReleaseMode
public enum ConnectionReleaseMode
Defines the various policies by which Hibernate might release its underlying JDBC connection.
| Enum Constant Summary | |
|---|---|
AFTER_STATEMENT
Indicates that JDBC connection should be aggressively released after each SQL statement is executed. |
|
AFTER_TRANSACTION
Indicates that JDBC connections should be released after each transaction ends (works with both JTA-registered synch and HibernateTransaction API). |
|
ON_CLOSE
Indicates that connections should only be released when the Session is explicitly closed or disconnected; this is the legacy (Hibernate2 and pre-3.1) behavior. |
|
| Method Summary | |
|---|---|
static ConnectionReleaseMode |
parse(String name)
|
static ConnectionReleaseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConnectionReleaseMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ConnectionReleaseMode AFTER_STATEMENT
public static final ConnectionReleaseMode AFTER_TRANSACTION
ON_CLOSE.
public static final ConnectionReleaseMode ON_CLOSE
| Method Detail |
|---|
public static ConnectionReleaseMode[] values()
for (ConnectionReleaseMode c : ConnectionReleaseMode.values()) System.out.println(c);
public static ConnectionReleaseMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static ConnectionReleaseMode parse(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||