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 recordstatic 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 aDatabaseHandlerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoCreateTablerecord component.booleanReturns the value of thebypassStoreForwardrecord component.Returns the value of thecolumnMappingsrecord component.Returns the value of thedatasourceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.static DatabaseHandlerConfigfromJson(com.inductiveautomation.ignition.common.gson.JsonObject config) final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.Returns the value of thetableNamerecord component.booleanReturns the value of thetimestampColumnEnabledrecord component.Returns the value of thetimestampColumnNamerecord component.com.inductiveautomation.ignition.common.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.Returns the value of thewhereClausesrecord 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 aDatabaseHandlerConfigrecord class.- Parameters:
mode- the value for themoderecord componentbypassStoreForward- the value for thebypassStoreForwardrecord componentdatasourceName- the value for thedatasourceNamerecord componenttableName- the value for thetableNamerecord componentautoCreateTable- the value for theautoCreateTablerecord componenttimestampColumnEnabled- the value for thetimestampColumnEnabledrecord componenttimestampColumnName- the value for thetimestampColumnNamerecord componentcolumnMappings- the value for thecolumnMappingsrecord componentwhereClauses- the value for thewhereClausesrecord 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 themoderecord component.- Returns:
- the value of the
moderecord component
-
bypassStoreForward
public boolean bypassStoreForward()Returns the value of thebypassStoreForwardrecord component.- Returns:
- the value of the
bypassStoreForwardrecord component
-
datasourceName
Returns the value of thedatasourceNamerecord component.- Returns:
- the value of the
datasourceNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
autoCreateTable
public boolean autoCreateTable()Returns the value of theautoCreateTablerecord component.- Returns:
- the value of the
autoCreateTablerecord component
-
timestampColumnEnabled
public boolean timestampColumnEnabled()Returns the value of thetimestampColumnEnabledrecord component.- Returns:
- the value of the
timestampColumnEnabledrecord component
-
timestampColumnName
Returns the value of thetimestampColumnNamerecord component.- Returns:
- the value of the
timestampColumnNamerecord component
-
columnMappings
Returns the value of thecolumnMappingsrecord component.- Returns:
- the value of the
columnMappingsrecord component
-
whereClauses
Returns the value of thewhereClausesrecord component.- Returns:
- the value of the
whereClausesrecord component
-