oralib  0.0.2
Public Member Functions | Protected Attributes | Friends | List of all members
Oracle::Nexus Class Reference

Encapsulate the occi::Connection class. More...

#include <oracle.h>

Collaboration diagram for Oracle::Nexus:
Collaboration graph
[legend]

Public Member Functions

 Nexus (OracleEnv &, const char *, const char *, const char *)
 Construct by creating a occi::Connection. More...
 
 Nexus (const Nexus &)=delete
 
const Nexusoperator= (const Nexus &)=delete
 
 ~Nexus (void)
 Destroy by freeing the occi::Connection. More...
 
oracle::occi::Connection & operator() (void)
 

Protected Attributes

OracleEnvm_oe
 Creator of this object.
 
oracle::occi::Connection * m_conn
 Wrapped OCCI object.
 

Friends

class SQL
 
class OracleEnv
 

Detailed Description

Encapsulate the occi::Connection class.

An instance represents a connection to the oracle server. Use the call operator on an instance to access the underlying occi object.

Note
Do not share an instance between threads.

Constructor & Destructor Documentation

◆ Nexus()

Oracle::Nexus::Nexus ( OracleEnv oe,
const char *  user,
const char *  pass,
const char *  db 
)
explicit

Construct by creating a occi::Connection.

This is thread safe.

Parameters
oe- Oracle environment.
user- Oracle user name for logins
pass- Oracle password for logins
db- Oracle database for logins

◆ ~Nexus()

Oracle::Nexus::~Nexus ( void  )

Destroy by freeing the occi::Connection.

This is thread safe.


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