Class DbStatementParameters

java.lang.Object
io.helidon.dbclient.DbStatementParameters
Direct Known Subclasses:
DbIndexedStatementParameters, DbNamedStatementParameters

public class DbStatementParameters extends Object
Statement parameters.
  • Field Details

    • UNDEFINED

      public static final DbStatementParameters UNDEFINED
      Undefined parameters (neither named or indexed).
  • Method Details

    • addParam

      public DbStatementParameters addParam(Object parameter)
      Add next parameter to the list of ordered parameters (e.g. the ones that use ? in SQL).
      Parameters:
      parameter - next parameter to set on this statement
      Returns:
      updated db statement
    • addParam

      public DbStatementParameters addParam(String name, Object parameter)
      Add next parameter to the map of named parameters (e.g. the ones that use :name in Helidon JDBC SQL integration).
      Parameters:
      name - name of parameter
      parameter - value of parameter
      Returns:
      updated db statement