| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionAcquisitionMode | |
| public static final PhysicalConnectionHandlingMode | DELAYED_ACQUISITION_AND_HOLD
The Connection will be acquired as soon as it is needed and then held until the Session is closed. |
| public static final PhysicalConnectionHandlingMode | DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT
The Connection will be acquired as soon as it is needed; it will be released after each statement is executed. |
| public static final PhysicalConnectionHandlingMode | DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION
The Connection will be acquired as soon as it is needed; it will be released after each transaction is completed. |
| public static final PhysicalConnectionHandlingMode | DELAYED_ACQUISITION_AND_RELEASE_BEFORE_TRANSACTION_COMPLETION
The Connection will be acquired as soon as it is needed; it will be released before commit/rollback. |
| public static final PhysicalConnectionHandlingMode | IMMEDIATE_ACQUISITION_AND_HOLD
The Connection will be acquired as soon as the Session is opened and held until the Session is closed. |
| private final ConnectionReleaseMode |
| Access | Constructor and Description |
|---|---|
| private | PhysicalConnectionHandlingMode(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode)
|
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionAcquisitionMode | |
| public ConnectionReleaseMode | |
| public static PhysicalConnectionHandlingMode | |
| public static PhysicalConnectionHandlingMode | |
| public static PhysicalConnectionHandlingMode | |
| public static PhysicalConnectionHandlingMode[] |
| acquisitionMode | back to summary |
|---|---|
| private final ConnectionAcquisitionMode acquisitionMode | |
| DELAYED_ACQUISITION_AND_HOLD | back to summary |
|---|---|
| public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_HOLD The Connection will be acquired as soon as it is needed and then held until the Session is closed. This is the original Hibernate behavior. | |
| DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT | back to summary |
|---|---|
| public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT The Connection will be acquired as soon as it is needed; it will be released after each statement is executed. | |
| DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION | back to summary |
|---|---|
| public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION The Connection will be acquired as soon as it is needed; it will be released after each transaction is completed. | |
| DELAYED_ACQUISITION_AND_RELEASE_BEFORE_TRANSACTION_COMPLETION | back to summary |
|---|---|
| public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_BEFORE_TRANSACTION_COMPLETION The Connection will be acquired as soon as it is needed; it will be released before commit/rollback. | |
| IMMEDIATE_ACQUISITION_AND_HOLD | back to summary |
|---|---|
| public static final PhysicalConnectionHandlingMode IMMEDIATE_ACQUISITION_AND_HOLD The Connection will be acquired as soon as the Session is opened and held until the Session is closed. This is the only valid combination including immediate acquisition of the Connection | |
| releaseMode | back to summary |
|---|---|
| private final ConnectionReleaseMode releaseMode | |
| PhysicalConnectionHandlingMode | back to summary |
|---|---|
| private PhysicalConnectionHandlingMode(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) | |
| getAcquisitionMode | back to summary |
|---|---|
| public ConnectionAcquisitionMode getAcquisitionMode() | |
| getReleaseMode | back to summary |
|---|---|
| public ConnectionReleaseMode getReleaseMode() | |
| interpret | back to summary |
|---|---|
| public static PhysicalConnectionHandlingMode interpret(Object setting) | |
| interpret | back to summary |
|---|---|
| public static PhysicalConnectionHandlingMode interpret(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) | |
| valueOf | back to summary |
|---|---|
| public static PhysicalConnectionHandlingMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PhysicalConnectionHandlingMode[] values() | |