org.objectweb.cjdbc.console.text.commands.sqlconsole
Class CallStoredProcedure

java.lang.Object
  extended byorg.objectweb.cjdbc.console.text.commands.ConsoleCommand
      extended byorg.objectweb.cjdbc.console.text.commands.sqlconsole.CallStoredProcedure
All Implemented Interfaces:
java.lang.Comparable

public class CallStoredProcedure
extends ConsoleCommand

This class defines a "timeout" sql command

Author:
Jeff Mesnil

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.console.text.commands.ConsoleCommand
console, jmxClient, module
 
Constructor Summary
CallStoredProcedure(VirtualDatabaseConsole module)
          Creates a new SetTimeout object
 
Method Summary
private  void callStoredProcedure(java.lang.String proc)
          Call a store procedure.
 java.lang.String getCommandDescription()
          Get the description of the command
 java.lang.String getCommandName()
          Get the name of the command
 java.lang.String getCommandParameters()
          Return a String description of the parameters of this command.
 void parse(java.lang.String commandText)
          Parse the text of the command
 
Methods inherited from class org.objectweb.cjdbc.console.text.commands.ConsoleCommand
compareTo, execute, getUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallStoredProcedure

public CallStoredProcedure(VirtualDatabaseConsole module)
Creates a new SetTimeout object

Parameters:
module - the command is attached to
Method Detail

parse

public void parse(java.lang.String commandText)
           throws java.io.IOException,
                  ConsoleException
Description copied from class: ConsoleCommand
Parse the text of the command

Specified by:
parse in class ConsoleCommand
Parameters:
commandText - the command text
Throws:
java.io.IOException
ConsoleException
See Also:
ConsoleCommand.parse(java.lang.String)

getCommandName

public java.lang.String getCommandName()
Description copied from class: ConsoleCommand
Get the name of the command

Specified by:
getCommandName in class ConsoleCommand
Returns:
String of the command name
See Also:
ConsoleCommand.getCommandName()

getCommandParameters

public java.lang.String getCommandParameters()
Description copied from class: ConsoleCommand
Return a String description of the parameters of this command.

Overrides:
getCommandParameters in class ConsoleCommand
Returns:
String like <driverPathName>
See Also:
ConsoleCommand.getCommandParameters()

getCommandDescription

public java.lang.String getCommandDescription()
Description copied from class: ConsoleCommand
Get the description of the command

Specified by:
getCommandDescription in class ConsoleCommand
Returns:
String of the command description
See Also:
ConsoleCommand.getCommandDescription()

callStoredProcedure

private void callStoredProcedure(java.lang.String proc)
Call a store procedure.

Parameters:
proc - the stored procedure to call


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.