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


Public Member Functions | |
| SqlDateTime () | |
| SqlDateTime (const ocidatetime &date, OCIInd ind=OCI_IND_NOTNULL) | |
| ocidatetime * | get_ref () |
| const ocidatetime * | get_ptr () const |
| const ocidatetime & | get_datetime () const |
| tstring | str () const |
| bool | is_null () const |
| bool | is_not_null () const |
| const SqlInd & | ind () const |
| SqlInd & | ind () |
Protected Attributes | |
| ocidatetime | _date |
| SqlInd | _ind |
wrapper for internal Oracle DATE type
Definition at line 1708 of file ocipl.h.
| OCIPL::SqlDateTime::SqlDateTime | ( | const ocidatetime & | date, |
| OCIInd | ind = OCI_IND_NOTNULL |
||
| ) | [inline] |
| const ocidatetime& OCIPL::SqlDateTime::get_datetime | ( | ) | const [inline] |
Definition at line 1721 of file ocipl.h.
Referenced by OCIPL::SqlDateTimeArray::set_datetime().
{return _date;}

| const ocidatetime* OCIPL::SqlDateTime::get_ptr | ( | ) | const [inline] |
Definition at line 1719 of file ocipl.h.
Referenced by OCIPL::BindInput::BindInput().
{return &_date;}

| ocidatetime* OCIPL::SqlDateTime::get_ref | ( | ) | [inline] |
Definition at line 1718 of file ocipl.h.
Referenced by OCIPL::BindOutput::BindOutput(), and OCIPL::DefinePar::DefinePar().
{return &_date;}

| SqlInd& OCIPL::SqlValue::ind | ( | ) | [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;}

| 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] |
| tstring OCIPL::SqlDateTime::str | ( | ) | const [inline] |
Definition at line 1723 of file ocipl.h.
References OCIPL::ocidatetime_to_string().
{
if (_ind.is_not_null())
return ocidatetime_to_string(_date);
else
return tstring();
}

ocidatetime OCIPL::SqlDateTime::_date [protected] |
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().
1.7.2