org.webdocwf.util.loader.test
Class DropDatabaseOperation

java.lang.Object
  |
  +--org.webdocwf.util.loader.test.DatabaseOperation
        |
        +--org.webdocwf.util.loader.test.DropDatabaseOperation

public class DropDatabaseOperation
extends DatabaseOperation

Deletes entire database using sql command (DROP DATABASE) or specified loader job.

Version:
$Revision: 1.2 $
Author:
Sinisa Milosevic

Field Summary
 
Fields inherited from class org.webdocwf.util.loader.test.DatabaseOperation
CREATE, DO_NOTHING, DROP, LOADER, NONE
 
Constructor Summary
DropDatabaseOperation(java.lang.String name)
           
 
Method Summary
 void execute(java.sql.Connection conn)
          Executes this operation on the specified database using the specified connection to the database.
 java.lang.String getDatabaseOperationType()
          Returns type of database operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDatabaseOperation

public DropDatabaseOperation(java.lang.String name)
Method Detail

execute

public void execute(java.sql.Connection conn)
             throws java.sql.SQLException
Executes this operation on the specified database using the specified connection to the database.

Specified by:
execute in class DatabaseOperation
Parameters:
conn - the database connection.
java.sql.SQLException

getDatabaseOperationType

public java.lang.String getDatabaseOperationType()
Returns type of database operation

Specified by:
getDatabaseOperationType in class DatabaseOperation


Copyright © 2002-2003 Together - the Workgroup. All Rights Reserved.