Class ConnectionReleaseAfterStatementEvent

java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.configuration.ConfigurationPropertyEvent
io.hypersistence.optimizer.hibernate.event.configuration.connection.ConnectionReleaseAfterStatementEvent
All Implemented Interfaces:
Event, Serializable

public class ConnectionReleaseAfterStatementEvent extends ConfigurationPropertyEvent
The ConnectionReleaseAfterStatementEvent indicates that the current application is using the Hibernate ConnectionReleaseMode.AFTER_STATEMENT connection release mode which is less efficient than the ConnectionReleaseMode.AFTER_TRANSACTION alternative.
Since:
1.1.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • ConnectionReleaseAfterStatementEvent

      public ConnectionReleaseAfterStatementEvent(boolean jta)
      Instantiate the event using the provided Hibernate transaction management mode.
      Parameters:
      jta - if Hibernate uses JTA
  • Method Details

    • isJta

      public boolean isJta()
      Check if the event was generated in a JTA environment.
      Returns:
      the event was generated in a JTA environment
    • getPriority

      public Event.Priority getPriority()
      Get the Event.Priority of this Event
      Returns:
      the Event.Priority of this Event
    • getDescription

      public String getDescription()
      Get the String description of this Event
      Returns:
      the String description of this Event