util
Class SQLConsole

java.lang.Object
  |
  +--util.SQLConsole

public class SQLConsole
extends Object

SQLConsole.java -- An application which can be used to send SQL commands to a database -- any database. Fun fun fun!


Constructor Summary
SQLConsole(ManagedConnection mc)
           
 
Method Summary
static void main(String[] args)
          Run the console.
 void printResponse(String sql)
           
 void run(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLConsole

public SQLConsole(ManagedConnection mc)
Method Detail

printResponse

public void printResponse(String sql)

run

public void run(InputStream is)

main

public static void main(String[] args)
Run the console. With no arguments, it connects to the default database on e21. With one argument, it assumes a local ODBC database with the given name, or, if it starts with jdbc:, uses that as the connect string. With two arguments, it assumes a MySQL connection, with the given hostname and database name.