class connectionImpl

This class is an abstract baseclass to actually implement the comunication with the database. More...

Contains pure virtuals
Full nametoConnection::connectionImpl
Definition#include <toconnection.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is an abstract baseclass to actually implement the comunication with the database. (See also toQuery::queryImpl and toConnectionProvider)

toConnectionconnection (void)

connection

Get the parent connection object of this connection.

 connectionImpl (toConnection *conn)

connectionImpl

Create a new connection implementation for a connection.

Parameters:
connConnection 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.

toConnectionSubcreateConnection (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:
nameThe name to be quoted.

Returns: String addressing table.

QString  unQuote (const QString &name)

unQuote

[virtual]

Perform the opposite of quote.

Parameters:
nameThe 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:
objectsAvailable 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::queryImplcreateQuery (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 &params)

execute

[pure virtual]

Execute a query on an actual connection without caring about the result.

Parameters:
connConnection to execute on.
sqlSQL to execute.
paramsParameters 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:
connConnection to execute on.
sqlSQL to parse