Interface StatementBuilder

All Known Implementing Classes:
AbstractConditionalStatementBuilder, AbstractStatementBuilder, DeleteBuilder, NoOpStatementBuilder

public sealed interface StatementBuilder permits AbstractStatementBuilder, NoOpStatementBuilder
Interface for building SQL execution/update statements.
  • Method Details

    • node

      QueryNode node()
      Returns the current query node.
      Returns:
      the query node
    • addSetNode

      void addSetNode(Column column, @Nullable Object value, boolean bindValue)
      Adds a set node to the statement.
      Parameters:
      column - the column to set
      value - the value to set
      bindValue - whether to bind the value as a parameter
    • statementChain

      StatementChain statementChain()
      Returns the chain of statements built so far.
      Returns:
      The statement chain.
    • createUpdateMetaData

      UpdateMetaData createUpdateMetaData()
      Creates the update metadata for the statement.
      Returns:
      the update metadata
    • build

      Builds the final SQL statement.
      Returns:
      The built statement.