Interface ISupportedVersion

All Known Implementing Classes:
ChSupportedVersion, MsSupportedVersion, PgSupportedVersion

public interface ISupportedVersion
Interface for supported database versions. Provides version comparison and lookup functionality for database compatibility checking.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    default boolean
    isLE(int version)
    Checks if this version is less than or equal to the specified version.
    static <T extends ISupportedVersion>
    T
    valueOf(int checkVersion, T[] versions, T defaultValue)
    Returns the highest supported version that is less than or equal to the specified version.
  • Method Details

    • getVersion

      int getVersion()
    • getText

      String getText()
    • isLE

      default boolean isLE(int version)
      Checks if this version is less than or equal to the specified version.
      Parameters:
      version - the version to compare against
      Returns:
      true if this version is less than or equal to the specified version
    • valueOf

      static <T extends ISupportedVersion> T valueOf(int checkVersion, T[] versions, T defaultValue)
      Returns the highest supported version that is less than or equal to the specified version. If no matching version is found, returns default value.
      Parameters:
      checkVersion - the version to check
      versions - supported versions
      defaultValue - default value