OCI descriptor handles. More...
#include <ocipl.h>
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 |
OCI descriptor handles.
Definition at line 666 of file ocipl.h.
typedef TYPE OCIPL::OciDescriptor< TYPE >::HandleType |
typedef OciHandleID<TYPE> OCIPL::OciDescriptor< TYPE >::super |
OCIPL::OciDescriptor< TYPE >::OciDescriptor | ( | OciEnv & | env ) | [inline] |
OCIPL::OciDescriptor< TYPE >::OciDescriptor | ( | OciEnv & | env, |
HandleType * | handle | ||
) | [inline] |
OCIPL::OciDescriptor< TYPE >::~OciDescriptor | ( | ) | [inline] |
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); }
ub4 OCIPL::OciHandleID< TYPE >::get_attr_id | ( | ) | [inline, static, inherited] |
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); }
ub4 OCIPL::OciHandleID< TYPE >::get_type_id | ( | ) | [inline, static, inherited] |
OCIPL::OciDescriptor< TYPE >::operator HandleType * | ( | ) | [inline] |
OciEnv& OCIPL::OciDescriptor< TYPE >::_env [protected] |
HandleType* OCIPL::OciDescriptor< TYPE >::_handle [protected] |