public class ConnectionReleaseMode
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static ConnectionReleaseMode |
AFTER_STATEMENT
Indicates that JDBC connection should be aggressively released after each
SQL statement is executed.
|
static ConnectionReleaseMode |
AFTER_TRANSACTION
Indicates that JDBC connections should be released after each transaction
ends (works with both JTA-registered synch and HibernateTransaction API).
|
static ConnectionReleaseMode |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionReleaseMode |
parse(java.lang.String modeName)
Determine the correct ConnectionReleaseMode instance based on the given
name.
|
java.lang.String |
toString()
Override of Object.toString().
|
public static final ConnectionReleaseMode AFTER_STATEMENT
public static final ConnectionReleaseMode AFTER_TRANSACTION
ON_CLOSE.public static final ConnectionReleaseMode ON_CLOSE
public java.lang.String toString()
toString in class java.lang.Objectpublic static ConnectionReleaseMode parse(java.lang.String modeName) throws HibernateException
modeName - The release mode name.HibernateException - Indicates the modeName param did not match any known modes.Copyright © 2013. All Rights Reserved.