Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.text.commands.controller.DropDB Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.text.commands.controller.DropDB:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.text.commands.controller.DropDB:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getCommandParameters ()
 DropDB (AbstractConsoleModule module)
void parse (String commandText) throws Exception
String getCommandName ()
String getCommandDescription ()

Detailed Description

Drop a virtual database from a controller command

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 38 of file DropDB.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.text.commands.controller.DropDB.DropDB AbstractConsoleModule  module  ) 
 

Creates a new Load.java object

Parameters:
module the command is attached to

Definition at line 54 of file DropDB.java.

00055   {
00056     super(module);
00057   }


Member Function Documentation

String org.objectweb.cjdbc.console.text.commands.controller.DropDB.getCommandDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandDescription()

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   }

String org.objectweb.cjdbc.console.text.commands.controller.DropDB.getCommandName  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandName()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 82 of file DropDB.java.

00083   {
00084     return "dropDB";
00085   }

String org.objectweb.cjdbc.console.text.commands.controller.DropDB.getCommandParameters  ) 
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandParameters()

Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 44 of file DropDB.java.

00045   {
00046     return "<databaseName>";
00047   }

void org.objectweb.cjdbc.console.text.commands.controller.DropDB.parse String  commandText  )  throws Exception [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.parse(java.lang.String)

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   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:46 2005 for C-JDBC by  doxygen 1.3.9.1