Class Update

All Implemented Interfaces:
Closeable, AutoCloseable, Configurable<Update>

public class Update extends SqlStatement<Update>
Used for INSERT, UPDATE, and DELETE statements
  • Constructor Details

  • Method Details

    • one

      public void one()
    • execute

      public int execute()
      Executes the statement, returning the update count.
      the number of rows modified
    • execute

      public <R> R execute(ResultProducer<R> producer)
      Executes the update, returning the result obtained from the given ResultProducer.
      Type Parameters:
      R - the result type
      producer - the result producer.
      value returned by the result producer.
    • executeAndReturnGeneratedKeys

      public ResultBearing executeAndReturnGeneratedKeys(String... generatedKeyColumnNames)
      Execute the statement and returns any auto-generated keys. This requires the JDBC driver to support the Statement.getGeneratedKeys() method.
      generatedKeyColumnNames - optional list of generated key column names.
      ResultBearing of generated keys
    • getHandle

      public Handle getHandle()
    • getConfig

      public ConfigRegistry getConfig()
      Description copied from interface: Configurable
      Returns the configuration registry associated with this object.
      Specified by:
      getConfig in interface Configurable<This>
      the configuration registry associated with this object.
    • getContext

      public final StatementContext getContext()
      the statement context associated with this statement
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable