wt.epm.query
Class QueryTerminal

java.lang.Object
  extended bywt.epm.query.QueryTerminal

public class QueryTerminal
extends Object


Field Summary
private  boolean logging
           
private static int MAX_OUTPUT_LINE_LENGTH
           
private  BufferedReader reader
           
private  BufferedReader stdReader
           
 
Constructor Summary
QueryTerminal()
           
 
Method Summary
 void execute()
           
private  void log(String message)
           
 void login()
           
protected static void login(String username, String password)
           
static void main(String[] args)
           
protected static void print(QueryResult qr)
           
 void processCommandLine(String[] args)
           
private  void processFile(String cmd)
           
private  String readLine()
           
private  Object runOnServer(String method, Object[] args)
           
private  void setParameter(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_OUTPUT_LINE_LENGTH

private static final int MAX_OUTPUT_LINE_LENGTH
See Also:
Constant Field Values

logging

private boolean logging

stdReader

private BufferedReader stdReader

reader

private BufferedReader reader
Constructor Detail

QueryTerminal

public QueryTerminal()
Method Detail

readLine

private String readLine()
                 throws IOException
Throws:
IOException

login

public void login()
           throws IOException
Throws:
IOException

login

protected static void login(String username,
                            String password)

print

protected static void print(QueryResult qr)

runOnServer

private Object runOnServer(String method,
                           Object[] args)

setParameter

private void setParameter(String name,
                          String value)

processFile

private void processFile(String cmd)
                  throws QueryException
Throws:
QueryException

execute

public void execute()
             throws IOException
Throws:
IOException

log

private void log(String message)

processCommandLine

public void processCommandLine(String[] args)
                        throws QueryException,
                               FileNotFoundException
Throws:
QueryException
FileNotFoundException

main

public static void main(String[] args)