"simple" OCI handles without OciEnv More...
#include <ocipl.h>
Public Types | |
typedef OciHandleID< TYPE > | super |
typedef TYPE | HandleType |
Public Member Functions | |
OciSimpleHandle () | |
OciSimpleHandle (OCIEnv *envh, HandleType *handle) | |
OciSimpleHandle (OCIEnv *envh) | |
~OciSimpleHandle () | |
operator HandleType * () | |
void | alloc (OCIEnv *envh) |
void | destroy () |
void | get_attribute (dvoid *attributep, ub4 *sizep, ub4 attrtype, OCIError *errh) |
Static Public Member Functions | |
static ub4 | get_type_id () |
static ub4 | get_attr_id () |
Protected Attributes | |
HandleType * | _handle |
OCIEnv * | _envh |
"simple" OCI handles without OciEnv
Definition at line 407 of file ocipl.h.
typedef TYPE OCIPL::OciSimpleHandle< TYPE >::HandleType |
typedef OciHandleID<TYPE> OCIPL::OciSimpleHandle< TYPE >::super |
Reimplemented in OCIPL::OciEnvAlloc.
OCIPL::OciSimpleHandle< TYPE >::OciSimpleHandle | ( | ) | [inline] |
OCIPL::OciSimpleHandle< TYPE >::OciSimpleHandle | ( | OCIEnv * | envh, |
HandleType * | handle | ||
) | [inline] |
OCIPL::OciSimpleHandle< TYPE >::OciSimpleHandle | ( | OCIEnv * | envh ) | [inline] |
OCIPL::OciSimpleHandle< TYPE >::~OciSimpleHandle | ( | ) | [inline] |
void OCIPL::OciSimpleHandle< TYPE >::alloc | ( | OCIEnv * | envh ) | [inline] |
Definition at line 445 of file ocipl.h.
{ // If we already manage a handle, free it. if (_handle) destroy(); _envh = envh; sword res = OCIHandleAlloc(envh, (dvoid**)&_handle, super::get_type_id(), 0, 0); oci_check_error(envh, res); }
void OCIPL::OciSimpleHandle< TYPE >::destroy | ( | ) | [inline] |
Definition at line 458 of file ocipl.h.
{ sword res = OCIHandleFree(_handle, super::get_type_id()); _handle = 0; if (_envh) { oci_check_error(_envh, res); _envh = 0; } }
ub4 OCIPL::OciHandleID< TYPE >::get_attr_id | ( | ) | [inline, static, inherited] |
void OCIPL::OciSimpleHandle< TYPE >::get_attribute | ( | dvoid * | attributep, |
ub4 * | sizep, | ||
ub4 | attrtype, | ||
OCIError * | errh | ||
) | [inline] |
Definition at line 470 of file ocipl.h.
{ sword res = OCIAttrGet(_handle, super::get_type_id(), attributep, sizep, attrtype, errh); oci_check_error(_envh, res); }
ub4 OCIPL::OciHandleID< TYPE >::get_type_id | ( | ) | [inline, static, inherited] |
OCIPL::OciSimpleHandle< TYPE >::operator HandleType * | ( | ) | [inline] |
OCIEnv* OCIPL::OciSimpleHandle< TYPE >::_envh [protected] |
HandleType* OCIPL::OciSimpleHandle< TYPE >::_handle [protected] |