D2BS
Public Member Functions | Public Attributes

DBStatement Class Reference

A class describing ... More...

List of all members.

Public Member Functions

Object getObject ()
 An object with property names from the column names and property values coming from the data.
int getColumnCount ()
 Get the column count.
double getColumnValue (int colIndex)
 Get the value from the column specified by index.
String getColumnValue (int colIndex)
 Get the value from the column specified by index.
 getColumnName (int colIndex)
 Get the name of the column at the given index.
bool go ()
 Call sqlite3_step and close_db_stmt on the statement.
bool next ()
 Call sqlite3_step on the statement.
int skip (int rows)
 Skip a certain number of rows in the results.
bool reset ()
 Call sqlite3_reset.
bool close ()
 Close the statement.
bool bind (int colnum, double val)
 Bind the given data to the given column.
bool bind (int colnum, int val)
 Bind the given data to the given column.
bool bind (int colnum, String val)
 Bind the given data to the given column.
bool bind (int colnum, bool val)
 Bind the given data to the given column.

Public Attributes

String sql
 The statement string.
bool ready
 Whether or not there is more data to be gotten.

Detailed Description

A class describing ...

Todo:
Get a better description (and understanding).

Member Function Documentation

bool DBStatement::bind ( int  colnum,
double  val 
)

Bind the given data to the given column.

Parameters:
colnumThe column number to bind to.
valThe data to bind.
Returns:
true.
bool DBStatement::bind ( int  colnum,
int  val 
)

Bind the given data to the given column.

Parameters:
colnumThe column number to bind to.
valThe data to bind.
Returns:
true.
bool DBStatement::bind ( int  colnum,
String  val 
)

Bind the given data to the given column.

Parameters:
colnumThe column number to bind to.
valThe data to bind.
Returns:
true.
bool DBStatement::bind ( int  colnum,
bool  val 
)

Bind the given data to the given column.

Parameters:
colnumThe column number to bind to.
valThe data to bind.
Returns:
true.
bool DBStatement::close ( )

Close the statement.

Returns:
true.
int DBStatement::getColumnCount ( )

Get the column count.

Returns:
The column count.
DBStatement::getColumnName ( int  colIndex)

Get the name of the column at the given index.

Parameters:
colIndexThe index of the column to get data from.
Returns:
The column name.
String DBStatement::getColumnValue ( int  colIndex)

Get the value from the column specified by index.

Parameters:
colIndexThe index of the column to get data from.
Returns:
The data.
double DBStatement::getColumnValue ( int  colIndex)

Get the value from the column specified by index.

Parameters:
colIndexThe index of the column to get data from.
Returns:
The data.
Object DBStatement::getObject ( )

An object with property names from the column names and property values coming from the data.

Returns:
The object with all the data.
bool DBStatement::go ( )

Call sqlite3_step and close_db_stmt on the statement.

Todo:
Interpret what this means.
Returns:
Whether the result is SQLITE_DONE.
bool DBStatement::next ( )

Call sqlite3_step on the statement.

Todo:
Interpret what this means and how's it's different from go().
Returns:
Whether the result is SQLITE_ROW.
bool DBStatement::reset ( )

Call sqlite3_reset.

Todo:
Interpret what this does.
Returns:
true.
int DBStatement::skip ( int  rows)

Skip a certain number of rows in the results.

Parameters:
rowsThe number of rows to skip.
Returns:
The number of rows actually skipped.