Public Member Functions | Protected Attributes

OCIPL::OciDateArray Struct Reference

OCI DATE type bind variable array. More...

#include <ocipl.h>

Inheritance diagram for OCIPL::OciDateArray:
Inheritance graph
[legend]
Collaboration diagram for OCIPL::OciDateArray:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OciDateArray (int size=g_OCIPL_BULK_ROWS)
 ~OciDateArray ()
const OCIDateget_date (int row) const
OciDate get_oci_date (int row) const
OCIDateget_ref (int row)
const OCIDateget_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 SqlIndind (int idx) const
SqlIndind (int idx)
int get_buffer_count () const

Protected Attributes

OCIDate_buffers
int _count
SqlInd_pind

Detailed Description

OCI DATE type bind variable array.

Definition at line 1630 of file ocipl.h.


Constructor & Destructor Documentation

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]

Definition at line 1639 of file ocipl.h.

References ocipl_free.


Member Function Documentation

int OCIPL::SqlIndArray::get_buffer_count (  ) const [inline, inherited]

Definition at line 1285 of file ocipl.h.

Referenced by OCIPL::DefinePar::DefinePar().

{return _count;}

Here is the caller graph for this function:

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];}

Here is the caller graph for this function:

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;
    }

Here is the call graph for this function:

int OCIPL::OciDateArray::get_int_date ( int  row ) const [inline]

Definition at line 1666 of file ocipl.h.

    {
        if (_pind[row].is_not_null()) {
            const OCIDate& date = _buffers[row];
            return ((date.OCIDateYYYY*100) + date.OCIDateMM)*100 + date.OCIDateDD;
        } else
            return 0;
    }
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;
    }

Here is the call graph for this function:

OciDate OCIPL::OciDateArray::get_oci_date ( int  row ) const [inline]

Definition at line 1645 of file ocipl.h.

{return OciDate(_buffers[row], _pind[row]);}
const OCIDate* OCIPL::OciDateArray::get_ref ( int  row ) const [inline]

Definition at line 1648 of file ocipl.h.

{return &_buffers[row];}
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];}

Here is the caller graph for this function:

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;
    }

Here is the call graph for this function:

SqlInd& OCIPL::SqlIndArray::ind ( int  idx ) [inline, inherited]

Definition at line 1283 of file ocipl.h.

{return _pind[idx];}
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];}

Here is the caller graph for this function:

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();}

Here is the caller graph for this function:

bool OCIPL::SqlIndArray::is_null ( int  idx ) const [inline, inherited]

Definition at line 1279 of file ocipl.h.

{return _pind[idx].is_null();}
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().

{_buffers[row] = date; _pind[row] = date.ind();}

Here is the call graph for this function:

Here is the caller graph for this function:

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();
    }

Here is the call graph for this function:

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();
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1702 of file ocipl.h.

int OCIPL::SqlIndArray::_count [protected, inherited]
SqlInd* OCIPL::SqlIndArray::_pind [protected, inherited]

Definition at line 1289 of file ocipl.h.

Referenced by OCIPL::SqlIndArray::SqlIndArray().


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