Class InsertWithKey<T>

java.lang.Object
com.github.fabriciofx.cactoos.jdbc.statement.InsertWithKey<T>
Type Parameters:
T - Type of the key
All Implemented Interfaces:
Statement<T>

public final class InsertWithKey<T> extends Object implements Statement<T>
StatementInsert with keys.
Since:
0.1
  • Constructor Details

    • InsertWithKey

      public InsertWithKey(Session sssn, Query qry)
      Ctor.
      Parameters:
      sssn - A Session
      qry - A SQL query
  • Method Details

    • result

      public T result() throws Exception
      Description copied from interface: Statement
      Execute it and returns a single or set of data(s).
      Specified by:
      result in interface Statement<T>
      Returns:
      A Result of a type
      Throws:
      Exception - If fails