Record Class StandardQueryStatementRequest
java.lang.Object
java.lang.Record
org.apache.nifi.database.dialect.service.api.StandardQueryStatementRequest
- Record Components:
statementType- SQL Statement TypetableDefinition- Database Table DefinitionderivedTable- Derived Table Query or empty when not definedwhereClause- SQL WHERE clause or empty when not definedorderByClause- SQL ORDER BY clause or empty when not definedpageRequest- Page Request can be empty
- All Implemented Interfaces:
QueryStatementRequest,StatementRequest
public record StandardQueryStatementRequest(StatementType statementType, TableDefinition tableDefinition, Optional<String> derivedTable, Optional<String> whereClause, Optional<String> orderByClause, Optional<PageRequest> pageRequest)
extends Record
implements QueryStatementRequest
Standard implementation of Query Statement Request with required properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thederivedTablerecord component.The field for theorderByClauserecord component.private final Optional<PageRequest> The field for thepageRequestrecord component.private final StatementTypeThe field for thestatementTyperecord component.private final TableDefinitionThe field for thetableDefinitionrecord component.The field for thewhereClauserecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStandardQueryStatementRequest(StatementType statementType, TableDefinition tableDefinition) Standard Query Statement Request without additional clausesStandardQueryStatementRequest(StatementType statementType, TableDefinition tableDefinition, Optional<String> derivedTable, Optional<String> whereClause, Optional<String> orderByClause, Optional<PageRequest> pageRequest) Creates an instance of aStandardQueryStatementRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thederivedTablerecord 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 theorderByClauserecord component.Returns the value of thepageRequestrecord component.Returns the value of thestatementTyperecord component.Returns the value of thetableDefinitionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhereClauserecord component.
-
Field Details
-
statementType
The field for thestatementTyperecord component. -
tableDefinition
The field for thetableDefinitionrecord component. -
derivedTable
The field for thederivedTablerecord component. -
whereClause
The field for thewhereClauserecord component. -
orderByClause
The field for theorderByClauserecord component. -
pageRequest
The field for thepageRequestrecord component.
-
-
Constructor Details
-
StandardQueryStatementRequest
Standard Query Statement Request without additional clauses- Parameters:
statementType- Statement TypetableDefinition- Database Table Definition
-
StandardQueryStatementRequest
public StandardQueryStatementRequest(StatementType statementType, TableDefinition tableDefinition, Optional<String> derivedTable, Optional<String> whereClause, Optional<String> orderByClause, Optional<PageRequest> pageRequest) Creates an instance of aStandardQueryStatementRequestrecord class.- Parameters:
statementType- the value for thestatementTyperecord componenttableDefinition- the value for thetableDefinitionrecord componentderivedTable- the value for thederivedTablerecord componentwhereClause- the value for thewhereClauserecord componentorderByClause- the value for theorderByClauserecord componentpageRequest- the value for thepageRequestrecord 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
-
derivedTable
Returns the value of thederivedTablerecord component.- Specified by:
derivedTablein interfaceQueryStatementRequest- Returns:
- the value of the
derivedTablerecord component
-
whereClause
Returns the value of thewhereClauserecord component.- Specified by:
whereClausein interfaceQueryStatementRequest- Returns:
- the value of the
whereClauserecord component
-
orderByClause
Returns the value of theorderByClauserecord component.- Specified by:
orderByClausein interfaceQueryStatementRequest- Returns:
- the value of the
orderByClauserecord component
-
pageRequest
Returns the value of thepageRequestrecord component.- Specified by:
pageRequestin interfaceQueryStatementRequest- Returns:
- the value of the
pageRequestrecord component
-