Public Member Functions | |
String | getCommandParameters () |
DropDB (AbstractConsoleModule module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
Definition at line 38 of file DropDB.java.
|
Creates a new
Definition at line 54 of file DropDB.java. 00055 { 00056 super(module); 00057 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 90 of file DropDB.java. 00091 { 00092 return ConsoleTranslate.get("controller.command.drop.database"); 00093 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 82 of file DropDB.java. 00083 { 00084 return "dropDB"; 00085 }
|
|
Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 44 of file DropDB.java. 00045 { 00046 return "<databaseName>"; 00047 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 62 of file DropDB.java. References org.objectweb.cjdbc.console.jmx.RmiJmxClient.getControllerProxy(), and org.objectweb.cjdbc.console.text.Console.println(). 00063 { 00064 String database = commandText.trim(); 00065 if (database == null || database.equals("")) 00066 throw new ConsoleException(ConsoleTranslate 00067 .get("controller.command.drop.database.null")); 00068 00069 console.println(ConsoleTranslate.get("controller.command.drop.database.echo", 00070 database)); 00071 00072 // Send it to the controller 00073 jmxClient.getControllerProxy().removeVirtualDatabase(database); 00074 00075 console.println(ConsoleTranslate.get("controller.command.drop.database.success", 00076 database)); 00077 }
|