com.uwyn.rife.database.queries
Class DropSequence

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

public class DropSequence
extends Object
implements Cloneable

Object representation of a SQL "DROP SEQUENCE" 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
DropSequence(Datasource datasource)
           
 
Method Summary
 void clear()
           
protected  void clearGenerated()
           
 DropSequence clone()
           
 com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
           
 Datasource getDatasource()
           
 String getName()
           
 QueryParameters getParameters()
           
 String getSql()
           
 DropSequence name(String name)
           
 void setExcludeUnsupportedCapabilities(boolean flag)
           
 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

DropSequence

public DropSequence(Datasource datasource)
Method Detail

clear

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

getName

public String getName()

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

name

public DropSequence name(String name)

clone

public DropSequence 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.