ConnectionAcquisitionMode.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConnectionReleaseMode | AFTER_STATEMENT
Indicates that JDBC connection should be aggressively released after each SQL statement is executed. |
| public static final ConnectionReleaseMode | AFTER_TRANSACTION
Indicates that JDBC connections should be released after each transaction ends (works with both JTA-registered synch and HibernateTransaction API). |
| public static final ConnectionReleaseMode | BEFORE_TRANSACTION_COMPLETION
Indicates that JDBC connections should be released before each transaction commits/rollbacks (works with both JTA-registered synch and HibernateTransaction API). |
| public static final 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. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConnectionReleaseMode | |
| public static ConnectionReleaseMode | Returns: The matched enum value.The name to parse name)Alias for |
| public static ConnectionReleaseMode | |
| public static ConnectionReleaseMode[] |
| AFTER_STATEMENT | back to summary |
|---|---|
| public static final ConnectionReleaseMode AFTER_STATEMENT Indicates that JDBC connection should be aggressively released after each SQL statement is executed. In this mode, the application must explicitly close all iterators and scrollable results. This mode may only be used with a JTA datasource. | |
| AFTER_TRANSACTION | back to summary |
|---|---|
| public static final ConnectionReleaseMode AFTER_TRANSACTION Indicates that JDBC connections should be released after each transaction ends (works with both JTA-registered synch and HibernateTransaction API). This mode may not be used with an application server JTA datasource.
This is the default mode starting in 3.1; was previously | |
| BEFORE_TRANSACTION_COMPLETION | back to summary |
|---|---|
| public static final ConnectionReleaseMode BEFORE_TRANSACTION_COMPLETION Indicates that JDBC connections should be released before each transaction commits/rollbacks (works with both JTA-registered synch and HibernateTransaction API). This mode may be used with an application server JTA datasource. | |
| ON_CLOSE | back to summary |
|---|---|
| public static final 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. | |
| ConnectionReleaseMode | back to summary |
|---|---|
| private ConnectionReleaseMode() | |
| interpret | back to summary |
|---|---|
| public static ConnectionReleaseMode interpret(Object setting) | |
| parse | back to summary |
|---|---|
| public static ConnectionReleaseMode parse(final String name) Alias for
| |
| valueOf | back to summary |
|---|---|
| public static ConnectionReleaseMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ConnectionReleaseMode[] values() | |