java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.configuration.dialect.DialectVersionEvent
All Implemented Interfaces:
Event, Serializable

public class DialectVersionEvent extends AbstractEvent
The DialectVersionEvent indicates that the current application is using a Hibernate Dialect which does not match the underlying database server version.
Since:
1.1.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • DialectVersionEvent

      public DialectVersionEvent(String currentDialect, String suggestedDialect, String databaseName, int databaseMajorVersion, int databaseMinorVersion)
      Instantiate a DialectVersionEvent using the provided Dialect objects as well as the database metadata.
      Parameters:
      currentDialect - current Hibernate Dialect
      suggestedDialect - suggested Hibernate Dialect
      databaseName - underlying database name
      databaseMajorVersion - underlying database major version
      databaseMinorVersion - underlying database minor version
    • DialectVersionEvent

      public DialectVersionEvent(String currentDialect, String suggestedDialect)
      Instantiate a DialectVersionEvent using the provided Dialect objects only.
      Parameters:
      currentDialect - current Hibernate Dialect
      suggestedDialect - suggested Hibernate Dialect
  • Method Details

    • getCurrentDialect

      public String getCurrentDialect()
      Get the current Hibernate Dialect.
      Returns:
      the current Hibernate Dialect
    • getSuggestedDialect

      public String getSuggestedDialect()
      Get the suggested Hibernate Dialect.
      Returns:
      the suggested Hibernate Dialect
    • getDatabaseName

      public String getDatabaseName()
      Get the underlying database name.
      Returns:
      the underlying database name
    • getDatabaseMajorVersion

      public Integer getDatabaseMajorVersion()
      Get underlying database major version.
      Returns:
      underlying database major version
    • getDatabaseMinorVersion

      public Integer getDatabaseMinorVersion()
      Get underlying database minor version.
      Returns:
      underlying database minor version
    • 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