tql
Class TqlApi

java.lang.Object
  extended by tql.TqlApi

public class TqlApi
extends java.lang.Object

TqlApi class is the only class the user needs to access to run SQLR queries. The user needs to create a TqlApi object and send the SQLR query to the method runQuery.


Constructor Summary
TqlApi(java.lang.String username, java.lang.String password)
          Used to create a TQL object, without className and url.
TqlApi(java.lang.String username, java.lang.String password, java.lang.String className, java.lang.String url)
          Used to create a TQL object, with className and url.
 
Method Summary
 java.util.ArrayList runQuery(java.lang.String input)
          Send in the SQLR query as input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TqlApi

public TqlApi(java.lang.String username,
              java.lang.String password)
Used to create a TQL object, without className and url.

Parameters:
username - The database username
password - The database password

TqlApi

public TqlApi(java.lang.String username,
              java.lang.String password,
              java.lang.String className,
              java.lang.String url)
Used to create a TQL object, with className and url.

Parameters:
username - The database username
password - The database password
className - The database className. Look in JDBC documentation for more detail
url - The database url. Look in JDBC documentation for more detail.
Method Detail

runQuery

public java.util.ArrayList runQuery(java.lang.String input)
Send in the SQLR query as input. After running the query it returns the output as an ArrayList. The structure of the output is an ArrayList of ArrayLists. Each of these ArrayList is an ArrayList of Strings.

Parameters:
input - The SQLR query to run
Returns:
ArrayList containing the result of the query