Record Class AbstractTableSyncTransformStep.SyncProcessConfig
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.processes.implementations.tablesync.AbstractTableSyncTransformStep.SyncProcessConfig
- Enclosing class:
AbstractTableSyncTransformStep
public static record AbstractTableSyncTransformStep.SyncProcessConfig(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey, boolean performInserts, boolean performUpdates)
extends Record
Record to store the config for this process - e.g., what fields invalid input: '&' tables are used.
-
Constructor Summary
ConstructorsConstructorDescriptionSyncProcessConfig
(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey) Overloaded constructor - defaults both performInserts invalid input: '&' performUpdates to true.SyncProcessConfig
(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey, boolean performInserts, boolean performUpdates) Creates an instance of aSyncProcessConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationTable
record component.Returns the value of thedestinationTableForeignKey
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theperformInserts
record component.boolean
Returns the value of theperformUpdates
record component.Returns the value of thesourceTable
record component.Returns the value of thesourceTableKeyField
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SyncProcessConfig
-
SyncProcessConfig
public SyncProcessConfig(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey, boolean performInserts, boolean performUpdates) Creates an instance of aSyncProcessConfig
record class.- Parameters:
sourceTable
- the value for thesourceTable
record componentsourceTableKeyField
- the value for thesourceTableKeyField
record componentdestinationTable
- the value for thedestinationTable
record componentdestinationTableForeignKey
- the value for thedestinationTableForeignKey
record componentperformInserts
- the value for theperformInserts
record componentperformUpdates
- the value for theperformUpdates
record component
-
-
Method Details
-
toString
-
hashCode
-
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 thecompare
method from their corresponding wrapper classes. -
sourceTable
Returns the value of thesourceTable
record component.- Returns:
- the value of the
sourceTable
record component
-
sourceTableKeyField
Returns the value of thesourceTableKeyField
record component.- Returns:
- the value of the
sourceTableKeyField
record component
-
destinationTable
Returns the value of thedestinationTable
record component.- Returns:
- the value of the
destinationTable
record component
-
destinationTableForeignKey
Returns the value of thedestinationTableForeignKey
record component.- Returns:
- the value of the
destinationTableForeignKey
record component
-
performInserts
public boolean performInserts()Returns the value of theperformInserts
record component.- Returns:
- the value of the
performInserts
record component
-
performUpdates
public boolean performUpdates()Returns the value of theperformUpdates
record component.- Returns:
- the value of the
performUpdates
record component
-