NSqlQuery Class Reference

Base class for SQL Queries manipulation. More...

Inheritance diagram for NSqlQuery:

NObject

List of all members.

Public Member Functions

 NSqlQuery (void)
 Constructs a NSqlQuery object.
 NSqlQuery (const NString &query)
 Constructs a NSqlQuery object.
 NSqlQuery (const NSqlQuery &other)
 Copy constructor.
 ~NSqlQuery (void)
 Destroys a NSqlQuery object.
bool bindValue (const NString &name, const NVtype &value)
 Bind an identified mask name to a value.
bool addBindValue (const NVtype &value)
 Bind an predefined mask name to a value.
void set (const NString &query)
 Sets the current query.
NString get (void) const
 Gets the current query.


Detailed Description

Base class for SQL Queries manipulation.

Definition at line 37 of file nsqlquery.h.


Constructor & Destructor Documentation

NSqlQuery ( const NString query  ) 

Constructs a NSqlQuery object.

Parameters:
query SQL query

Definition at line 32 of file nsqlquery.cpp.

NSqlQuery ( const NSqlQuery other  ) 

Copy constructor.

Parameters:
other Object to be copied

Definition at line 40 of file nsqlquery.cpp.


Member Function Documentation

bool bindValue ( const NString name,
const NVtype value 
)

Bind an identified mask name to a value.

Parameters:
name Mask name
value Value to be bound.
Returns:
true in case of success or false otherwise

Definition at line 53 of file nsqlquery.cpp.

References NString::find(), NString::NOT_FOUND, NString::replace_first(), and NVtype::toString().

bool addBindValue ( const NVtype value  ) 

Bind an predefined mask name to a value.

Parameters:
value Value to be bound.
Returns:
true in case of success or false otherwise

Definition at line 63 of file nsqlquery.cpp.

References NString::find(), NString::NOT_FOUND, NString::replace_first(), and NVtype::toString().

void set ( const NString query  ) 

Sets the current query.

Parameters:
query SQL query

Definition at line 73 of file nsqlquery.cpp.

NString get ( void   )  const

Gets the current query.

Returns:
The current query

Definition at line 78 of file nsqlquery.cpp.

Referenced by NMySql::execSql().


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4