org.axiondb.engine.commands
Class DropCommand

java.lang.Object
  extended by org.axiondb.engine.commands.BaseAxionCommand
      extended by org.axiondb.engine.commands.DropCommand
All Implemented Interfaces:
AxionCommand
Direct Known Subclasses:
DropDatabaseLinkCommand, DropIndexCommand, DropSequenceCommand, DropTableCommand, DropViewCommand

public abstract class DropCommand
extends BaseAxionCommand

Abstract base class for things like DROP TABLE and DROP SEQUENCE.

Version:
$Revision: 1.1 $ $Date: 2003/08/19 19:08:25 $

Constructor Summary
DropCommand()
           
 
Method Summary
abstract  boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 AxionResultSet executeQuery(Database database)
          Unsupported
 int executeUpdate(Database database)
          Executes an SQL that may add, delete or modify zero or more rows within the database, such as an INSERT, UPDATE or DELETE statement.
 String getObjectName()
           
 boolean isIfExists()
           
 void setIfExists(boolean flag)
           
 void setObjectName(String name)
           
 
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, getBindVariableIterator, getEffectedRowCount, getResultSet, getRowIterator, getRowIterator, getTableForIdentifier, resolveSelectableList, resolveSelectableList, setEffectedRowCount, setResultSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropCommand

public DropCommand()
Method Detail

setIfExists

public void setIfExists(boolean flag)

isIfExists

public boolean isIfExists()

setObjectName

public void setObjectName(String name)

getObjectName

public String getObjectName()

execute

public abstract boolean execute(Database db)
                         throws AxionException
Description copied from interface: AxionCommand
Executes an SQL statement that may return multiple results.

Returns:
true if one or more ResultSets were generated, false otherwise
Throws:
AxionException
See Also:
Statement.execute(java.lang.String), PreparedStatement.execute()

executeQuery

public AxionResultSet executeQuery(Database database)
                            throws AxionException
Unsupported

Returns:
the generated ResultSet
Throws:
AxionException
See Also:
Statement.executeQuery(java.lang.String), PreparedStatement.executeQuery()

executeUpdate

public int executeUpdate(Database database)
                  throws AxionException
Description copied from interface: AxionCommand
Executes an SQL that may add, delete or modify zero or more rows within the database, such as an INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed via this method.

Returns:
the number of rows modified
Throws:
AxionException
See Also:
Statement.executeUpdate(java.lang.String), PreparedStatement.executeUpdate()