fatalmind::oracleFactory< TM, SLMDC > Class Template Reference

#include <Factory.hh>

Inherits fatalmind::SQL::SQLFactoryInterface.

List of all members.


Detailed Description

template<class TM, template< class > class SLMDC = oracle::SelectListMetaDataCache>
class fatalmind::oracleFactory< TM, SLMDC >

A Factory for a oracle database connection (session).

Thats the place where you configure which database user and password to use.

The following event attributes are used:

EXECUTE

PREPARE FETCH COMMIT For all cases, ORA-xxxxx might appear to indicate an error.

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)
 
Parameters:
service_name the TNS name of the database Starting with Oracle 10g you can also use the syntax [//]host[:port][/service name]

 oracleFactory (const std::string &logon, ResourcePoolEventObserver &e=ResourcePoolStreamLogger::defaultLogger)
 
Parameters:
logon user/pass

 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

Constructor & Destructor Documentation

template<class TM, template< class > class SLMDC>
fatalmind::oracleFactory< TM, SLMDC >::oracleFactory ( const std::string &  service_name,
const std::string &  user,
const std::string &  pass,
ResourcePoolEventObserver e = ResourcePoolStreamLogger::defaultLogger 
) [inline]

Parameters:
service_name the TNS name of the database Starting with Oracle 10g you can also use the syntax [//]host[:port][/service name]

Parameters:
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.

template<class TM, template< class > class SLMDC>
fatalmind::oracleFactory< TM, SLMDC >::oracleFactory ( const std::string &  logon,
ResourcePoolEventObserver e = ResourcePoolStreamLogger::defaultLogger 
) [inline]

Parameters:
logon user/pass

Parameters:
e The Event Oberserver can be used to get notified about some events like failure. See ResourcePoolEventObserver for details.


The documentation for this class was generated from the following files:
Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3