wrapper for internal Oracle DATE type More...
#include <ocipl.h>


Public Member Functions | |
| SqlDateTimeArray (int size=g_OCIPL_BULK_ROWS) | |
| ~SqlDateTimeArray () | |
| const ocidatetime & | get_datetime (int row) const |
| SqlDateTime | get_sql_date (int row) const |
| ocidatetime * | get_ref (int row) |
| const ocidatetime * | get_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 SqlInd & | ind (int idx) const |
| SqlInd & | ind (int idx) |
| int | get_buffer_count () const |
Protected Attributes | |
| ocidatetime * | _buffers |
| int | _count |
| SqlInd * | _pind |
wrapper for internal Oracle DATE type
Definition at line 1738 of file ocipl.h.
| 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] |
| 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 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];}

| const ocidatetime* OCIPL::SqlDateTimeArray::get_ptr | ( | int | row ) | const [inline] |
| 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];}

| SqlDateTime OCIPL::SqlDateTimeArray::get_sql_date | ( | int | row ) | const [inline] |
| 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];}

| SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | [inline, inherited] |
| 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::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().


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


ocidatetime* OCIPL::SqlDateTimeArray::_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().
1.7.2