Qorus Integration Engine®
4.1.4.p4_git
|
the main datasource service class More...
Inherits QorusSystemService.
Public Member Methods | |
reload () | |
DEPRECATED: refresh datasources. More... | |
Static Public Member Methods | |
static deprecated Datasource | get (string name) |
DEPRECATED: gets a shared datasource object with autocommit turn on. More... | |
static deprecated DatasourcePool | getUnique (string name) |
DEPRECATED: gets a DatasourcePool object, suitable for transaction management with short transactions. More... | |
static deprecated DatasourcePool | getPool (string name) |
DEPRECATED: gets a DatasourcePool object, suitable for transaction management with short transactions. More... | |
static deprecated Datasource | getDedicated (string name) |
DEPRECATED: gets a new, dedicated Datasource object, suitable for transaction management for long-running transactions. More... | |
static deprecated nothing | update_hash (string name, hash h) |
DEPRECATED: adds or updates an existing datasource entry, params: name, hash (like that returned by parse_datasource()) More... | |
static deprecated nothing | update_string (string name, string desc) |
DEPRECATED: adds or updates an existing datasource entry, params: string(name), string(description that can be parsed by parse_datasource()) More... | |
static deprecated nothing | update (string name, string type, string user, string pass, string db, *string charset, *string host, *softint port, softint min=0, softint max=0, *hash opts) |
DEPRECATED: adds or updates an existing datasource entry, params: name, type, user, pass, dbname[, charset, host, port, min, max]. More... | |
static deprecated hash | showDefaults () |
DEPRECATED: shows currently-cached datasource parameters (without passwords) More... | |
static deprecated hash | showDefaultsWithPasswords () |
DEPRECATED: shows currently-cached datasource parameters (with passwords) More... | |
static deprecated nothing | reset (string name) |
DEPRECATED: resets a datasource; any new requests for instances of this datasource will result in a new datasource or datasource pool being opened, params: name. More... | |
static deprecated auto | select (string name, string sql) |
DEPRECATED: synonym for selectRow(); use selectRow() instead. More... | |
static deprecated auto | selectRow (string name, string sql) |
DEPRECATED: runs a test 'selectRow' on the datasource. More... | |
static deprecated nothing | flushToFile (*hash optHash) |
DEPRECATED: write current datasources into file; accepts an optional hash parameter with datasource information, if it's NOTHING, currently set datasources are used. More... | |
static deprecated string | get_desc (string name) |
DEPRECATED: returns a datasource description string for the given datasource, if known, otherwise throws an exception. More... | |
the main datasource service class
|
inlinestatic |
DEPRECATED: write current datasources into file; accepts an optional hash parameter with datasource information, if it's NOTHING, currently set datasources are used.
optHash | an optional hash parameter with datasource information, if not included in the call, currently set datasources are used |
DATASOURCE-ERROR | error saving file |
lock:
OMQ::SLRead write:
True
(external calls require OMQ::QR_CALL_SYSTEM_SERVICES_RW)
|
inlinestatic |
DEPRECATED: gets a shared datasource object with autocommit turn on.
it is an error to close or delete the Datasource returned by this method or to turn off the autocommit status
name | the name of the datasource |
DATASOURCE-SERVICE-EXCEPTION | unknown or system datasource |
internal:
True
(this method can only be called internally) DEPRECATED: returns a datasource description string for the given datasource, if known, otherwise throws an exception.
name | the name of the datasource |
DATASOURCE-ERROR | unknown datasource |
|
inlinestatic |
DEPRECATED: gets a new, dedicated Datasource object, suitable for transaction management for long-running transactions.
name | the name of the datasource |
DATASOURCE-ERROR | unknown or system datasource |
internal:
True
(this method can only be called internally)
|
inlinestatic |
DEPRECATED: gets a DatasourcePool object, suitable for transaction management with short transactions.
name | the name of the datasource |
DATASOURCE-ERROR | unknown or system datasource |
internal:
True
(this method can only be called internally)
|
inlinestatic |
DEPRECATED: gets a DatasourcePool object, suitable for transaction management with short transactions.
name | the name of the datasource |
internal:
True
(this method can only be called internally)
|
inline |
DEPRECATED: refresh datasources.
It is necessary to call this method (or reset the service) to re-read the configuration file
FILELINEITERATOR-OPEN-ERROR | error opening configuration file |
|
inlinestatic |
DEPRECATED: resets a datasource; any new requests for instances of this datasource will result in a new datasource or datasource pool being opened, params: name.
name | the name of the datasource to reset |
DATASOURCE-ERROR | unknown or system datasource |
DEPRECATED: synonym for selectRow(); use selectRow() instead.
name | the name of the datasource to execute the select on |
sql | the SQL string to execute |
DATASOURCE-ERROR | unknown or system datasource |
DEPRECATED: runs a test 'selectRow' on the datasource.
name | the name of the datasource to execute the select on |
sql | the SQL string to execute |
DATASOURCE-ERROR | unknown or system datasource |
|
inlinestatic |
DEPRECATED: shows currently-cached datasource parameters (without passwords)
type:
the driver name for the datasourceuser:
the username for the connectioncharset:
the database-specific character set name for the connectiondb:
the database name for the connectionhost:
the hostname for the connectionport:
the port number for the connectiondesc:
a descriptive string for the connectionlocked:
True
if the datasource is lockedoptions:
a hash with the following 2 members: min
and max
shared-pool
: a string giving shared pool status (if any shared pool exists)
|
inlinestatic |
DEPRECATED: shows currently-cached datasource parameters (with passwords)
type:
the driver name for the datasourceuser:
the username for the connectionpassword:
the password for the connectioncharset:
the database-specific character set name for the connectiondb:
the database name for the connectionhost:
the hostname for the connectionport:
the port number for the connectiondesc:
a descriptive string for the connectionlocked:
True
if the datasource is lockedoptions:
a hash with the following 2 members: min
and max
shared-pool
: a string giving shared pool status (if any shared pool exists)lock:
OMQ::SLRead
|
inlinestatic |
DEPRECATED: adds or updates an existing datasource entry, params: name, type, user, pass, dbname[, charset, host, port, min, max].
name | the name of the datasource to update or add |
type | the name of the driver |
user | the name of the user for connections based on this datasource |
pass | the password for connections based on this datasource |
db | the database name for connections based on this datasource |
charset | the database-specific character encoding for connections based on this datasource |
host | the optional hostname for new connections |
port | the optional port number for new connections |
min | the minimum number of connections for DatasourcePool objects created from this datasource |
max | the maximum number of connections for DatasourcePool objects created from this datasource |
opts | other driver options |
DATASOURCE-SERVICE-EXCEPTION | unknown or system datasource |
DEPRECATED: adds or updates an existing datasource entry, params: name, hash (like that returned by parse_datasource())
name | the name of the datasource to update or add |
h | a datasource hash like that returned by parse_datasource() |
DATASOURCE-ERROR | empty name string passed as an argument or tried to update a system datasource |
DEPRECATED: adds or updates an existing datasource entry, params: string(name), string(description that can be parsed by parse_datasource())
name | the name of the datasource to update or add |
desc | a datasource description string, like: driver:user/pass@db(encoding)%host:port{min=x,max=y} |
DATASOURCE-SERVICE-EXCEPTION | unknown or system datasource |