Class DriverEventInfo

java.lang.Object
de.xima.fc.persistence.driver.DriverEventInfo
All Implemented Interfaces:
Serializable

public final class DriverEventInfo extends Object implements Serializable
Information about a database driver for event purposes.
Since:
8.5.0
Author:
Norman Lorenz
See Also:
  • Constructor Details

    • DriverEventInfo

      public DriverEventInfo(Dbms dbms, String driverClassName, int driverMajorVersion, int driverMinorVersion, String filename, String fingerprint, String runtimeId, byte[] driverFileContent)
      Creates a new DriverEventInfo instance.
      Parameters:
      dbms - The Database management System (DBMS) associated with the driver. May be null if the DBMS could not be determined (e.g., if the driver is unknown).
      driverClassName - The fully qualified class name of the driver.
      driverMajorVersion - The major version of the JDBC driver.
      driverMinorVersion - The minor version of the JDBC driver.
      filename - The original filename of the JDBC driver file.
      fingerprint - The SHA-256 fingerprint of the JDBC driver file as a hexadecimal string.
      runtimeId - The runtime ID of the driver.
      driverFileContent - The content of the JDBC driver file as a byte array.
  • Method Details

    • getDbms

      public Dbms getDbms()
      The Database management System (DBMS) associated with the driver. May be null if the DBMS could not be determined (e.g., if the driver is unknown).
    • getDriverClassName

      public String getDriverClassName()
      The fully qualified class name of the driver.
    • getDriverMajorVersion

      public int getDriverMajorVersion()
      The major version of the JDBC driver.
    • getDriverMinorVersion

      public int getDriverMinorVersion()
      The minor version of the JDBC driver.
    • getFilename

      public String getFilename()
      The original filename of the JDBC driver file.
    • getFingerprint

      public String getFingerprint()
      The SHA-256 fingerprint of the JDBC driver file as a hexadecimal string.
    • getRuntimeId

      public String getRuntimeId()
      The runtime ID of the driver.
    • getDriverFileContent

      public byte[] getDriverFileContent()
      The content of the JDBC driver file as a byte array.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object