Statements Class Reference

This is a bucket class for prepared sqlite3 statements. More...

#include <Statements.h>

List of all members.

Public Member Functions

 Statements ()
 Creates an empty statements bucket.
 ~Statements ()
 Destructor, a noop.
sqlite3_stmt * getErase () const
 Returns the prepared statement to erase an entry from this table.
sqlite3_stmt * getInsert () const
 Returns the prepared statement to insert an entry into this table.
sqlite3_stmt * getUpdate () const
 Returns the prepared statement to update an entry from this table.
sqlite3_stmt * getSelect () const
 Returns the prepared statement to select an entry from this table.
sqlite3_stmt * getLookup (FieldPtr field)
 Returns the prepared statement to look up an entry from this table on the specified field.
sqlite3_stmt * getList () const
 Returns the prepared statement to list all entries in a table.
void setErase (sqlite3_stmt *erase)
 Sets the prepared statement to erase an entry from this table.
void setInsert (sqlite3_stmt *insert)
 Sets the prepared statement to insert an entry into this table.
void setUpdate (sqlite3_stmt *update)
 Sets the prepared statement to update an entry in this table.
void setSelect (sqlite3_stmt *select)
 Sets the prepared statement to select an entry from this table.
void setLookup (FieldPtr field, sqlite3_stmt *lookup)
 Sets the prepared statement to look up an entry from this table on the specified field.
void setList (sqlite3_stmt *list)
 Sets the prepared statement to list all entries in a table.
void commit ()
 Commit the changes to the database (finalize all prepared statements).


Detailed Description

This is a bucket class for prepared sqlite3 statements.

Definition at line 35 of file Statements.h.


Constructor & Destructor Documentation

Statements::Statements (  ) 

Creates an empty statements bucket.

Statements::~Statements (  ) 

Destructor, a noop.


Member Function Documentation

sqlite3_stmt* Statements::getErase (  )  const

Returns the prepared statement to erase an entry from this table.

sqlite3_stmt* Statements::getInsert (  )  const

Returns the prepared statement to insert an entry into this table.

sqlite3_stmt* Statements::getUpdate (  )  const

Returns the prepared statement to update an entry from this table.

sqlite3_stmt* Statements::getSelect (  )  const

Returns the prepared statement to select an entry from this table.

sqlite3_stmt* Statements::getLookup ( FieldPtr  field  ) 

Returns the prepared statement to look up an entry from this table on the specified field.

sqlite3_stmt* Statements::getList (  )  const

Returns the prepared statement to list all entries in a table.

void Statements::setErase ( sqlite3_stmt *  erase  ) 

Sets the prepared statement to erase an entry from this table.

void Statements::setInsert ( sqlite3_stmt *  insert  ) 

Sets the prepared statement to insert an entry into this table.

void Statements::setUpdate ( sqlite3_stmt *  update  ) 

Sets the prepared statement to update an entry in this table.

void Statements::setSelect ( sqlite3_stmt *  select  ) 

Sets the prepared statement to select an entry from this table.

void Statements::setLookup ( FieldPtr  field,
sqlite3_stmt *  lookup 
)

Sets the prepared statement to look up an entry from this table on the specified field.

void Statements::setList ( sqlite3_stmt *  list  ) 

Sets the prepared statement to list all entries in a table.

void Statements::commit (  ) 

Commit the changes to the database (finalize all prepared statements).


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo