- All Known Implementing Classes:
AbstractConditionalStatementBuilder,AbstractStatementBuilder,DeleteBuilder,ManualUpsert,NoOpStatementBuilder
public sealed interface StatementBuilder
permits AbstractStatementBuilder, ManualUpsert, NoOpStatementBuilder
Interface for building SQL execution/update statements.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the final SQL statement.default booleandefault voidcombineWith(List<StatementBuilder> statementBuilders) createUpdateMetaData(PreparedOperation preparedOperation) Creates the update metadata for the statement.dto()node()Returns the current query node.intnodeHash()Returns a cached copy of the AST node hash.Returns the expectedResulttype produced when executing the built statement.voidSets a field value on the statement.Returns the chain of statements built so far.
-
Method Details
-
dto
Object dto() -
node
QueryNode node()Returns the current query node.- Returns:
- the query node
-
nodeHash
int nodeHash()Returns a cached copy of the AST node hash.- Returns:
- the cached AST node hash
-
statementChain
StatementChain statementChain()Returns the chain of statements built so far.- Returns:
- The statement chain.
-
createUpdateMetaData
Creates the update metadata for the statement.- Parameters:
preparedOperation- the prepared database operation- Returns:
- the update metadata
-
setField
Sets a field value on the statement.- Parameters:
fieldName- the name of the field to setvalue- the value to set
-
build
PreparedOperation build()Builds the final SQL statement.- Returns:
- The built statement.
-
resultType
Returns the expectedResulttype produced when executing the built statement.- Returns:
- the expected result class
-
combinable
default boolean combinable() -
combineWith
-