com.uwyn.rife.database.queries
Class Delete

java.lang.Object
  extended by com.uwyn.rife.database.queries.AbstractWhereQuery<Delete>
      extended by com.uwyn.rife.database.queries.Delete
All Implemented Interfaces:
Query, Cloneable

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
Version:
$Revision: 3648 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com), Steven Grimm (koreth[remove] at midwinter dot com)

Field Summary
protected  Datasource mDatasource
           
protected  boolean mExcludeUnsupportedCapabilities
           
protected  String mSql
           
 
Fields inherited from class com.uwyn.rife.database.queries.AbstractWhereQuery
mWhere
 
Constructor Summary
Delete(Datasource datasource)
           
 
Method Summary
protected  void _fieldSubselect(Select query)
           
protected  void _tableSubselect(Select query)
           
protected  void _unionSubselect(Select query)
           
protected  void _whereSubselect(Select query)
           
protected  void addFieldParameter(String field)
           
protected  void addWhereParameter(String field)
           
 void addWhereParameters(List<String> parameters)
           
 void addWhereParameters(List<String> parameters)
           
 void clear()
           
protected  void clearGenerated()
           
protected  void clearWhereParameters()
           
 Delete clone()
           
 Delete from(String from)
           
 com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
           
 Datasource getDatasource()
           
 String getFrom()
           
 String getHint()
           
 String getLimitParameter()
           
 String getOffsetParameter()
           
 QueryParameters getParameters()
           
 String getSql()
           
protected  List<String> getWhereParameters()
           
 Delete hint(String hint)
           
protected  boolean isLimitBeforeOffset()
           
 void setExcludeUnsupportedCapabilities(boolean flag)
           
protected  void setLimitParameter(String limitParameter)
           
protected  void setOffsetParameter(String offsetParameter)
           
 String toString()
           
 
Methods inherited from class com.uwyn.rife.database.queries.AbstractWhereQuery
getWhere, startWhere, startWhereAnd, startWhereOr, where, where, where, where, where, where, where, where, where, where, where, where, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereAnd, whereExcluded, whereFiltered, whereIncluded, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereOr, whereParameter, whereParameter, whereParameterAnd, whereParameterAnd, whereParameterOr, whereParameterOr, whereParameters, whereParametersExcluded, whereSubselect
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.uwyn.rife.database.queries.Query
setExcludeUnsupportedCapabilities
 

Field Detail

mDatasource

protected Datasource mDatasource

mSql

protected String mSql

mExcludeUnsupportedCapabilities

protected boolean mExcludeUnsupportedCapabilities
Constructor Detail

Delete

public Delete(Datasource datasource)
Method Detail

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 com.uwyn.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

public 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


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.