|
Prüfungsamt-Projekt
1.0.0
|
SQL Connection. Mehr ...
#include <sqlconnection.h>
Öffentliche Methoden | |
| SQLConnection (PgDatabase *database, SQLMonitorInterface *monitor=NULL) | |
| void | beginTransaction () |
| void | commitTransaction () |
| void | rollbackTransaction () |
| void | execute (const char *command) |
| void | createCursor (const char *cursorName, const char *command) |
| void | fetchCursor (const char *cursorName, const char *what) |
| void | deleteCursor (const char *cursorName) |
| cardinal | getTuples () |
| cardinal | getFields () |
| const char * | getField (cardinal col) |
| const char * | getValue (cardinal row, cardinal col) |
| void | optimize (const char *tableName) |
| SQLMonitorInterface * | getMonitor () const |
| void | setMonitor (SQLMonitorInterface *monitor) |
Private Methoden | |
| bool | executeCommandOk (const char *command) |
| bool | executeTuplesOk (const char *command) |
Private Attribute | |
| PgDatabase * | Database |
| SQLMonitorInterface * | Monitor |
| bool | Transaction |
| SQLConnection::SQLConnection | ( | PgDatabase * | database, |
| SQLMonitorInterface * | monitor = NULL |
||
| ) |
Constructor.
| database | PgDatabase-Objekt. |
| monitor | SQLMonitorInterface-Objekt. |
| void SQLConnection::beginTransaction | ( | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::commitTransaction | ( | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::createCursor | ( | const char * | cursorName, |
| const char * | command | ||
| ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::deleteCursor | ( | const char * | cursorName | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::execute | ( | const char * | command | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| bool SQLConnection::executeCommandOk | ( | const char * | command | ) | [private] |
| bool SQLConnection::executeTuplesOk | ( | const char * | command | ) | [private] |
| void SQLConnection::fetchCursor | ( | const char * | cursorName, |
| const char * | what | ||
| ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| const char * SQLConnection::getField | ( | cardinal | col | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| cardinal SQLConnection::getFields | ( | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| SQLMonitorInterface * SQLConnection::getMonitor | ( | ) | const [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| cardinal SQLConnection::getTuples | ( | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| const char * SQLConnection::getValue | ( | cardinal | row, |
| cardinal | col | ||
| ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::optimize | ( | const char * | tableName | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::rollbackTransaction | ( | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
| void SQLConnection::setMonitor | ( | SQLMonitorInterface * | monitor | ) | [virtual] |
Implementation von SQLConnectionInterface.
Implementiert SQLConnectionInterface.
PgDatabase* SQLConnection::Database [private] |
SQLMonitorInterface* SQLConnection::Monitor [private] |
bool SQLConnection::Transaction [private] |