Interface Statement


public interface Statement

A statement for executing static SQL operations.

A statement doesn't protect against SQL injection, in which case PreparedStatement should be prefered.

Since:
1.2
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    and(String sql)
    Adds the specified SQL to the statement.
    Executes the statement.
  • Method Details

    • and

      Statement and(String sql)

      Adds the specified SQL to the statement.

      Parameters:
      sql - the static SQL to add
      Returns:
      this statement
    • execute

      Publisher<SqlResult> execute()

      Executes the statement.

      Returns:
      a publisher of results