Package ch.so.agi.gretl.internal.sql
Record Class SqlExecutionRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.sql.SqlExecutionRequest
-
Constructor Summary
ConstructorsConstructorDescriptionSqlExecutionRequest(String taskName, DatabaseSpec database, List<Path> sqlFiles, List<Map<String, String>> parameterSets) Creates an instance of aSqlExecutionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterSetsrecord component.sqlFiles()Returns the value of thesqlFilesrecord component.taskName()Returns the value of thetaskNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlExecutionRequest
public SqlExecutionRequest(String taskName, DatabaseSpec database, List<Path> sqlFiles, List<Map<String, String>> parameterSets) Creates an instance of aSqlExecutionRequestrecord class.- Parameters:
taskName- the value for thetaskNamerecord componentdatabase- the value for thedatabaserecord componentsqlFiles- the value for thesqlFilesrecord componentparameterSets- the value for theparameterSetsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
taskName
Returns the value of thetaskNamerecord component.- Returns:
- the value of the
taskNamerecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
sqlFiles
Returns the value of thesqlFilesrecord component.- Returns:
- the value of the
sqlFilesrecord component
-
parameterSets
Returns the value of theparameterSetsrecord component.- Returns:
- the value of the
parameterSetsrecord component
-