|
|
This class is an abstract baseclass to actually implement the comunication with the database. (See also toQuery::queryImpl and toConnectionProvider)
toConnection & connection (void)
| connection |
Get the parent connection object of this connection.
connectionImpl (toConnection *conn)
| connectionImpl |
Create a new connection implementation for a connection.
Parameters:
conn | Connection to implement. |
~connectionImpl ()
| ~connectionImpl |
[virtual]
Destructor.
void commit (toConnectionSub *)
| commit |
[pure virtual]
Commit the supplied actual database connection.
void rollback (toConnectionSub *)
| rollback |
[pure virtual]
Rollback the supplied actual database connection.
bool handleMultipleQueries ()
| handleMultipleQueries |
[virtual]
If not true can never run more than one query per connection sub and TOra will work around this limitation by opening more connections if needed.
toConnectionSub * createConnection (void)
| createConnection |
[pure virtual]
Create a new connection to the database.
void closeConnection (toConnectionSub *)
| closeConnection |
[pure virtual]
Close a connection to the database.
QCString version (toConnectionSub *)
| version |
[pure virtual]
Get the version of the database connected to.
QString quote (const QString &name)
| quote |
[virtual]
Return a string representation to address an object.
Parameters:
name | The name to be quoted. |
Returns: String addressing table.
QString unQuote (const QString &name)
| unQuote |
[virtual]
Perform the opposite of quote.
Parameters:
name | The name to be un-quoted. |
Returns: String addressing table.
std::list<objectName> objectNames (void)
| objectNames |
[virtual]
Extract available objects to query for connection. Any access to the database should always be run using a long running query. If something goes wrong should throw exception.
Returns: List of available objects.
std::map<QString,objectName> synonymMap (std::list<objectName> &objects)
| synonymMap |
[virtual]
Get synonyms available for connection. Any access to the database should always be run using a long running query. If something goes wrong should throw exception.
Parameters:
objects | Available objects for the connection. Objects are sorted in owner and name order. Don't modify this list. |
Returns: Map of synonyms to objectnames.
toQDescList columnDesc (const objectName &table)
| columnDesc |
[virtual]
toQuery::queryImpl * createQuery (toQuery *query,toConnectionSub *conn)
| createQuery |
[pure virtual]
Create a new query implementation for this connection.
Returns: A query implementation, allocated with new.
void execute (toConnectionSub *conn,const QCString &sql,toQList ¶ms)
| execute |
[pure virtual]
Execute a query on an actual connection without caring about the result.
Parameters:
conn | Connection to execute on. |
sql | SQL to execute. |
params | Parameters to pass to query. |
void parse (toConnectionSub *conn,const QCString &sql)
| parse |
[virtual]
Parse a query on an actual connection and report any syntax problems encountered. Defaults to not implemented.
Parameters:
conn | Connection to execute on. |
sql | SQL to parse |