com.uwyn.rife.database.queries
Class CreateSequence

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

public class CreateSequence
extends Object
implements Cloneable

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

CreateSequence

public CreateSequence(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 CreateSequence name(String name)

clone

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