com.mungoknotwise.sqlcli
Class SqlCli

java.lang.Object
  |
  +--com.mungoknotwise.sqlcli.SqlCli

public class SqlCli
extends java.lang.Object

Main program for the SqlCli command line interface.

Version:
$Id: SqlCli.java,v 1.5 2004/10/19 19:46:06 mungoknotwise Exp $
Author:
Steven Caswell

Constructor Summary
SqlCli()
          Constructs a new instance of SqlCli.
 
Method Summary
static void main(java.lang.String[] args)
          Runs the program with the specified command line arguments.
 boolean parseArguments(java.lang.String[] args)
          Parses the command line arguments.
 void run()
          Runs the program logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlCli

public SqlCli()
Constructs a new instance of SqlCli.

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs the program with the specified command line arguments.

Parameters:
args - the command line arguments
Throws:
java.lang.Exception - if an error occurs

parseArguments

public boolean parseArguments(java.lang.String[] args)
                       throws java.lang.Exception
Parses the command line arguments.

Parameters:
args - the command line arguments
Returns:
true if processing should continue, false otherwise
Throws:
java.lang.Exception - if an error occurs

run

public void run()
         throws java.io.IOException,
                java.sql.SQLException,
                java.lang.ClassNotFoundException
Runs the program logic.

Throws:
java.io.IOException - if an I/O exception occurs
java.sql.SQLException - if an SQL error occurs
java.lang.ClassNotFoundException - if the driver class is not found


Copyright © 2004 Steven Caswell. All Rights Reserved.