Qorus Integration Engine®
4.1.4.p4_git
|
An Oracle specific class which is used for automated instrumentation as in OracleExtensions::OracleDatasourcePool but this one is directly inherited from Qore::SQL::DatasourcePool. More...
Public Member Methods | |
constructor (hash< auto > opts, *Qore::Thread::Queue queue, auto arg, code userAutoInfo) | |
creates the object | |
nothing | beginTransaction () |
Start new transaction with potential automatic Aplication info set. | |
nothing | commit () |
Commit the transaction. Application info is cleared. | |
nothing | rollback () |
Rollback the transaction. Application info is cleared. | |
auto | exec (string sql) |
exec with automatic approach of getting application info More... | |
auto | execRaw (string sql) |
execRaw with automatic approach of getting application info More... | |
auto | select (string sql) |
select with automatic approach of getting application info More... | |
auto | selectRow (string sql) |
selectRow with automatic approach of getting application info More... | |
auto | selectRows (string sql) |
selectRows with automatic approach of getting application info More... | |
auto | vexec (string sql, softlist< auto > vargs) |
vexec with automatic approach of getting application info More... | |
auto | vselect (string sql, softlist< auto > vargs) |
vselect with automatic approach of getting application info More... | |
auto | vselectRow (string sql, softlist< auto > vargs) |
vselectRow with automatic approach of getting application info More... | |
auto | vselectRows (string sql, softlist< auto > vargs) |
vselectRows with automatic approach of getting application info More... | |
Static Public Member Methods | |
static *OracleExtensions::OracleApplicationInfo | getOracleInstrumentation () |
A helper function for automated Oracle instrumentation in QorusOracleDatasourcePool. It tries to get the most valuable info form the current Qorus context to identify the place of the origin of the DB operation in the system or user code. More... | |
An Oracle specific class which is used for automated instrumentation as in OracleExtensions::OracleDatasourcePool but this one is directly inherited from Qore::SQL::DatasourcePool.
All user code gets this class automatically instead of raw DatasourcePool if is the datasource of Oracle type and the qorus.oracle-datasource-pool option is set to True
.
The user code works as with standard OMQ::SQL::DatasourcePool out of the box. No changes in current code base are required.
The auto instrumentation is provided by Qorus internal OMQ::QorusOracleDatasourcePool::getOracleInstrumentation() method.
User code can use all functionality of OracleExtensions::OracleInstrumentationBase like a custom application info etc.
User code has to wrap OMQ::QorusOracleDatasourcePool into OracleExtensions::OracleDatasourcePool to use advanced extensions like "longops" or "server output".
auto OMQ::QorusOracleDatasourcePool::exec | ( | string | sql | ) |
exec with automatic approach of getting application info
sql | a SQL statement |
... | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
|
virtual |
execRaw with automatic approach of getting application info
sql | a SQL statement |
any | a result as in parent class method |
This method tries to find application infautomatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
Reimplemented from Qore::SQL::DatasourcePool.
|
static |
A helper function for automated Oracle instrumentation in QorusOracleDatasourcePool. It tries to get the most valuable info form the current Qorus context to identify the place of the origin of the DB operation in the system or user code.
Please see Qore OracleExtensions module and Oracle documentation for more information about Oracle instrumentation.
workflow:
service:
job:
Example
Log output for dsstage will be:
Oracle's V$SESSION
will contain these values for current connection:
auto OMQ::QorusOracleDatasourcePool::select | ( | string | sql | ) |
select with automatic approach of getting application info
sql | a SQL statement |
... | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::selectRow | ( | string | sql | ) |
selectRow with automatic approach of getting application info
sql | a SQL statement |
... | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::selectRows | ( | string | sql | ) |
selectRows with automatic approach of getting application info
sql | a SQL statement |
... | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::vexec | ( | string | sql, |
softlist< auto > | vargs | ||
) |
vexec with automatic approach of getting application info
sql | a SQL statement |
vargs | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::vselect | ( | string | sql, |
softlist< auto > | vargs | ||
) |
vselect with automatic approach of getting application info
sql | a SQL statement |
vargs | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::vselectRow | ( | string | sql, |
softlist< auto > | vargs | ||
) |
vselectRow with automatic approach of getting application info
sql | a SQL statement |
vargs | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.
auto OMQ::QorusOracleDatasourcePool::vselectRows | ( | string | sql, |
softlist< auto > | vargs | ||
) |
vselectRows with automatic approach of getting application info
sql | a SQL statement |
vargs | binding arguments as in parent class method |
any | a result as in parent class method |
This method tries to find application info automatically. The previously set info (beginTransaction, setAppInfo) is used or a context related info is used in Qorus Integration Engine.