| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions
oracle::occi::Environment Class Reference

`#include <occiControl.h>`

List of all members.

## Public Types

enum | Mode { DEFAULT = OCI_DEFAULT, OBJECT = OCI_OBJECT, SHARED = OCI_SHARED, NO_USERCALLBACKS = OCI_NO_UCB, THREADED_MUTEXED = OCI_THREADED, THREADED_UNMUTEXED = OCI_THREADED | OCI_ENV_NO_MUTEX, EVENTS = OCI_EVENTS, USE_LDAP = OCI_USE_LDAP }

## Public Member Functions

virtual | ~Environment ()
virtual Connection * | createConnection (const OCCI_STD_NAMESPACE::string &userName, const OCCI_STD_NAMESPACE::string &password, const OCCI_STD_NAMESPACE::string &connectString="")=0
virtual void | terminateConnection (Connection *connection)=0
virtual ConnectionPool * | createConnectionPool (const OCCI_STD_NAMESPACE::string &poolUserName, const OCCI_STD_NAMESPACE::string &poolPassword, const OCCI_STD_NAMESPACE::string &connectString="", unsigned int minConn=0, unsigned int maxConn=1, unsigned int incrConn=1)=0
virtual void | terminateConnectionPool (ConnectionPool *poolp)=0
virtual unsigned int | getCurrentHeapSize () const =0
virtual OCIEnv * | getOCIEnvironment () const =0
virtual Map * | getMap () const =0
virtual void | setCacheMaxSize (unsigned int maxSize)=0
virtual unsigned int | getCacheMaxSize () const =0
virtual void | setCacheOptSize (unsigned int OptSize)=0
virtual unsigned int | getCacheOptSize () const =0
virtual Connection * | createConnection (const UString &userName, const UString &password, const UString &connectString)=0
virtual ConnectionPool * | createConnectionPool (const UString &poolUserName, const UString &poolPassword, const UString &connectString, unsigned int minConn=0, unsigned int maxConn=1, unsigned int incrConn=1)=0
virtual Connection * | getXAConnection (const OCCI_STD_NAMESPACE::string &dbname)=0
virtual void | releaseXAConnection (Connection *conn)=0
virtual StatelessConnectionPool * | createStatelessConnectionPool (const OCCI_STD_NAMESPACE::string &poolUserName, const OCCI_STD_NAMESPACE::string &poolPassword, const OCCI_STD_NAMESPACE::string &connectString="", unsigned int maxConn=1, unsigned int minConn=0, unsigned int incrConn=1, StatelessConnectionPool::PoolType pType=StatelessConnectionPool::HETEROGENEOUS)=0
virtual StatelessConnectionPool * | createStatelessConnectionPool (const UString &poolUserName, const UString &poolPassword, const UString &connectString, unsigned int maxConn=1, unsigned int minConn=0, unsigned int incrConn=1, StatelessConnectionPool::PoolType pType=StatelessConnectionPool::HETEROGENEOUS)=0
virtual void | terminateStatelessConnectionPool (StatelessConnectionPool *poolp, StatelessConnectionPool::DestroyMode mode=StatelessConnectionPool::DEFAULT)=0
virtual void | setLDAPAuthentication (unsigned int mode)=0
virtual unsigned int | getLDAPAuthentication () const =0
virtual void | setLDAPLoginNameAndPassword (const OCCI_STD_NAMESPACE::string &login, const OCCI_STD_NAMESPACE::string &passwd)=0
virtual void | setLDAPAdminContext (const OCCI_STD_NAMESPACE::string &ctx)=0
virtual OCCI_STD_NAMESPACE::string | getLDAPAdminContext () const =0
virtual void | setLDAPHostAndPort (const OCCI_STD_NAMESPACE::string &host, unsigned int port)=0
virtual OCCI_STD_NAMESPACE::string | getLDAPHost () const =0
virtual unsigned int | getLDAPPort () const =0
virtual void | registerSubscriptions (const OCCI_STD_NAMESPACE::vector< aq::Subscription > &sub)=0
virtual void | unregisterSubscription (const aq::Subscription &sub)=0
virtual void | enableSubscription (const aq::Subscription &sub)=0
virtual void | disableSubscription (const aq::Subscription &sub)=0
virtual bool | getCacheSortedFlush () const =0
virtual void | setCacheSortedFlush (bool flag)=0

## Static Public Member Functions

static Environment * | createEnvironment (Mode mode=DEFAULT, void *ctxp=0, void *(*malocfp)(void *ctxp, size_t size)=0, void *(*ralocfp)(void *ctxp, void *memptr, size_t newsize)=0, void(*mfreefp)(void *ctxp, void *memptr)=0)
static Environment * | createEnvironment (const OCCI_STD_NAMESPACE::string &charset, const OCCI_STD_NAMESPACE::string &ncharset, Mode mode=DEFAULT, void *ctxp=0, void *(*malocfp)(void *ctxp, size_t size)=0, void *(*ralocfp)(void *ctxp, void *memptr, size_t newsize)=0, void(*mfreefp)(void *ctxp, void *memptr)=0)
static void | terminateEnvironment (Environment *env)
static Environment * | getXAEnvironment (const OCCI_STD_NAMESPACE::string &dbname)
static void | releaseXAEnvironment (Environment *env)

## Member Enumeration Documentation

enum oracle::occi::Environment::Mode

Enumerator:

  DEFAULT |
  OBJECT |
  SHARED |
  NO_USERCALLBACKS |
  THREADED_MUTEXED |
  THREADED_UNMUTEXED |
  EVENTS |
  USE_LDAP |

## Constructor & Destructor Documentation

virtual oracle::occi::Environment::~Environment | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual Connection* oracle::occi::Environment::createConnection | ( | const OCCI_STD_NAMESPACE::string & | userName,
|  | const OCCI_STD_NAMESPACE::string & | password,
|  | const OCCI_STD_NAMESPACE::string & | connectString = `""`
| ) |  | `[pure virtual]`

virtual Connection* oracle::occi::Environment::createConnection | ( | const UString & | userName,
|  | const UString & | password,
|  | const UString & | connectString
| ) |  | `[pure virtual]`

virtual ConnectionPool* oracle::occi::Environment::createConnectionPool | ( | const OCCI_STD_NAMESPACE::string & | poolUserName,
|  | const OCCI_STD_NAMESPACE::string & | poolPassword,
|  | const OCCI_STD_NAMESPACE::string & | connectString = `""`,
|  | unsigned int | minConn = `0`,
|  | unsigned int | maxConn = `1`,
|  | unsigned int | incrConn = `1`
| ) |  | `[pure virtual]`

virtual ConnectionPool* oracle::occi::Environment::createConnectionPool | ( | const UString & | poolUserName,
|  | const UString & | poolPassword,
|  | const UString & | connectString,
|  | unsigned int | minConn = `0`,
|  | unsigned int | maxConn = `1`,
|  | unsigned int | incrConn = `1`
| ) |  | `[pure virtual]`

static Environment* oracle::occi::Environment::createEnvironment | ( | const OCCI_STD_NAMESPACE::string & | charset,
|  | const OCCI_STD_NAMESPACE::string & | ncharset,
|  | Mode | mode = `DEFAULT`,
|  | void * | ctxp = `0`,
|  | void *(*)(void *ctxp, size_t size) | malocfp = `0`,
|  | void *(*)(void *ctxp, void *memptr, size_t newsize) | ralocfp = `0`,
|  | void(*)(void *ctxp, void *memptr) | mfreefp = `0`
| ) |  | `[static]`

static Environment* oracle::occi::Environment::createEnvironment | ( | Mode | mode = `DEFAULT`,
|  | void * | ctxp = `0`,
|  | void *(*)(void *ctxp, size_t size) | malocfp = `0`,
|  | void *(*)(void *ctxp, void *memptr, size_t newsize) | ralocfp = `0`,
|  | void(*)(void *ctxp, void *memptr) | mfreefp = `0`
| ) |  | `[static]`

virtual StatelessConnectionPool* oracle::occi::Environment::createStatelessConnectionPool | ( | const OCCI_STD_NAMESPACE::string & | poolUserName,
|  | const OCCI_STD_NAMESPACE::string & | poolPassword,
|  | const OCCI_STD_NAMESPACE::string & | connectString = `""`,
|  | unsigned int | maxConn = `1`,
|  | unsigned int | minConn = `0`,
|  | unsigned int | incrConn = `1`,
|  | StatelessConnectionPool::PoolType | pType = `StatelessConnectionPool::HETEROGENEOUS`
| ) |  | `[pure virtual]`

virtual StatelessConnectionPool* oracle::occi::Environment::createStatelessConnectionPool | ( | const UString & | poolUserName,
|  | const UString & | poolPassword,
|  | const UString & | connectString,
|  | unsigned int | maxConn = `1`,
|  | unsigned int | minConn = `0`,
|  | unsigned int | incrConn = `1`,
|  | StatelessConnectionPool::PoolType | pType = `StatelessConnectionPool::HETEROGENEOUS`
| ) |  | `[pure virtual]`

virtual void oracle::occi::Environment::disableSubscription | ( | const aq::Subscription & | sub | ) | `[pure virtual]`

virtual void oracle::occi::Environment::enableSubscription | ( | const aq::Subscription & | sub | ) | `[pure virtual]`

virtual unsigned int oracle::occi::Environment::getCacheMaxSize | ( |  | ) | const`[pure virtual]`

virtual unsigned int oracle::occi::Environment::getCacheOptSize | ( |  | ) | const`[pure virtual]`

virtual bool oracle::occi::Environment::getCacheSortedFlush | ( |  | ) | const`[pure virtual]`

virtual unsigned int oracle::occi::Environment::getCurrentHeapSize | ( |  | ) | const`[pure virtual]`

virtual OCCI_STD_NAMESPACE::string oracle::occi::Environment::getLDAPAdminContext | ( |  | ) | const`[pure virtual]`

virtual unsigned int oracle::occi::Environment::getLDAPAuthentication | ( |  | ) | const`[pure virtual]`

virtual OCCI_STD_NAMESPACE::string oracle::occi::Environment::getLDAPHost | ( |  | ) | const`[pure virtual]`

virtual unsigned int oracle::occi::Environment::getLDAPPort | ( |  | ) | const`[pure virtual]`

virtual Map* oracle::occi::Environment::getMap | ( |  | ) | const`[pure virtual]`

virtual OCIEnv* oracle::occi::Environment::getOCIEnvironment | ( |  | ) | const`[pure virtual]`

virtual Connection* oracle::occi::Environment::getXAConnection | ( | const OCCI_STD_NAMESPACE::string & | dbname | ) | `[pure virtual]`

static Environment* oracle::occi::Environment::getXAEnvironment | ( | const OCCI_STD_NAMESPACE::string & | dbname | ) | `[static]`

virtual void oracle::occi::Environment::registerSubscriptions | ( | const OCCI_STD_NAMESPACE::vector< aq::Subscription > & | sub | ) | `[pure virtual]`

virtual void oracle::occi::Environment::releaseXAConnection | ( | Connection * | conn | ) | `[pure virtual]`

static void oracle::occi::Environment::releaseXAEnvironment | ( | Environment * | env | ) | `[static]`

virtual void oracle::occi::Environment::setCacheMaxSize | ( | unsigned int | maxSize | ) | `[pure virtual]`

virtual void oracle::occi::Environment::setCacheOptSize | ( | unsigned int | OptSize | ) | `[pure virtual]`

virtual void oracle::occi::Environment::setCacheSortedFlush | ( | bool | flag | ) | `[pure virtual]`

virtual void oracle::occi::Environment::setLDAPAdminContext | ( | const OCCI_STD_NAMESPACE::string & | ctx | ) | `[pure virtual]`

virtual void oracle::occi::Environment::setLDAPAuthentication | ( | unsigned int | mode | ) | `[pure virtual]`

virtual void oracle::occi::Environment::setLDAPHostAndPort | ( | const OCCI_STD_NAMESPACE::string & | host,
|  | unsigned int | port
| ) |  | `[pure virtual]`

virtual void oracle::occi::Environment::setLDAPLoginNameAndPassword | ( | const OCCI_STD_NAMESPACE::string & | login,
|  | const OCCI_STD_NAMESPACE::string & | passwd
| ) |  | `[pure virtual]`

virtual void oracle::occi::Environment::terminateConnection | ( | Connection * | connection | ) | `[pure virtual]`

virtual void oracle::occi::Environment::terminateConnectionPool | ( | ConnectionPool * | poolp | ) | `[pure virtual]`

static void oracle::occi::Environment::terminateEnvironment | ( | Environment * | env | ) | `[static]`

virtual void oracle::occi::Environment::terminateStatelessConnectionPool | ( | StatelessConnectionPool * | poolp,
|  | StatelessConnectionPool::DestroyMode | mode = `StatelessConnectionPool::DEFAULT`
| ) |  | `[pure virtual]`

virtual void oracle::occi::Environment::unregisterSubscription | ( | const aq::Subscription & | sub | ) | `[pure virtual]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/Oracle/OCI/include/occiControl.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines