All Implemented Interfaces:
ISqlBuilder, ISqlKeywords

public class DeleteBuilder extends AbstractQuerySqlBuilder
The Delete Builder.
  • Constructor Details

    • DeleteBuilder

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

    • from

      public DeleteBuilder from(String table)
      From.
      Parameters:
      table - the table
      Returns:
      the delete builder
    • where

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

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

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

      protected void generateDelete(StringBuilder sql)
      Generate delete.
      Parameters:
      sql - the sql
    • getTable

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

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