Interface PreparableStatement

All Superinterfaces:
Sql
All Known Implementing Classes:
DeleteStatement, InsertBatchStatement, InsertStatement, SelectStatement, TruncateStatement, UpdateStatement

public interface PreparableStatement extends Sql
Defines a statement that can be formatted as SQL.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the column aliases referenced by this fragment.
    default Stream<Column>
    Gets the columns referenced by this fragment.
    default String
    toString(Dialect dialect)
    Gets the SQL of specified dialect for this statement.

    Methods inherited from interface io.github.torand.fastersql.sql.Sql

    params, sql
  • Method Details

    • columnRefs

      default Stream<Column> columnRefs()
      Description copied from interface: Sql
      Gets the columns referenced by this fragment. For validation purposes.
      Specified by:
      columnRefs in interface Sql
      Returns:
      the columns referenced by this fragment.
    • aliasRefs

      default Stream<ColumnAlias> aliasRefs()
      Description copied from interface: Sql
      Gets the column aliases referenced by this fragment. For validation purposes.
      Specified by:
      aliasRefs in interface Sql
      Returns:
      the column aliases referenced by this fragment.
    • toString

      default String toString(Dialect dialect)
      Gets the SQL of specified dialect for this statement.
      Parameters:
      dialect - the SQL dialect.
      Returns:
      the SQL statement.