Sparksee  6.0.2
Query Class Reference

Query class. More...

Inheritance diagram for Query:
Inheritance graph
Collaboration diagram for Query:
Collaboration graph

Public Member Functions

virtual ~Query ()
 Destructor.
 
ResultSetExecute (const std::wstring &stmt, bool_t reiterable=false)
 Executes the given statement. More...
 
QueryStreamSetStream (const std::wstring &stream, QueryStream *handler)
 Sets a query stream handler. More...
 
void SetDynamic (const std::wstring &name, Value &value)
 Sets the value for a dynamic paramater. More...
 

Private Member Functions

sparksee_core::Query * GetHandler ()
 Gets the handled reference. More...
 
const sparksee_core::Query * GetHandler () const
 Gets the handled reference. More...
 
void SetHandler (sparksee_core::Query *h)
 Sets the handled reference. More...
 
void FreeHandler ()
 Frees (deletes) the handled reference.
 
bool_t IsNull () const
 Gets if the handler is NULL. More...
 

Friends

class Session
 
class QueryContext
 

Detailed Description

Query class.

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

Member Function Documentation

ResultSet* Query::Execute ( const std::wstring &  stmt,
bool_t  reiterable = false 
)

Executes the given statement.

Parameters
stmt[in] Query statement.
reiterable[in] Whether we want the resultset to be reiterable or not
Returns
A ResultSet instance with the contents of the result of the query.
void Query::SetDynamic ( const std::wstring &  name,
Value value 
)

Sets the value for a dynamic paramater.

Parameters
name[in] Parameter name
value[in] Parameter value
QueryStream* Query::SetStream ( const std::wstring &  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

The documentation for this class was generated from the following file: