Record Class StandardStatementRequest
java.lang.Object
java.lang.Record
org.apache.nifi.database.dialect.service.api.StandardStatementRequest
- Record Components:
statementType- SQL Statement TypetableDefinition- Database Table Definition
- All Implemented Interfaces:
StatementRequest
public record StandardStatementRequest(StatementType statementType, TableDefinition tableDefinition)
extends Record
implements StatementRequest
Standard implementation of Statement Request with required properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StatementTypeThe field for thestatementTyperecord component.private final TableDefinitionThe field for thetableDefinitionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStandardStatementRequest(StatementType statementType, TableDefinition tableDefinition) Creates an instance of aStandardStatementRequestrecord 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 thestatementTyperecord component.Returns the value of thetableDefinitionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
statementType
The field for thestatementTyperecord component. -
tableDefinition
The field for thetableDefinitionrecord component.
-
-
Constructor Details
-
StandardStatementRequest
Creates an instance of aStandardStatementRequestrecord class.- Parameters:
statementType- the value for thestatementTyperecord componenttableDefinition- the value for thetableDefinitionrecord 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). -
statementType
Returns the value of thestatementTyperecord component.- Specified by:
statementTypein interfaceStatementRequest- Returns:
- the value of the
statementTyperecord component
-
tableDefinition
Returns the value of thetableDefinitionrecord component.- Specified by:
tableDefinitionin interfaceStatementRequest- Returns:
- the value of the
tableDefinitionrecord component
-