Interface Query

All Superinterfaces:
org.cactoos.Text
All Known Implementing Classes:
BatchOf, Counted, MaxRows, Paginated, QueryOf, Timeout, WithKey

public interface Query extends org.cactoos.Text
Query.

There is no thread-safety guarantee.

Since:
0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a named query string.
    Return the Query params.
    prepared(Connection connection)
    Create a PreparedStatement.

    Methods inherited from interface org.cactoos.Text

    asString
  • Method Details

    • prepared

      PreparedStatement prepared(Connection connection) throws Exception
      Create a PreparedStatement.
      Parameters:
      connection - A connection to the DataSource
      Returns:
      A PreparedStatement
      Throws:
      Exception - If fails
    • params

      Params params()
      Return the Query params.
      Returns:
      The query parameters
    • named

      String named()
      Return a named query string.
      Returns:
      A named query string