Record Class StandardStatementResponse
java.lang.Object
java.lang.Record
org.apache.nifi.database.dialect.service.api.StandardStatementResponse
- Record Components:
sql- SQL Statement
- All Implemented Interfaces:
StatementResponse
Standard implementation of Statement Response with required properties
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aStandardStatementResponserecord 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.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sql
The field for thesqlrecord component.
-
-
Constructor Details
-
StandardStatementResponse
Creates an instance of aStandardStatementResponserecord class.- Parameters:
sql- the value for thesqlrecord 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). -
sql
Returns the value of thesqlrecord component.- Specified by:
sqlin interfaceStatementResponse- Returns:
- the value of the
sqlrecord component
-