Public Member Functions | Public Attributes | Protected Member Functions

OCIPL::BindInput Struct Reference

factory for call parameters of OCI bind functions More...

#include <ocipl.h>

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

List of all members.

Public Member Functions

 BindInput (const SqlInt &var)
 BindInput (const int &var, OCIInd *ind=NULL)
 BindInput (const unsigned int &var, OCIInd *ind=NULL)
 BindInput (const long &var, OCIInd *ind=NULL)
 BindInput (const unsigned long &var, OCIInd *ind=NULL)
 BindInput (const char &var, OCIInd *ind=NULL)
 BindInput (const float &var, OCIInd *ind=NULL)
 BindInput (const double &var, OCIInd *ind=NULL)
 BindInput (const TCHAR *buffer)
 BindInput (const TCHAR *buffer, size_t len, ub2 type=SQLT_AFC, OCIInd *ind=NULL)
 BindInput (const tstring &str)
 BindInput (const SqlString &str)
 BindInput (const OciDate &date)
 BindInput (const OCIDate &date, OCIInd *ind)
 BindInput (const SqlDateTime &date)
 BindInput (const ocidatetime &date, OCIInd *ind)
 BindInput (const SqlNumber &num)
 BindInput (const oraclenumber &num, OCIInd *ind)

Public Attributes

const dvoid * valuep
sb4 value_sz
ub2 dty
const OCIInd * indp

Protected Member Functions

 BindInput ()

Detailed Description

factory for call parameters of OCI bind functions

Definition at line 2328 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::BindInput::BindInput ( const SqlInt var ) [inline]

Definition at line 2335 of file ocipl.h.

References OCIPL::SqlInt::get_ptr(), and OCIPL::SqlValue::ind().

    {
        valuep  = var.get_ptr();
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = var.ind();
    }

Here is the call graph for this function:

OCIPL::BindInput::BindInput ( const int &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2343 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const unsigned int &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2351 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(unsigned int);
        dty     = SQLT_UIN;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2359 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(long);
        dty     = SQLT_INT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const unsigned long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2367 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(unsigned long);
        dty     = SQLT_UIN;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const char &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2375 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(char);
        dty     = SQLT_CHR;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const float &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2383 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(float);
        dty     = SQLT_FLT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const double &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2391 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(double);
        dty     = SQLT_FLT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const TCHAR *  buffer ) [inline]

Definition at line 2399 of file ocipl.h.

References _tcslen, and TCHAR.

    {
        valuep  = (dvoid*) buffer;
        value_sz= buffer? (sb4)(_tcslen(buffer)+1)*sizeof(TCHAR): 0;
        dty     = SQLT_STR;
        indp    = NULL;
    }
OCIPL::BindInput::BindInput ( const TCHAR *  buffer,
size_t  len,
ub2  type = SQLT_AFC,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2407 of file ocipl.h.

    {
        valuep  = (dvoid*) buffer;
        value_sz= (sb4)len;
        dty     = type;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const tstring str ) [inline]

Definition at line 2415 of file ocipl.h.

References TCHAR.

    {
        valuep  = (dvoid*) str.c_str();
        value_sz= (sb4)(str.length()+1)*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = NULL;
    }
OCIPL::BindInput::BindInput ( const SqlString str ) [inline]

Definition at line 2423 of file ocipl.h.

References OCIPL::SqlString::alen(), OCIPL::SqlString::c_str(), and TCHAR.

    {
        valuep  = (dvoid*) str.c_str();
        value_sz= (sb4)str.alen()*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = NULL;
    }

Here is the call graph for this function:

OCIPL::BindInput::BindInput ( const OciDate date ) [inline]

Definition at line 2450 of file ocipl.h.

References OCIPL::SqlValue::ind().

    {
        valuep  = &date;
        value_sz= sizeof(OCIDate);
        dty     = SQLT_ODT;
        indp    = date.ind();
    }

Here is the call graph for this function:

OCIPL::BindInput::BindInput ( const OCIDate date,
OCIInd *  ind 
) [inline]

Definition at line 2458 of file ocipl.h.

    {
        valuep  = &date;
        value_sz= sizeof(OCIDate);
        dty     = SQLT_ODT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const SqlDateTime date ) [inline]

Definition at line 2466 of file ocipl.h.

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

    {
        valuep  = date.get_ptr();
        value_sz= sizeof(ocidatetime);  // 7
        dty     = SQLT_DAT;
        indp    = date.ind();
    }

Here is the call graph for this function:

OCIPL::BindInput::BindInput ( const ocidatetime date,
OCIInd *  ind 
) [inline]

Definition at line 2474 of file ocipl.h.

    {
        valuep  = &date;
        value_sz= sizeof(ocidatetime);  // 7
        dty     = SQLT_DAT;
        indp    = ind;
    }
OCIPL::BindInput::BindInput ( const SqlNumber num ) [inline]

Definition at line 2482 of file ocipl.h.

References OCIPL::SqlNumber::get_ptr(), and OCIPL::SqlValue::ind().

    {
        valuep  = num.get_ptr();
        value_sz= sizeof(oraclenumber); // 22
        dty     = SQLT_VNU;
        indp    = num.ind();
    }

Here is the call graph for this function:

OCIPL::BindInput::BindInput ( const oraclenumber num,
OCIInd *  ind 
) [inline]

Definition at line 2490 of file ocipl.h.

    {
        valuep  = &num;
        value_sz= sizeof(oraclenumber); // 22
        dty     = SQLT_VNU;
        indp    = ind;
    }
OCIPL::BindInput::BindInput (  ) [inline, protected]

Definition at line 2517 of file ocipl.h.

    {
    }

Member Data Documentation

Definition at line 2332 of file ocipl.h.

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

const OCIInd* OCIPL::BindInput::indp

Definition at line 2333 of file ocipl.h.

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

Definition at line 2331 of file ocipl.h.

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

Definition at line 2330 of file ocipl.h.

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


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