avignon.handlers.database
Class DatabaseDeleteCommand
java.lang.Object
avignon.handlers.database.DatabaseTableCommand
avignon.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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 -
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()