Class SkipAutoCommitCheckEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.configuration.connection.SkipAutoCommitCheckEvent
- All Implemented Interfaces:
Event,Serializable
The
SkipAutoCommitCheckEvent indicates that the current application
is using a PersistenceUnitTransactionType.RESOURCE_LOCAL
transaction type, and it could skip the auto-commit check, which prevents the
database transaction from being acquired lazily if the hibernate.connection.provider_disables_autocommit
configuration property is set to true given that the underlying DataSource
is also configured to call the Connection.setAutoCommit(boolean) method
with a false parameter whenever a new Connection is being acquired.- Since:
- 1.1.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
SkipAutoCommitCheckEvent
public SkipAutoCommitCheckEvent()
-
-
Method Details
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-