Public Member Functions | Protected Attributes

OCIPL::SqlDateTime Struct Reference

wrapper for internal Oracle DATE type More...

#include <ocipl.h>

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

List of all members.

Public Member Functions

 SqlDateTime ()
 SqlDateTime (const ocidatetime &date, OCIInd ind=OCI_IND_NOTNULL)
ocidatetimeget_ref ()
const ocidatetimeget_ptr () const
const ocidatetimeget_datetime () const
tstring str () const
bool is_null () const
bool is_not_null () const
const SqlIndind () const
SqlIndind ()

Protected Attributes

ocidatetime _date
SqlInd _ind

Detailed Description

wrapper for internal Oracle DATE type

Definition at line 1708 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::SqlDateTime::SqlDateTime (  ) [inline]

Definition at line 1710 of file ocipl.h.

{}
OCIPL::SqlDateTime::SqlDateTime ( const ocidatetime date,
OCIInd  ind = OCI_IND_NOTNULL 
) [inline]

Definition at line 1712 of file ocipl.h.

     :  SqlValue(ind),
        _date(date)
    {
    }

Member Function Documentation

const ocidatetime& OCIPL::SqlDateTime::get_datetime (  ) const [inline]

Definition at line 1721 of file ocipl.h.

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

{return _date;}

Here is the caller graph for this function:

const ocidatetime* OCIPL::SqlDateTime::get_ptr (  ) const [inline]

Definition at line 1719 of file ocipl.h.

Referenced by OCIPL::BindInput::BindInput().

{return &_date;}

Here is the caller graph for this function:

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

Here is the caller graph for this function:

SqlInd& OCIPL::SqlValue::ind (  ) [inline, inherited]

Definition at line 1245 of file ocipl.h.

{return _ind;}
const SqlInd& OCIPL::SqlValue::ind (  ) const [inline, inherited]
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();}

Here is the caller graph for this function:

bool OCIPL::SqlValue::is_null (  ) const [inline, inherited]

Definition at line 1241 of file ocipl.h.

{return _ind.is_null();}
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();
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 1732 of file ocipl.h.

SqlInd OCIPL::SqlValue::_ind [protected, inherited]

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