Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions

OCIPL::OciConnection Struct Reference

wrap OCIEnv and OCISvcCtx together More...

#include <ocipl.h>

Collaboration diagram for OCIPL::OciConnection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OciConnection (OCIEnv *envh, OCISvcCtx *ctx)
void commit (ub4 flags=OCI_DEFAULT)
void rollback (ub4 flags=OCI_DEFAULT)
void cancel ()
 cancel a pending OCI call in the worker thread
 operator OCIError * ()

Static Public Member Functions

static OciConnectionCreateFromESqlContext (void *context)

Public Attributes

OciEnv _env
OciContext _ctx

Private Member Functions

 OciConnection (const OciConnection &)

Detailed Description

wrap OCIEnv and OCISvcCtx together

Definition at line 1096 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::OciConnection::OciConnection ( OCIEnv *  envh,
OCISvcCtx *  ctx 
) [inline]

Definition at line 1098 of file ocipl.h.

     :  _env(envh),
        _ctx(_env, ctx)
    {
    }
OCIPL::OciConnection::OciConnection ( const OciConnection  ) [private]

Member Function Documentation

void OCIPL::OciConnection::cancel (  )

cancel a pending OCI call in the worker thread

Definition at line 353 of file ocipl.cpp.

References _ctx, _env, OCIPL::OciEnv::_errh, and OCIPL::oci_check_error().

{
    sword res = OCIBreak(_ctx, _env._errh);

    oci_check_error(_env._errh, res);
}

Here is the call graph for this function:

void OCIPL::OciConnection::commit ( ub4  flags = OCI_DEFAULT ) [inline]

Definition at line 1107 of file ocipl.h.

    {
        _ctx.commit(flags);
    }
static OciConnection* OCIPL::OciConnection::CreateFromESqlContext ( void *  context ) [static]
OCIPL::OciConnection::operator OCIError * (  ) [inline]

Definition at line 1134 of file ocipl.h.

    {
        return _env._errh;
    }
void OCIPL::OciConnection::rollback ( ub4  flags = OCI_DEFAULT ) [inline]

Definition at line 1113 of file ocipl.h.

    {
        _ctx.rollback(flags);
    }

Member Data Documentation

Definition at line 1127 of file ocipl.h.

Referenced by cancel().

Definition at line 1126 of file ocipl.h.

Referenced by cancel(), and OCIPL::OciLob::OciLob().


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