CLOB data holder structure. More...
#include <ocipl.h>
Public Member Functions | |
OciClob (OciConnection &conn) | |
OciClob (const OciLob &other) | |
ub4 | write (const dvoid *bufp, ub4 buflen, ub4 offset, ub4 amount, ub2 csid=0, ub1 csfrm=SQLCS_IMPLICIT) |
ub4 | read (dvoid *bufp, ub4 buflen, ub4 offset, ub4 amount, ub2 csid=0, ub1 csfrm=SQLCS_IMPLICIT) |
boolean | operator== (const OciLob &other) const |
void | clear () |
void * | get_ref () |
const void * | get_ptr () const |
ub4 | get_chunk_size () |
void | copy (const OciLob &src, ub4 amount, ub4 dst_offset, ub4 src_offset) |
void | append (const OciLob &src) |
void | trim (ub4 newlen=0) |
ub4 | erase (ub4 offset, ub4 amount) |
void | enable_buffering () |
void | disable_buffering () |
void | flush (ub4 flag=OCI_LOB_BUFFER_NOFREE) |
bool | is_null () const |
bool | is_not_null () const |
const SqlInd & | ind () const |
SqlInd & | ind () |
Protected Attributes | |
OciConnection & | _conn |
OCILobLocator * | _loc |
SqlInd | _ind |
Friends | |
struct | OciOpenLob |
CLOB data holder structure.
Definition at line 2219 of file ocipl.h.
OCIPL::OciClob::OciClob | ( | OciConnection & | conn ) | [inline] |
OCIPL::OciClob::OciClob | ( | const OciLob & | other ) | [inline] |
void OCIPL::OciLob::append | ( | const OciLob & | src ) | [inline, inherited] |
Definition at line 2080 of file ocipl.h.
References OCIPL::OciLob::_loc, and OCIPL::oci_check_error().
{ sword res = OCILobAppend(_conn._ctx, _conn._env._errh, _loc, src._loc); oci_check_error(_conn._env._errh, res); }
void OCIPL::OciLob::clear | ( | ) | [inline, inherited] |
Definition at line 2018 of file ocipl.h.
References OCIPL::oci_check_error().
{ ub4 lobEmpty = 0; sword res = OCIAttrSet(_loc, OCI_DTYPE_LOB, &lobEmpty, 0, OCI_ATTR_LOBEMPTY, _conn._env._errh); oci_check_error(_conn._env._errh, res); }
void OCIPL::OciLob::copy | ( | const OciLob & | src, |
ub4 | amount, | ||
ub4 | dst_offset, | ||
ub4 | src_offset | ||
) | [inline, inherited] |
Definition at line 2074 of file ocipl.h.
References OCIPL::OciLob::_loc, and OCIPL::oci_check_error().
{ sword res = OCILobCopy(_conn._ctx, _conn._env._errh, _loc, src._loc, amount, dst_offset, src_offset); oci_check_error(_conn._env._errh, res); }
void OCIPL::OciLob::disable_buffering | ( | ) | [inline, inherited] |
Definition at line 2107 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobDisableBuffering(_conn._ctx, _conn._env._errh, _loc); oci_check_error(_conn._env._errh, res); }
void OCIPL::OciLob::enable_buffering | ( | ) | [inline, inherited] |
Definition at line 2101 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobEnableBuffering(_conn._ctx, _conn._env._errh, _loc); oci_check_error(_conn._env._errh, res); }
ub4 OCIPL::OciLob::erase | ( | ub4 | offset, |
ub4 | amount | ||
) | [inline, inherited] |
Definition at line 2092 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobErase(_conn._ctx, _conn._env._errh, _loc, &amount, offset); oci_check_error(_conn._env._errh, res); return amount; }
void OCIPL::OciLob::flush | ( | ub4 | flag = OCI_LOB_BUFFER_NOFREE ) |
[inline, inherited] |
Definition at line 2113 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobFlushBuffer(_conn._ctx, _conn._env._errh, _loc, flag); oci_check_error(_conn._env._errh, res); }
ub4 OCIPL::OciLob::get_chunk_size | ( | ) | [inline, inherited] |
Definition at line 2031 of file ocipl.h.
References OCIPL::oci_check_error().
{ ub4 len; sword res = OCILobGetLength(_conn._ctx, _conn._env._errh, _loc, &len); oci_check_error(_conn._env._errh, res); return len; }
const void* OCIPL::OciLob::get_ptr | ( | ) | const [inline, inherited] |
void* OCIPL::OciLob::get_ref | ( | ) | [inline, inherited] |
const SqlInd& OCIPL::SqlValue::ind | ( | ) | const [inline, inherited] |
Definition at line 1244 of file ocipl.h.
Referenced by OCIPL::BindInput::BindInput(), OCIPL::BindOutput::BindOutput(), OCIPL::DefinePar::DefinePar(), OCIPL::OciDate::OciDate(), OCIPL::OciDateArray::set_date(), OCIPL::SqlDateTimeArray::set_datetime(), and OCIPL::SqlNumberArray::set_number().
{return _ind;}
SqlInd& OCIPL::SqlValue::ind | ( | ) | [inline, inherited] |
bool OCIPL::SqlValue::is_not_null | ( | ) | const [inline, inherited] |
Definition at line 1242 of file ocipl.h.
Referenced by OCIPL::SqlInt::operator int().
{return _ind.is_not_null();}
bool OCIPL::SqlValue::is_null | ( | ) | const [inline, inherited] |
boolean OCIPL::OciLob::operator== | ( | const OciLob & | other ) | const [inline, inherited] |
Definition at line 2007 of file ocipl.h.
References OCIPL::OciLob::_loc, and OCIPL::oci_check_error().
{ boolean is_equal; sword res = OCILobIsEqual(_conn._env, _loc, other._loc, &is_equal); oci_check_error(_conn._env._errh, res); return is_equal; }
ub4 OCIPL::OciClob::read | ( | dvoid * | bufp, |
ub4 | buflen, | ||
ub4 | offset, | ||
ub4 | amount, | ||
ub2 | csid = 0 , |
||
ub1 | csfrm = SQLCS_IMPLICIT |
||
) | [inline] |
Definition at line 2250 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobRead(_conn._ctx, _conn._env._errh, _loc, &amount, offset, bufp, buflen, NULL/*dvoid* ctxp*/, NULL/*sb4 (*cbfp)(dvoid*ctxp,CONST dvoid*bufp,ub4*len,ub1*piece)*/, csid, csfrm); oci_check_error(_conn._env._errh, res); return amount; }
void OCIPL::OciLob::trim | ( | ub4 | newlen = 0 ) |
[inline, inherited] |
Definition at line 2086 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobTrim(_conn._ctx, _conn._env._errh, _loc, newlen); oci_check_error(_conn._env._errh, res); }
ub4 OCIPL::OciClob::write | ( | const dvoid * | bufp, |
ub4 | buflen, | ||
ub4 | offset, | ||
ub4 | amount, | ||
ub2 | csid = 0 , |
||
ub1 | csfrm = SQLCS_IMPLICIT |
||
) | [inline] |
Definition at line 2224 of file ocipl.h.
References OCIPL::oci_check_error().
{ sword res = OCILobWrite(_conn._ctx, _conn._env._errh, _loc, &amount, offset, (dvoid*)bufp, buflen, OCI_ONE_PIECE/*ub1 piece*/, NULL/*dvoid* ctxp*/, NULL/*sb4 (*cbfp)(dvoid*ctxp,dvoid*bufp,ub4*len,ub1*piece)*/, csid, csfrm); oci_check_error(_conn._env._errh, res); return amount; }
OciConnection& OCIPL::OciLob::_conn [protected, inherited] |
SqlInd OCIPL::SqlValue::_ind [protected, inherited] |
Definition at line 1248 of file ocipl.h.
Referenced by OCIPL::OciDate::OciDate(), OCIPL::SqlString::operator=(), and OCIPL::SqlNumber::SqlNumber().
OCILobLocator* OCIPL::OciLob::_loc [protected, inherited] |
Definition at line 2121 of file ocipl.h.
Referenced by OCIPL::OciLob::append(), OCIPL::OciLob::copy(), OCIPL::OciLob::OciLob(), and OCIPL::OciLob::operator==().