Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

OCIPL::OciDescriptor< TYPE > Struct Template Reference

OCI descriptor handles. More...

#include <ocipl.h>

Inheritance diagram for OCIPL::OciDescriptor< TYPE >:
Inheritance graph
[legend]
Collaboration diagram for OCIPL::OciDescriptor< TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef OciHandleID< TYPE > super
typedef TYPE HandleType

Public Member Functions

 OciDescriptor (OciEnv &env)
 OciDescriptor (OciEnv &env, HandleType *handle)
 ~OciDescriptor ()
 operator HandleType * ()
void destroy ()
void get_attribute (dvoid *attributep, ub4 *sizep, ub4 attrtype)

Static Public Member Functions

static ub4 get_type_id ()
static ub4 get_attr_id ()

Protected Attributes

HandleType_handle
OciEnv_env

Detailed Description

template<typename TYPE>
struct OCIPL::OciDescriptor< TYPE >

OCI descriptor handles.

Definition at line 666 of file ocipl.h.


Member Typedef Documentation

template<typename TYPE >
typedef TYPE OCIPL::OciDescriptor< TYPE >::HandleType

Definition at line 669 of file ocipl.h.

template<typename TYPE >
typedef OciHandleID<TYPE> OCIPL::OciDescriptor< TYPE >::super

Definition at line 668 of file ocipl.h.


Constructor & Destructor Documentation

template<typename TYPE >
OCIPL::OciDescriptor< TYPE >::OciDescriptor ( OciEnv env ) [inline]

Definition at line 672 of file ocipl.h.

     : _env(env), _handle(0)
    {
    }
template<typename TYPE >
OCIPL::OciDescriptor< TYPE >::OciDescriptor ( OciEnv env,
HandleType handle 
) [inline]

Definition at line 678 of file ocipl.h.

     : _env(env), _handle(handle)
    {
    }
template<typename TYPE >
OCIPL::OciDescriptor< TYPE >::~OciDescriptor (  ) [inline]

Definition at line 684 of file ocipl.h.

    {
        if (_handle)
            destroy();
    }

Member Function Documentation

template<typename TYPE >
void OCIPL::OciDescriptor< TYPE >::destroy (  ) [inline]

Definition at line 697 of file ocipl.h.

References OCIPL::oci_check_error().

    {
        sword res = OCIDescriptorFree(_handle, super::get_type_id());
        _handle = 0;

        oci_check_error(_env, res);
    }

Here is the call graph for this function:

template<typename TYPE>
ub4 OCIPL::OciHandleID< TYPE >::get_attr_id (  ) [inline, static, inherited]

Definition at line 400 of file ocipl.h.

{return OCI_ATTR_SERVER;}
template<typename TYPE >
void OCIPL::OciDescriptor< TYPE >::get_attribute ( dvoid *  attributep,
ub4 *  sizep,
ub4  attrtype 
) [inline]

Definition at line 706 of file ocipl.h.

References OCIPL::oci_check_error().

    {
        sword res = OCIAttrGet(_handle, super::get_type_id(), attributep, sizep, attrtype, _env._errh);
        oci_check_error(_env, res);
    }

Here is the call graph for this function:

template<typename TYPE>
ub4 OCIPL::OciHandleID< TYPE >::get_type_id (  ) [inline, static, inherited]

Definition at line 378 of file ocipl.h.

{return OCI_HTYPE_ENV;}
template<typename TYPE >
OCIPL::OciDescriptor< TYPE >::operator HandleType * (  ) [inline]

Definition at line 691 of file ocipl.h.

    {
        return _handle;
    }

Member Data Documentation

template<typename TYPE >
OciEnv& OCIPL::OciDescriptor< TYPE >::_env [protected]

Definition at line 714 of file ocipl.h.

template<typename TYPE >
HandleType* OCIPL::OciDescriptor< TYPE >::_handle [protected]

Definition at line 713 of file ocipl.h.


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