Public Member Functions | Protected Attributes

OCIPL::SqlDateTimeArray Struct Reference

wrapper for internal Oracle DATE type More...

#include <ocipl.h>

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

List of all members.

Public Member Functions

 SqlDateTimeArray (int size=g_OCIPL_BULK_ROWS)
 ~SqlDateTimeArray ()
const ocidatetimeget_datetime (int row) const
SqlDateTime get_sql_date (int row) const
ocidatetimeget_ref (int row)
const ocidatetimeget_ptr (int row) const
tstring str (int row) const
void set_datetime (int row, const SqlDateTime &datetime)
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

ocidatetime_buffers
int _count
SqlInd_pind

Detailed Description

wrapper for internal Oracle DATE type

Definition at line 1738 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::SqlDateTimeArray::SqlDateTimeArray ( int  size = g_OCIPL_BULK_ROWS ) [inline]

Definition at line 1741 of file ocipl.h.

     :  SqlIndArray(size),
        _buffers(static_cast<ocidatetime*>(ocipl_alloc(size*sizeof(ocidatetime))))
    {
    }
OCIPL::SqlDateTimeArray::~SqlDateTimeArray (  ) [inline]

Definition at line 1747 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 ocidatetime& OCIPL::SqlDateTimeArray::get_datetime ( int  row ) const [inline]

Definition at line 1752 of file ocipl.h.

Referenced by OCIPL::SqlVariantArray::bind_input().

{return _buffers[row];}

Here is the caller graph for this function:

const ocidatetime* OCIPL::SqlDateTimeArray::get_ptr ( int  row ) const [inline]

Definition at line 1756 of file ocipl.h.

{return &_buffers[row];}
ocidatetime* OCIPL::SqlDateTimeArray::get_ref ( int  row ) [inline]

Definition at line 1755 of file ocipl.h.

Referenced by OCIPL::DefinePar::DefinePar(), and OCIPL::SqlVariantArray::sql_date().

{return &_buffers[row];}

Here is the caller graph for this function:

SqlDateTime OCIPL::SqlDateTimeArray::get_sql_date ( int  row ) const [inline]

Definition at line 1753 of file ocipl.h.

{return SqlDateTime(_buffers[row], _pind[row]);}
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:

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

Definition at line 1283 of file ocipl.h.

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

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::SqlDateTimeArray::set_datetime ( int  row,
const SqlDateTime datetime 
) [inline]

Definition at line 1766 of file ocipl.h.

References OCIPL::SqlDateTime::get_datetime(), and OCIPL::SqlValue::ind().

Referenced by OCIPL::SqlVariantArray::set_datetime().

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

Here is the call graph for this function:

Here is the caller graph for this function:

tstring OCIPL::SqlDateTimeArray::str ( int  row ) const [inline]

Definition at line 1758 of file ocipl.h.

References OCIPL::ocidatetime_to_string().

Referenced by OCIPL::SqlVariantArray::str().

    {
        if (_pind[row].is_not_null())
            return ocidatetime_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 1769 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: