ConnectionAcquisitionMode.
org.hibernate.resource.jdbc.spi.PhysicalConnectionHandlingMode
| Modifier and Type | Field and Description |
|---|---|
| public static final ConnectionReleaseMode | AFTER_STATEMENT
Indicates that the JDBC connection should be aggressively released after each SQL statement is executed. |
| public static final ConnectionReleaseMode | AFTER_TRANSACTION
Indicates that the JDBC connection should be released after each transaction ends. |
| public static final ConnectionReleaseMode | BEFORE_TRANSACTION_COMPLETION
Indicates that the JDBC connection should be released before each transaction commits or rolls back. |
| public static final ConnectionReleaseMode | ON_CLOSE
Indicates that connections should only be released when the session is explicitly closed or disconnected. |
| 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 the 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 the JDBC connection should be released after each transaction ends. This works with both resource-local transactions and with JTA-registered synchronizations. But it may not be used with an application server JTA datasource. This is the default mode. | |
| BEFORE_TRANSACTION_COMPLETION | back to summary |
|---|---|
| public static final ConnectionReleaseMode BEFORE_TRANSACTION_COMPLETION Indicates that the JDBC connection should be released before each transaction commits or rolls back. This works with both resource-local transactions and with JTA-registered synchronizations. It 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. Prior to Hibernate 3.1, this was the default mode. | |
| 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() | |