Class UpdateBuilder


  • public class UpdateBuilder
    extends java.lang.Object
    SQL UPDATE request builder.
    This class should be instanciated through SQL static method.
    Since:
    0.5
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SQLQuery build()
      Build SQL query
      UpdateBuilder field​(java.lang.String column, java.lang.Object value)
      Add field to update.
      Value will be added as prepared statement value (with '?'
      UpdateBuilder where​(ClausesBuilder clauses)
      Add 'WHERE' and clauses
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpdateBuilder

        public UpdateBuilder​(java.lang.String table)
        UpdateBuilder constructor
        Parameters:
        table - the table to update
    • Method Detail

      • field

        public UpdateBuilder field​(java.lang.String column,
                                   java.lang.Object value)
        Add field to update.
        Value will be added as prepared statement value (with '?' wildcard).
        Parameters:
        column - the column
        value - the value
        Returns:
        this
      • build

        public SQLQuery build()
        Build SQL query
        Returns:
        the query and its prepared statement values