All Implemented Interfaces:
ISqlBuilder, ISqlKeywords

public class UpdateBuilder extends AbstractQuerySqlBuilder
The Update Builder.
  • Constructor Details

    • UpdateBuilder

      public UpdateBuilder(ISqlDialect dialect)
      Instantiates a new update builder.
      Parameters:
      dialect - the dialect
  • Method Details

    • table

      public UpdateBuilder table(String table)
      Table.
      Parameters:
      table - the table
      Returns:
      the update builder
    • set

      public UpdateBuilder set(String column, String value)
      Sets the.
      Parameters:
      column - the column
      value - the value
      Returns:
      the update builder
    • where

      public UpdateBuilder where(String condition)
      Where.
      Parameters:
      condition - the condition
      Returns:
      the update builder
    • generate

      public String generate()
      Generate.
      Returns:
      the string
    • generateTable

      protected void generateTable(StringBuilder sql)
      Generate table.
      Parameters:
      sql - the sql
    • generateSetValues

      protected void generateSetValues(StringBuilder sql)
      Generate set values.
      Parameters:
      sql - the sql
    • generateUpdate

      protected void generateUpdate(StringBuilder sql)
      Generate update.
      Parameters:
      sql - the sql
    • getTable

      public String getTable()
      Gets the table.
      Returns:
      the table
    • getValues

      public Map<String,String> getValues()
      Gets the values.
      Returns:
      the values
    • getWheres

      public List<String> getWheres()
      Gets the wheres.
      Returns:
      the wheres