java.lang.Object
com.github.fabriciofx.cactoos.jdbc.param.BoolOf
All Implemented Interfaces:
Param, org.cactoos.Text

public final class BoolOf extends Object implements Param
Boolean param.
Since:
0.2
  • Constructor Details

    • BoolOf

      public BoolOf(String name, Boolean value)
      Ctor.
      Parameters:
      name - The id
      value - The data
  • Method Details

    • name

      public String name()
      Description copied from interface: Param
      Get the data name.
      Specified by:
      name in interface Param
      Returns:
      The name
    • prepare

      public void prepare(PreparedStatement stmt, int index) throws Exception
      Description copied from interface: Param
      Set the PreparedStatement with data.
      Specified by:
      prepare in interface Param
      Parameters:
      stmt - The PreparedStatement
      index - The position of the parameter in the PreparedStatement
      Throws:
      Exception - If fails
    • asString

      public String asString() throws Exception
      Specified by:
      asString in interface org.cactoos.Text
      Throws:
      Exception