Class Delete

All Implemented Interfaces:
Cloneable, Query

public class Delete extends AbstractWhereQuery<Delete> implements Cloneable
Object representation of a SQL "DELETE" query.

This object may be used to dynamically construct a SQL statement in a database-independent fashion. After it is finished, it may be executed using DbQueryManager.executeUpdate().

Since:
1.0
  • Field Details

    • datasource_

      protected Datasource datasource_
    • sql_

      protected String sql_
    • excludeUnsupportedCapabilities_

      protected boolean excludeUnsupportedCapabilities_
  • Constructor Details

  • Method Details

    • getHint

      public String getHint()
    • clear

      public void clear()
      Specified by:
      clear in interface Query
      Overrides:
      clear in class AbstractWhereQuery<Delete>
    • getFrom

      public String getFrom()
    • getCapabilities

      public rife.database.capabilities.Capabilities getCapabilities()
      Specified by:
      getCapabilities in interface Query
    • getSql

      public String getSql()
      Specified by:
      getSql in interface Query
    • hint

      public Delete hint(String hint)
    • from

      public Delete from(String from)
    • clone

      public Delete clone()
      Overrides:
      clone in class AbstractWhereQuery<Delete>
    • addWhereParameters

      void addWhereParameters(List<String> parameters)
    • _fieldSubselect

      protected void _fieldSubselect(Select query)
    • _tableSubselect

      protected void _tableSubselect(Select query)
    • _whereSubselect

      protected void _whereSubselect(Select query)
    • _unionSubselect

      protected void _unionSubselect(Select query)
    • getParameters

      public QueryParameters getParameters()
      Specified by:
      getParameters in interface Query
    • addFieldParameter

      protected void addFieldParameter(String field)
    • clearWhereParameters

      protected void clearWhereParameters()
    • addWhereParameter

      protected void addWhereParameter(String field)
    • getWhereParameters

      protected List<String> getWhereParameters()
    • addWhereParameters

      public void addWhereParameters(List<String> parameters)
    • setLimitParameter

      protected void setLimitParameter(String limitParameter)
    • getLimitParameter

      public String getLimitParameter()
    • setOffsetParameter

      protected void setOffsetParameter(String offsetParameter)
    • getOffsetParameter

      public String getOffsetParameter()
    • isLimitBeforeOffset

      protected boolean isLimitBeforeOffset()
    • getDatasource

      public Datasource getDatasource()
    • setExcludeUnsupportedCapabilities

      public void setExcludeUnsupportedCapabilities(boolean flag)
      Specified by:
      setExcludeUnsupportedCapabilities in interface Query
    • clearGenerated

      protected void clearGenerated()
    • toString

      public String toString()
      Overrides:
      toString in class Object