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 aColumnSourceReferenceEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceColumnrecord component.intReturns the value of thesourceColumnNorecord component.Returns the value of thetargetColumnrecord component.intReturns the value of thetargetColumnNorecord component.final StringtoString()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 aColumnSourceReferenceEntryrecord class.- Parameters:
sourceColumnNo- the value for thesourceColumnNorecord componenttargetColumnNo- the value for thetargetColumnNorecord componentsourceColumn- the value for thesourceColumnrecord componenttargetColumn- the value for thetargetColumnrecord 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 thesourceColumnNorecord component.- Returns:
- the value of the
sourceColumnNorecord component
-
targetColumnNo
public int targetColumnNo()Returns the value of thetargetColumnNorecord component.- Returns:
- the value of the
targetColumnNorecord component
-
sourceColumn
Returns the value of thesourceColumnrecord component.- Returns:
- the value of the
sourceColumnrecord component
-
targetColumn
Returns the value of thetargetColumnrecord component.- Returns:
- the value of the
targetColumnrecord component
-