Record Class DatabaseHandlerConfig

java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.handler.DatabaseHandlerConfig

public record DatabaseHandlerConfig(DatabaseHandlerConfig.Mode mode, boolean bypassStoreForward, String datasourceName, String tableName, boolean autoCreateTable, boolean timestampColumnEnabled, String timestampColumnName, List<DatabaseHandlerConfig.Column> columnMappings, List<DatabaseHandlerConfig.Column> whereClauses) extends Record
  • Constructor Details

    • DatabaseHandlerConfig

      public DatabaseHandlerConfig(DatabaseHandlerConfig.Mode mode, boolean bypassStoreForward, String datasourceName, String tableName, boolean autoCreateTable, boolean timestampColumnEnabled, String timestampColumnName, List<DatabaseHandlerConfig.Column> columnMappings, List<DatabaseHandlerConfig.Column> whereClauses)
      Creates an instance of a DatabaseHandlerConfig record class.
      Parameters:
      mode - the value for the mode record component
      bypassStoreForward - the value for the bypassStoreForward record component
      datasourceName - the value for the datasourceName record component
      tableName - the value for the tableName record component
      autoCreateTable - the value for the autoCreateTable record component
      timestampColumnEnabled - the value for the timestampColumnEnabled record component
      timestampColumnName - the value for the timestampColumnName record component
      columnMappings - the value for the columnMappings record component
      whereClauses - the value for the whereClauses record component
  • Method Details

    • toJson

      public com.inductiveautomation.ignition.common.gson.JsonObject toJson()
    • fromJson

      public static DatabaseHandlerConfig fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject config)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mode

      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • bypassStoreForward

      public boolean bypassStoreForward()
      Returns the value of the bypassStoreForward record component.
      Returns:
      the value of the bypassStoreForward record component
    • datasourceName

      public String datasourceName()
      Returns the value of the datasourceName record component.
      Returns:
      the value of the datasourceName record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • autoCreateTable

      public boolean autoCreateTable()
      Returns the value of the autoCreateTable record component.
      Returns:
      the value of the autoCreateTable record component
    • timestampColumnEnabled

      public boolean timestampColumnEnabled()
      Returns the value of the timestampColumnEnabled record component.
      Returns:
      the value of the timestampColumnEnabled record component
    • timestampColumnName

      public String timestampColumnName()
      Returns the value of the timestampColumnName record component.
      Returns:
      the value of the timestampColumnName record component
    • columnMappings

      public List<DatabaseHandlerConfig.Column> columnMappings()
      Returns the value of the columnMappings record component.
      Returns:
      the value of the columnMappings record component
    • whereClauses

      public List<DatabaseHandlerConfig.Column> whereClauses()
      Returns the value of the whereClauses record component.
      Returns:
      the value of the whereClauses record component