com.uwyn.rife.database.queries
Class DropTable

java.lang.Object
  extended by com.uwyn.rife.database.queries.DropTable
All Implemented Interfaces:
Query, Cloneable

public class DropTable
extends Object
implements Cloneable

Object representation of a SQL "DROP TABLE" 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: 3634 $
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
           
 
Constructor Summary
DropTable(Datasource datasource)
           
 
Method Summary
 void clear()
           
protected  void clearGenerated()
           
 DropTable clone()
           
 com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
           
 Datasource getDatasource()
           
 QueryParameters getParameters()
           
 String getSql()
           
 List<String> getTables()
           
 void setExcludeUnsupportedCapabilities(boolean flag)
           
 DropTable table(String table)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mDatasource

protected Datasource mDatasource

mSql

protected String mSql

mExcludeUnsupportedCapabilities

protected boolean mExcludeUnsupportedCapabilities
Constructor Detail

DropTable

public DropTable(Datasource datasource)
Method Detail

getTables

public List<String> getTables()

clear

public void clear()
Specified by:
clear in interface Query

getCapabilities

public com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
Specified by:
getCapabilities in interface Query

getSql

public String getSql()
              throws DbQueryException
Specified by:
getSql in interface Query
Throws:
DbQueryException

table

public DropTable table(String table)

clone

public DropTable clone()

getDatasource

public Datasource getDatasource()

getParameters

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

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.