wt.epm.query
Class QueryTerminalServer

java.lang.Object
  extended bywt.epm.query.QueryTerminalServer
All Implemented Interfaces:
RemoteAccess

public class QueryTerminalServer
extends Object
implements RemoteAccess


Nested Class Summary
private static class QueryTerminalServer.Session
           
 
Field Summary
private static String[] multyValueProps
           
private static String[] oneLineCommand
           
private  ArrayList result
           
private  QueryTerminalServer.Session session
           
private static String SESSION_KEY
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
QueryTerminalServer()
           
 
Method Summary
private  void addFormatedMap(Collection result, Map map)
           
private  void attribute(StringTokenizer st)
           
private  Collection classInfo2Names(ClassInfo[] cis)
           
private  void clazz(StringTokenizer st, boolean desc)
           
static Object execute(String command)
           
static String[] getOneLineCommand()
           
private  boolean getParserDebug()
           
private  void help(StringTokenizer st)
           
private  void info(StringTokenizer st)
           
private  void info0(String s)
           
private  void invalidCommand()
           
private  String java2Prop(String s)
           
private  void loadSession()
           
private  void log(StringTokenizer st)
           
private  void logClass(Class c)
           
private  void logField(Field f, boolean error)
           
private  String nl(String s)
           
private  String prop2Java(String s)
           
private  QueryResult query(String queryString)
           
private  void roleInfo(Map res, RoleDescriptor role, String roleSide)
           
private  void set(StringTokenizer st)
           
private  void setAuth(Query query)
           
private  void setPackages(Query query)
           
private  void setParameters(Query query)
           
private  void setupQuery(Query query)
           
private  void show(StringTokenizer st)
           
private  void sql(StringTokenizer st)
           
private  void trace(StringTokenizer st)
           
private  void tree(StringTokenizer st)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_KEY

private static final String SESSION_KEY
See Also:
Constant Field Values

session

private QueryTerminalServer.Session session

result

private ArrayList result

multyValueProps

private static String[] multyValueProps

oneLineCommand

private static String[] oneLineCommand
Constructor Detail

QueryTerminalServer

public QueryTerminalServer()
Method Detail

loadSession

private void loadSession()

getOneLineCommand

public static String[] getOneLineCommand()

execute

public static Object execute(String command)
                      throws QueryException
Throws:
QueryException

help

private void help(StringTokenizer st)

info

private void info(StringTokenizer st)

info0

private void info0(String s)

log

private void log(StringTokenizer st)
          throws QueryException
Throws:
QueryException

prop2Java

private String prop2Java(String s)

java2Prop

private String java2Prop(String s)

logField

private void logField(Field f,
                      boolean error)
               throws QueryException,
                      IllegalAccessException
Throws:
QueryException
IllegalAccessException

logClass

private void logClass(Class c)
               throws QueryException,
                      IllegalAccessException
Throws:
QueryException
IllegalAccessException

set

private void set(StringTokenizer st)
          throws QueryException
Throws:
QueryException

show

private void show(StringTokenizer st)
           throws QueryException
Throws:
QueryException

nl

private String nl(String s)

classInfo2Names

private Collection classInfo2Names(ClassInfo[] cis)

clazz

private void clazz(StringTokenizer st,
                   boolean desc)
            throws QueryException
Throws:
QueryException

roleInfo

private void roleInfo(Map res,
                      RoleDescriptor role,
                      String roleSide)
               throws Exception
Throws:
Exception

attribute

private void attribute(StringTokenizer st)
                throws QueryException
Throws:
QueryException

setPackages

private void setPackages(Query query)

setParameters

private void setParameters(Query query)
                    throws QueryException
Throws:
QueryException

setAuth

private void setAuth(Query query)
              throws QueryException
Throws:
QueryException

getParserDebug

private boolean getParserDebug()
                        throws QueryException
Throws:
QueryException

setupQuery

private void setupQuery(Query query)
                 throws QueryException
Throws:
QueryException

trace

private void trace(StringTokenizer st)
            throws QueryException
Throws:
QueryException

tree

private void tree(StringTokenizer st)
           throws QueryException
Throws:
QueryException

sql

private void sql(StringTokenizer st)
          throws QueryException
Throws:
QueryException

query

private QueryResult query(String queryString)
                   throws QueryException
Throws:
QueryException

invalidCommand

private void invalidCommand()

addFormatedMap

private void addFormatedMap(Collection result,
                            Map map)