Package org.jumpmind.db.model
Record Class TableColumnSourceReferences.ColumnSourceReferenceEntry
java.lang.Object
java.lang.Record
org.jumpmind.db.model.TableColumnSourceReferences.ColumnSourceReferenceEntry
- Enclosing class:
- TableColumnSourceReferences
public static record TableColumnSourceReferences.ColumnSourceReferenceEntry(int sourceColumnNo, int targetColumnNo, Column sourceColumn, Column targetColumn)
extends Record
Internal class for column mappings to move data efficiently. Column numbers are used to copy data from source to target.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnSourceReferenceEntry
(int sourceColumnNo, int targetColumnNo, Column sourceColumn, Column targetColumn) Creates an instance of aColumnSourceReferenceEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesourceColumn
record component.int
Returns the value of thesourceColumnNo
record component.Returns the value of thetargetColumn
record component.int
Returns the value of thetargetColumnNo
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ColumnSourceReferenceEntry
public ColumnSourceReferenceEntry(int sourceColumnNo, int targetColumnNo, Column sourceColumn, Column targetColumn) Creates an instance of aColumnSourceReferenceEntry
record class.- Parameters:
sourceColumnNo
- the value for thesourceColumnNo
record componenttargetColumnNo
- the value for thetargetColumnNo
record componentsourceColumn
- the value for thesourceColumn
record componenttargetColumn
- the value for thetargetColumn
record component
-
-
Method Details
-
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 '=='. -
sourceColumnNo
public int sourceColumnNo()Returns the value of thesourceColumnNo
record component.- Returns:
- the value of the
sourceColumnNo
record component
-
targetColumnNo
public int targetColumnNo()Returns the value of thetargetColumnNo
record component.- Returns:
- the value of the
targetColumnNo
record component
-
sourceColumn
Returns the value of thesourceColumn
record component.- Returns:
- the value of the
sourceColumn
record component
-
targetColumn
Returns the value of thetargetColumn
record component.- Returns:
- the value of the
targetColumn
record component
-