avignon.handlers.database
Class DatabaseDeleteCommand

java.lang.Object
  extended byavignon.handlers.database.DatabaseTableCommand
      extended byavignon.handlers.database.DatabaseDeleteCommand
All Implemented Interfaces:
DatabaseCommand

public class DatabaseDeleteCommand
extends DatabaseTableCommand

A database command that can be used to delete the contents of a table.


Constructor Summary
DatabaseDeleteCommand(java.lang.String tableName)
          Creates a command that will delete the entire contents of a table when executed.
DatabaseDeleteCommand(java.lang.String tableName, java.lang.String whereCondition)
          Creates a command that will delete selected rows from a table when executed.
 
Method Summary
 boolean equals(java.lang.Object value)
           
 void execute(java.sql.Connection database)
          Executes a delete statement on the given database.
 java.lang.String toString()
           
 
Methods inherited from class avignon.handlers.database.DatabaseTableCommand
getTableName, setTableName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseDeleteCommand

public DatabaseDeleteCommand(java.lang.String tableName)
Creates a command that will delete the entire contents of a table when executed.

Parameters:
tableName -

DatabaseDeleteCommand

public DatabaseDeleteCommand(java.lang.String tableName,
                             java.lang.String whereCondition)
Creates a command that will delete selected rows from a table when executed.

Parameters:
tableName -
whereCondition -
Method Detail

execute

public void execute(java.sql.Connection database)
             throws java.sql.SQLException
Executes a delete statement on the given database.

Parameters:
database -
Throws:
java.sql.SQLException

equals

public boolean equals(java.lang.Object value)

toString

public java.lang.String toString()

SourceForge.net Logo