class Plugin
|
A Plugin handles all connections related to a DBMS (Postgres, MySQL, and so on). More... |
|
|
Public Types
Public Methods
- Plugin (QObject *parent = 0L, const char *name = 0L)
- virtual ~Plugin ()
- virtual PluginInfo info ()
- Connection * openConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
- virtual Connection * addConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
- void remove (Connection *)
- Connection * findConnection (const QString &host, const QString & user)
- ConnectionIterator begin ()
- virtual bool provides (capability cap)
- virtual Capability * createObject (capability cap)
- void registerConnection (Connection *)
- virtual Connector * createConnector ()
Signals
Protected Methods
- Plugin (QObject *parent = 0L, const char *name = 0L)
- virtual ~Plugin ()
- virtual PluginInfo info ()
- Connection * openConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
- virtual Connection * addConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
- void remove (Connection *)
- Connection * findConnection (const QString &host, const QString & user)
- ConnectionIterator begin ()
- virtual bool provides (capability cap)
- virtual Capability * createObject (capability cap)
- void registerConnection (Connection *)
- virtual Connector * createConnector ()
Protected Slots
A Plugin handles all connections related to a DBMS (Postgres, MySQL, and so on).
This class allows traversal of the list of available connections, and can
be queried about general informations and implemented capabilities through provides
The Plugin is also responsible of creating "capability objects", that is
objects that can implement a specific capabilities.
Actually we have found the following capabilities:
- Transactions (does not have a "capability object")
- Reorganization, that is the ability of 'compressing' database objects after
a big number of deletes (does not have a "capability object")
- Stored procedures
- Administration
- Users and Groups (ACL)
- Views
- Sequences
- User defined functions
Plugin (QObject *parent = 0L, const char *name = 0L)
|
[virtual]
[pure virtual]
Returns the information about the plugin.
Connection * openConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
|
Create a connection, append it to the connection list,
open the connection and return it.
Connection * addConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)
|
[virtual]
Same as connect, but does not perform the connection.
void remove (Connection *)
|
Removes a connection from the list of connections.
This will delete the connection, so make sure to not have
dangling reference to the connection.
Connection * findConnection (const QString &host, const QString & user)
|
Return a connection to the specified host for the given user.
If no connection is found 0L is returned.
ConnectionIterator begin ()
|
Returns an iterator that points to the first Connection
object.
bool provides (capability cap)
|
[pure virtual]
returns true if the plugin can handle a given capability.
Capability * createObject (capability cap)
|
[pure virtual]
Create an object that will handle the specific capability
if the plugin does not support a capability, an exception is thrown.
[signal]
[ protected slots:
slot]
void registerConnection (Connection *)
|
[ protected:
]
Connector * createConnector ()
|
[ protected:
pure virtual]
- Version: kdbcore 0.0.2
- Author: Alessandro Praduroux <pradu@thekompany.com>
- Generated: marc@yogi on Tue Mar 27 13:09:39 2001, using kdoc 2.0a48.