1 24 25 package org.objectweb.cjdbc.console.text.commands.controller; 26 27 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 28 import org.objectweb.cjdbc.console.text.commands.ConsoleCommand; 29 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 30 31 37 public class Connect extends ConsoleCommand 38 { 39 44 public Connect(AbstractConsoleModule module) 45 { 46 super(module); 47 } 48 49 52 public void parse(String commandText) throws Exception 53 { 54 if (commandText == null) 55 commandText = ""; 56 console.getConsoleModule().login(new String []{commandText.trim()}); 57 console.getConsoleModule().handlePrompt(); 58 } 59 60 63 public String getCommandName() 64 { 65 return "sql client"; 66 } 67 68 71 public String getCommandParameters() 72 { 73 return ConsoleTranslate.get("controller.command.connect.params"); 74 } 75 76 79 public String getCommandDescription() 80 { 81 return ConsoleTranslate.get("controller.command.connect.description"); 82 } 83 84 } 85 | Popular Tags |