proper.database
Class Dropper

java.lang.Object
  extended by proper.core.ProperObject
      extended by proper.database.ConnectorObject
          extended by proper.database.ExecutorObject
              extended by proper.database.Dropper
All Implemented Interfaces:
ProperInterface

public class Dropper
extends ExecutorObject

This class is just a convenient way for dropping tables.

Version:
$Revision: 1.2 $
Author:
FracPete

Field Summary
 
Fields inherited from interface proper.core.ProperInterface
VERSION
 
Constructor Summary
Dropper(Connector conn)
          initializes the object
 
Method Summary
 boolean drop(java.lang.String table)
          drops the given table
 boolean drop(Table table)
          drops the given table
 boolean drop(java.util.Vector tables)
          here we drop a bunch of tables, if at least one drop succeeds we return TRUE otherwise FALSE
 boolean dropAll()
          drops all tables in the current database
 
Methods inherited from class proper.database.ExecutorObject
getExecutor, getLastException, getLastStatement
 
Methods inherited from class proper.database.ConnectorObject
getConnector
 
Methods inherited from class proper.core.ProperObject
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dropper

public Dropper(Connector conn)
initializes the object

Method Detail

drop

public boolean drop(java.lang.String table)
drops the given table


drop

public boolean drop(Table table)
drops the given table


drop

public boolean drop(java.util.Vector tables)
here we drop a bunch of tables, if at least one drop succeeds we return TRUE otherwise FALSE


dropAll

public boolean dropAll()
drops all tables in the current database