com.sparsity.sparksee.gdb
Class Query

java.lang.Object
  extended by com.sparsity.sparksee.gdb.Query

public class Query
extends java.lang.Object

Query class.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Method Summary
 ResultSet execute(java.lang.String stmt)
          Executes the given statement.
 void setDynamic(java.lang.String name, Value value)
          Sets the value for a dynamic paramater.
 QueryStream setStream(java.lang.String stream, QueryStream handler)
          Sets a query stream handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDynamic

public void setDynamic(java.lang.String name,
                       Value value)
Sets the value for a dynamic paramater.

Parameters:
name - [in] Parameter name
value - [in] Parameter value

setStream

public QueryStream setStream(java.lang.String stream,
                             QueryStream handler)
Sets a query stream handler.

Query streams handlers are created and destroyed by the caller.

Parameters:
stream - [in] The stream name
handler - [in] Query stream handler
Returns:
The previous handler, or NULL if it does not exists

execute

public ResultSet execute(java.lang.String stmt)
Executes the given statement.

Parameters:
stmt - [in] Query statement.
Returns:
A ResultSet instance with the contents of the result of the query.