Interface Param

All Superinterfaces:
org.cactoos.Text
All Known Implementing Classes:
BoolOf, DateOf, DateTimeOf, DecimalOf, DoubleOf, IntOf, LongOf, TextOf, UndefinedOf, UuidAsBytes, UuidOf

public interface Param extends org.cactoos.Text
A named data.

There is no thread-safety guarantee.

Since:
0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the data name.
    void
    prepare(PreparedStatement stmt, int index)
    Set the PreparedStatement with data.

    Methods inherited from interface org.cactoos.Text

    asString
  • Method Details

    • name

      String name()
      Get the data name.
      Returns:
      The name
    • prepare

      void prepare(PreparedStatement stmt, int index) throws Exception
      Set the PreparedStatement with data.
      Parameters:
      stmt - The PreparedStatement
      index - The position of the parameter in the PreparedStatement
      Throws:
      Exception - If fails