|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.sql.SQLDropDatabase
This activity drops a relational database. This activity has no inputs and one output. The output is specific to the data resource's DMBS.
| Constructor Summary | |
SQLDropDatabase(java.lang.String databaseName)
Constructs an SQL drop database activity that will drop the specified database |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
int |
getCount()
Gets the count returned by DBMS from the DROP DATABASE statement. |
java.lang.String |
getDatabaseName()
Gets the name of the database to be dropped. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLDropDatabase(java.lang.String databaseName)
databaseName - Name of database to be dropped| Method Detail |
public java.lang.String getDatabaseName()
public int getCount()
throws ActivityOutputException,
DataFormatException
What this value represents is dependent on the DBMS used by the data resource.
In MySQL this value is number of files that were removed from the database directory. Normally, this is three times the number of tables.
ActivityOutputException - When the activity output has no data.
DataFormatException - If the activity output is not in 'update count' format. This
may occur with DBMSs that do not return a numerical value from
a DROP DATABASE statementpublic ActivityOutput getOutput()
This result may differ depending on the DBMS.
For the MySQL DBMS the result is the number of files that were removed from the database directory. Normally, this is three times the number of tables.
protected java.lang.String generateXML()
RequestComponent
generateXML in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||