Qore oracle Module ..
Loading...
Searching...
No Matches
OracleExtensions::OracleDatasource Class Reference

OracleDatasource class implementation. More...

#include <OracleExtensions.qm.dox.h>

Inheritance diagram for OracleExtensions::OracleDatasource:
OracleExtensions::OracleDatasourceBase OracleExtensions::OracleInstrumentationBase

Public Member Methods

 constructor (string driver, *string user, *string pass, *string db, *string encoding, *string host, softint port=0, *code userAutoInfo)
 Standard Qore::DatasourcePool constructor.
 
 constructor (string desc, *code userAutoInfo)
 Standard Qore::DatasourcePool constructor.
 
 constructor (hash opts, *code userAutoInfo)
 Standard Qore::DatasourcePool constructor.
 
 constructor (Datasource ds, *code userAutoInfo)
 New constructor: use already existing Datasource.
 
- Public Member Methods inherited from OracleExtensions::OracleDatasourceBase
*string getDBName ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
*string getUserName ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
any getServerVersion ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
*string getPassword ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
hash getConfigHash ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
*int getPort ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
string getConfigString ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
any getClientVersion ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
*string getOSEncoding ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
string getDriverName ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
string getDBEncoding ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
*string getHostName ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
bool inTransaction ()
 AbstractDatasource implementation for Datasource and DatasourcePool.
 
 setAppInfoCallback (*string oraclient, *string oramodule, *string oraaction)
 Set app info by wrapped Datasource/Pool object.
 
bool currentThreadInTransaction ()
 A backend provided m_ds.currentThreadInTransaction() for wrappeed Datasource/Pool.
 
nothing beginTransaction (*string client, *string module, *string action)
 Start new transaction with Application info set as strings or with potential automatic Application info set.
 
nothing beginTransaction (OracleExtensions::OracleApplicationInfo info)
 Start new transaction with Application info set as object.
 
any exec (string sql)
 exec with automatic approach of getting application info
 
any execRaw (string sql)
 execRaw with automatic approach of getting application info
 
any select (string sql)
 select with automatic approach of getting application info
 
any selectRow (string sql)
 selectRow with automatic approach of getting application info
 
any selectRows (string sql)
 selectRows with automatic approach of getting application info
 
any vexec (string sql, softlist vargs)
 vexec with automatic approach of getting application info
 
any vselect (string sql, softlist vargs)
 vselect with automatic approach of getting application info
 
any vselectRow (string sql, softlist vargs)
 vselectRow with automatic approach of getting application info
 
any vselectRows (string sql, softlist vargs)
 vselectRows with automatic approach of getting application info
 
any exec (OracleExtensions::OracleApplicationInfo info, string sql)
 exec with user defined application info
 
any execRaw (OracleExtensions::OracleApplicationInfo info, string sql)
 execRaw with user defined application info
 
any select (OracleExtensions::OracleApplicationInfo info, string sql)
 select with user defined application info
 
any selectRow (OracleExtensions::OracleApplicationInfo info, string sql)
 selectRow with user defined application info
 
any selectRows (OracleExtensions::OracleApplicationInfo info, string sql)
 selectRows with user defined application info
 
any vexec (OracleExtensions::OracleApplicationInfo info, string sql)
 vexec with user defined application info
 
any vselect (OracleExtensions::OracleApplicationInfo info, string sql)
 vselect with user defined application info
 
any vselectRow (OracleExtensions::OracleApplicationInfo info, string sql)
 vselectRow with user defined application info
 
any vselectRows (OracleExtensions::OracleApplicationInfo info, string sql)
 vselectRows with user defined application info
 
- Public Member Methods inherited from OracleExtensions::OracleInstrumentationBase
bool setAutomaticDBInfo (*OracleExtensions::OracleApplicationInfo item, bool checkTransaction=True)
 Obtain info about transaction capturing and try to get available Application Info.
 
abstract setAppInfoCallback (*string oraclient, *string oramodule, *string oraaction)
 A method automatically called from setAppInfo() to allow custom implementations.
 
abstract bool currentThreadInTransaction ()
 A backend provided currentThreadInTransaction() for wrappeed or inheritted Datasource/Pool.
 
 setAppInfo (*OracleExtensions::OracleApplicationInfo audit, bool fromSystem=True)
 Set the explicit Application Info. The transaction lock is taken.
 
 setAppInfo (*string client, *string module, *string action, bool fromSystem=True)
 An overloaded method with the same functionality as the OracleExtensions::OracleApplicationInfo variant.
 

Additional Inherited Members

- Private Attributes inherited from OracleExtensions::OracleInstrumentationBase
*OracleExtensions::OracleApplicationInfo userInfo
 potential user Application Info set by beginTransaction or explicit call of setAppInfo
 
*code autoCode
 user code used in setAutomaticDBInfo when there is no OracleApplicationInfo value provided
 
object m_ds
 Internally used datasource/pool.
 

Detailed Description

OracleDatasource class implementation.

It wraps from Qore::Datasource.

Member Function Documentation

◆ constructor() [1/4]

OracleExtensions::OracleDatasource::constructor ( Datasource  ds,
*code  userAutoInfo 
)

New constructor: use already existing Datasource.

The original Datasource is embedded into this instance.

Parameters
userAutoInfosee Automatic Application Info

◆ constructor() [2/4]

OracleExtensions::OracleDatasource::constructor ( hash  opts,
*code  userAutoInfo 
)

Standard Qore::DatasourcePool constructor.

Parameters
userAutoInfosee Automatic Application Info

◆ constructor() [3/4]

OracleExtensions::OracleDatasource::constructor ( string  desc,
*code  userAutoInfo 
)

Standard Qore::DatasourcePool constructor.

Parameters
userAutoInfosee Automatic Application Info

◆ constructor() [4/4]

OracleExtensions::OracleDatasource::constructor ( string  driver,
*string  user,
*string  pass,
*string  db,
*string  encoding,
*string  host,
softint  port = 0,
*code  userAutoInfo 
)

Standard Qore::DatasourcePool constructor.

Parameters
userAutoInfosee Automatic Application Info

The documentation for this class was generated from the following file: