Package ch.so.agi.gretl.internal.db2db
Record Class DbTransferRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.db2db.DbTransferRequest
public record DbTransferRequest(String taskName, DatabaseSpec sourceDatabase, DatabaseSpec targetDatabase, List<DbTransferSpec> transfers, List<Map<String,String>> parameterSets, int batchSize, int fetchSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDbTransferRequest(String taskName, DatabaseSpec sourceDatabase, DatabaseSpec targetDatabase, List<DbTransferSpec> transfers, List<Map<String, String>> parameterSets, int batchSize, int fetchSize) Creates an instance of aDbTransferRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefetchSizerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterSetsrecord component.Returns the value of thesourceDatabaserecord component.Returns the value of thetargetDatabaserecord component.taskName()Returns the value of thetaskNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransfersrecord component.
-
Constructor Details
-
DbTransferRequest
public DbTransferRequest(String taskName, DatabaseSpec sourceDatabase, DatabaseSpec targetDatabase, List<DbTransferSpec> transfers, List<Map<String, String>> parameterSets, int batchSize, int fetchSize) Creates an instance of aDbTransferRequestrecord class.- Parameters:
taskName- the value for thetaskNamerecord componentsourceDatabase- the value for thesourceDatabaserecord componenttargetDatabase- the value for thetargetDatabaserecord componenttransfers- the value for thetransfersrecord componentparameterSets- the value for theparameterSetsrecord componentbatchSize- the value for thebatchSizerecord componentfetchSize- the value for thefetchSizerecord 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 '=='. -
taskName
Returns the value of thetaskNamerecord component.- Returns:
- the value of the
taskNamerecord component
-
sourceDatabase
Returns the value of thesourceDatabaserecord component.- Returns:
- the value of the
sourceDatabaserecord component
-
targetDatabase
Returns the value of thetargetDatabaserecord component.- Returns:
- the value of the
targetDatabaserecord component
-
transfers
Returns the value of thetransfersrecord component.- Returns:
- the value of the
transfersrecord component
-
parameterSets
Returns the value of theparameterSetsrecord component.- Returns:
- the value of the
parameterSetsrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
fetchSize
public int fetchSize()Returns the value of thefetchSizerecord component.- Returns:
- the value of the
fetchSizerecord component
-