#include <Factory.hh>
Inherits fatalmind::SQL::SQLFactoryInterface.
Thats the place where you configure which database user and password to use.
The following event attributes are used:
EXECUTE
BATCH ERROR - One or more of the statements in the batch had an error. The error details will be written in the next argument. SLMDC - (not an error) A abbrevation for SelectListMetaDataCache. Means that the meta data for the select list (types and sizes of selectd columns) has been used from the cache so that an additional database round-trip could be avoided. EXACT - (not an error) SQLSelectRow did successfully query for a single row (a database roundtrip was saved).CACHED - (not an error) Means that the cursor was cached. e.g. the same statement was executed in the same session before, the prepare round-trip could be avoided.NO DATA - a SQLSelectRow command did not return any data MORE DATA - a SQLSelectRow command did return more then one row (emulated ORA-01422 error)IMPLICIT - The commit was performed in a single round trip with the previous command (database roundtrip saved).Public Types | ||||
| enum | databaseType_t { UNDEF, OCI, MYSQL, MYSQLTX } | |||
Public Member Functions | ||||
| oracleFactory (const std::string &service_name, const std::string &user, const std::string &pass, ResourcePoolEventObserver &e=ResourcePoolStreamLogger::defaultLogger) | ||||
| ||||
| oracleFactory (const std::string &logon, ResourcePoolEventObserver &e=ResourcePoolStreamLogger::defaultLogger) | ||||
| ||||
| oracleFactory (const oracleFactory< TM, SLMDC > &) | ||||
| oracleResource< TM > * | create_resource () const | |||
| databaseType_t | getDatabaseType () const | |||
|
gc_ptr < ResourcePoolEventObserver > | getEventObserver () const | |||
Protected Member Functions | ||||
| virtual Clone * | DoClone () const | |||
| fatalmind::oracleFactory< TM, SLMDC >::oracleFactory | ( | const std::string & | service_name, | |
| const std::string & | user, | |||
| const std::string & | pass, | |||
| ResourcePoolEventObserver & | e = ResourcePoolStreamLogger::defaultLogger | |||
| ) | [inline] |
| service_name | the TNS name of the database Starting with Oracle 10g you can also use the syntax [//]host[:port][/service name] |
| user | the user name | |
| pass | the users password | |
| e | The Event Oberserver can be used to get notified about some events like failure. See ResourcePoolEventObserver for details. |
| fatalmind::oracleFactory< TM, SLMDC >::oracleFactory | ( | const std::string & | logon, | |
| ResourcePoolEventObserver & | e = ResourcePoolStreamLogger::defaultLogger | |||
| ) | [inline] |
| logon | user/pass |
| e | The Event Oberserver can be used to get notified about some events like failure. See ResourcePoolEventObserver for details. |
1.5.3