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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseHandlerConfig
(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 aDatabaseHandlerConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theautoCreateTable
record component.boolean
Returns the value of thebypassStoreForward
record component.Returns the value of thecolumnMappings
record component.Returns the value of thedatasourceName
record component.final boolean
Indicates whether some other object is "equal to" this one.static DatabaseHandlerConfig
fromJson
(com.inductiveautomation.ignition.common.gson.JsonObject config) final int
hashCode()
Returns a hash code value for this object.mode()
Returns the value of themode
record component.Returns the value of thetableName
record component.boolean
Returns the value of thetimestampColumnEnabled
record component.Returns the value of thetimestampColumnName
record component.com.inductiveautomation.ignition.common.gson.JsonObject
toJson()
final String
toString()
Returns a string representation of this record class.Returns the value of thewhereClauses
record component.
-
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 aDatabaseHandlerConfig
record class.- Parameters:
mode
- the value for themode
record componentbypassStoreForward
- the value for thebypassStoreForward
record componentdatasourceName
- the value for thedatasourceName
record componenttableName
- the value for thetableName
record componentautoCreateTable
- the value for theautoCreateTable
record componenttimestampColumnEnabled
- the value for thetimestampColumnEnabled
record componenttimestampColumnName
- the value for thetimestampColumnName
record componentcolumnMappings
- the value for thecolumnMappings
record componentwhereClauses
- the value for thewhereClauses
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
bypassStoreForward
public boolean bypassStoreForward()Returns the value of thebypassStoreForward
record component.- Returns:
- the value of the
bypassStoreForward
record component
-
datasourceName
Returns the value of thedatasourceName
record component.- Returns:
- the value of the
datasourceName
record component
-
tableName
Returns the value of thetableName
record component.- Returns:
- the value of the
tableName
record component
-
autoCreateTable
public boolean autoCreateTable()Returns the value of theautoCreateTable
record component.- Returns:
- the value of the
autoCreateTable
record component
-
timestampColumnEnabled
public boolean timestampColumnEnabled()Returns the value of thetimestampColumnEnabled
record component.- Returns:
- the value of the
timestampColumnEnabled
record component
-
timestampColumnName
Returns the value of thetimestampColumnName
record component.- Returns:
- the value of the
timestampColumnName
record component
-
columnMappings
Returns the value of thecolumnMappings
record component.- Returns:
- the value of the
columnMappings
record component
-
whereClauses
Returns the value of thewhereClauses
record component.- Returns:
- the value of the
whereClauses
record component
-