Package ch.so.agi.gretl.internal.db2db
Record Class DbTransferSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.db2db.DbTransferSpec
public record DbTransferSpec(Path sqlFile, TargetIdentifier targetTable, boolean deleteAllRows, Map<String,GeometryTransform> geometryColumns)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDbTransferSpec(Path sqlFile, TargetIdentifier targetTable, boolean deleteAllRows, Map<String, GeometryTransform> geometryColumns) Creates an instance of aDbTransferSpecrecord class.DbTransferSpec(Path sqlFile, String targetTable, boolean deleteAllRows, List<String> geometryColumnDefinitions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedeleteAllRowsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeometryColumnsrecord component.final inthashCode()Returns a hash code value for this object.booleanisGeometryColumn(String columnName) sqlFile()Returns the value of thesqlFilerecord component.Returns the value of thetargetTablerecord component.final StringtoString()Returns a string representation of this record class.valueExpression(String columnName)
-
Constructor Details
-
DbTransferSpec
-
DbTransferSpec
public DbTransferSpec(Path sqlFile, TargetIdentifier targetTable, boolean deleteAllRows, Map<String, GeometryTransform> geometryColumns) Creates an instance of aDbTransferSpecrecord class.- Parameters:
sqlFile- the value for thesqlFilerecord componenttargetTable- the value for thetargetTablerecord componentdeleteAllRows- the value for thedeleteAllRowsrecord componentgeometryColumns- the value for thegeometryColumnsrecord component
-
-
Method Details
-
isGeometryColumn
-
valueExpression
-
inputSignature
-
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 '=='. -
sqlFile
Returns the value of thesqlFilerecord component.- Returns:
- the value of the
sqlFilerecord component
-
targetTable
Returns the value of thetargetTablerecord component.- Returns:
- the value of the
targetTablerecord component
-
deleteAllRows
public boolean deleteAllRows()Returns the value of thedeleteAllRowsrecord component.- Returns:
- the value of the
deleteAllRowsrecord component
-
geometryColumns
Returns the value of thegeometryColumnsrecord component.- Returns:
- the value of the
geometryColumnsrecord component
-