OCI DATE type bind variable array. More...
#include <ocipl.h>
Public Member Functions | |
OciDateArray (int size=g_OCIPL_BULK_ROWS) | |
~OciDateArray () | |
const OCIDate & | get_date (int row) const |
OciDate | get_oci_date (int row) const |
OCIDate * | get_ref (int row) |
const OCIDate * | get_ref (int row) const |
tstring | str (int row) const |
tstring | short_str (int row) const |
int | get_int_date (int row) const |
struct tm * | get_gmt (int row) const |
struct tm * | get_lctime (int row) const |
time_t | get_time_t (int row) const |
void | set_date (int row, const OciDate &date) |
bool | is_null (int idx) const |
bool | is_not_null (int idx) const |
const SqlInd & | ind (int idx) const |
SqlInd & | ind (int idx) |
int | get_buffer_count () const |
Protected Attributes | |
OCIDate * | _buffers |
int | _count |
SqlInd * | _pind |
OCI DATE type bind variable array.
Definition at line 1630 of file ocipl.h.
OCIPL::OciDateArray::OciDateArray | ( | int | size = g_OCIPL_BULK_ROWS ) |
[inline] |
Definition at line 1633 of file ocipl.h.
: SqlIndArray(size), _buffers(static_cast<OCIDate*>(ocipl_alloc(size*sizeof(OCIDate)))) { }
OCIPL::OciDateArray::~OciDateArray | ( | ) | [inline] |
int OCIPL::SqlIndArray::get_buffer_count | ( | ) | const [inline, inherited] |
Definition at line 1285 of file ocipl.h.
Referenced by OCIPL::DefinePar::DefinePar().
{return _count;}
const OCIDate& OCIPL::OciDateArray::get_date | ( | int | row ) | const [inline] |
Definition at line 1644 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::bind_input().
{return _buffers[row];}
struct tm* OCIPL::OciDateArray::get_gmt | ( | int | row ) | const [inline, read] |
Definition at line 1675 of file ocipl.h.
References OCIPL::ocidate_to_gmt().
{ if (_pind[row].is_not_null()) return ocidate_to_gmt(_buffers[row]); else return 0; }
int OCIPL::OciDateArray::get_int_date | ( | int | row ) | const [inline] |
struct tm* OCIPL::OciDateArray::get_lctime | ( | int | row ) | const [inline, read] |
Definition at line 1683 of file ocipl.h.
References OCIPL::ocidate_to_lctime().
{ if (_pind[row].is_not_null()) return ocidate_to_lctime(_buffers[row]); else return 0; }
OciDate OCIPL::OciDateArray::get_oci_date | ( | int | row ) | const [inline] |
const OCIDate* OCIPL::OciDateArray::get_ref | ( | int | row ) | const [inline] |
OCIDate* OCIPL::OciDateArray::get_ref | ( | int | row ) | [inline] |
Definition at line 1647 of file ocipl.h.
Referenced by OCIPL::DefinePar::DefinePar(), and OCIPL::SqlVariantArray::oci_date().
{return &_buffers[row];}
time_t OCIPL::OciDateArray::get_time_t | ( | int | row ) | const [inline] |
Definition at line 1691 of file ocipl.h.
References OCIPL::ocidate_to_time_t().
{ if (_pind[row].is_not_null()) return ocidate_to_time_t(_buffers[row]); else return 0; }
SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | [inline, inherited] |
const SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | const [inline, inherited] |
Definition at line 1282 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::bind_input(), and OCIPL::DefinePar::DefinePar().
{return _pind[idx];}
bool OCIPL::SqlIndArray::is_not_null | ( | int | idx ) | const [inline, inherited] |
Definition at line 1280 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::is_not_null(), OCIPL::SqlVariantArray::number(), OCIPL::SqlVariantArray::oci_date(), and OCIPL::SqlVariantArray::sql_date().
{return _pind[idx].is_not_null();}
bool OCIPL::SqlIndArray::is_null | ( | int | idx ) | const [inline, inherited] |
void OCIPL::OciDateArray::set_date | ( | int | row, |
const OciDate & | date | ||
) | [inline] |
Definition at line 1699 of file ocipl.h.
References OCIPL::SqlValue::ind().
Referenced by OCIPL::SqlVariantArray::set_date().
tstring OCIPL::OciDateArray::short_str | ( | int | row ) | const [inline] |
Definition at line 1658 of file ocipl.h.
References OCIPL::ocidate_to_short_string().
{ if (_pind[row].is_not_null()) return ocidate_to_short_string(_buffers[row]); else return tstring(); }
tstring OCIPL::OciDateArray::str | ( | int | row ) | const [inline] |
Definition at line 1650 of file ocipl.h.
References OCIPL::ocidate_to_string().
Referenced by OCIPL::SqlVariantArray::str().
{ if (_pind[row].is_not_null()) return ocidate_to_string(_buffers[row]); else return tstring(); }
OCIDate* OCIPL::OciDateArray::_buffers [protected] |
int OCIPL::SqlIndArray::_count [protected, inherited] |
Definition at line 1288 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray(), OCIPL::SqlIntArray::SqlIntArray(), and OCIPL::SqlStringArray::SqlStringArray().
SqlInd* OCIPL::SqlIndArray::_pind [protected, inherited] |
Definition at line 1289 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray().