Public Member Functions | Public Attributes

OCIPL::DefinePar Struct Reference

factory for call parameters for OCI define functions More...

#include <ocipl.h>

Collaboration diagram for OCIPL::DefinePar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DefinePar (SqlInt &var)
 DefinePar (SqlIntArray &arr)
 DefinePar (int &var, OCIInd *ind=NULL)
 DefinePar (int *arr, int count, OCIInd *ind=NULL)
 DefinePar (unsigned int &var, OCIInd *ind=NULL)
 DefinePar (unsigned int *arr, int count, OCIInd *ind=NULL)
 DefinePar (LONGLONG &var, OCIInd *ind=NULL)
 DefinePar (LONGLONG *arr, int count, OCIInd *ind=NULL)
 DefinePar (long &var, OCIInd *ind=NULL)
 DefinePar (long *arr, int count, OCIInd *ind=NULL)
 DefinePar (unsigned long &var, OCIInd *ind=NULL)
 DefinePar (unsigned long *arr, int count, OCIInd *ind=NULL)
 DefinePar (double &var, OCIInd *ind=NULL)
 DefinePar (double *arr, int count, OCIInd *ind=NULL)
 DefinePar (char &var, OCIInd *ind=NULL)
 DefinePar (const TCHAR *buffer, size_t len, ub2 type=SQLT_STR, OCIInd *ind=NULL)
 DefinePar (SqlString &str)
 DefinePar (SqlStringArray &arr)
 DefinePar (OciDate &date)
 DefinePar (OciDateArray &arr)
 DefinePar (SqlDateTime &date)
 DefinePar (SqlDateTimeArray &arr)
 DefinePar (SqlNumber &num)
 DefinePar (SqlNumberArray &arr)

Public Attributes

dvoid * valuep
sb4 value_sz
ub2 dty
OCIInd * indp
int buffers

Detailed Description

factory for call parameters for OCI define functions

Definition at line 2724 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::DefinePar::DefinePar ( SqlInt var ) [inline]

Definition at line 2732 of file ocipl.h.

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

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

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( SqlIntArray arr ) [inline]

Definition at line 2740 of file ocipl.h.

References OCIPL::SqlIndArray::get_buffer_count(), OCIPL::SqlIntArray::get_ref(), and OCIPL::SqlIndArray::ind().

    {
        valuep  = arr.get_ref(0);
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = arr.ind(0);
        buffers = arr.get_buffer_count();
    }

Here is the call graph for this function:

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

Definition at line 2749 of file ocipl.h.

    {
        valuep  = &var;
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( int *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2757 of file ocipl.h.

    {
        valuep  = arr;
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( unsigned int &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2766 of file ocipl.h.

    {
        valuep  = &var;
        value_sz= sizeof(unsigned int);
        dty     = SQLT_UIN;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( unsigned int *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2774 of file ocipl.h.

    {
        valuep  = arr;
        value_sz= sizeof(unsigned int);
        dty     = SQLT_UIN;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( LONGLONG &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2783 of file ocipl.h.

References LONGLONG.

    {
        valuep  = &var;
        value_sz= sizeof(LONGLONG);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( LONGLONG *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2791 of file ocipl.h.

References LONGLONG.

    {
        valuep  = arr;
        value_sz= sizeof(LONGLONG);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2800 of file ocipl.h.

    {
        valuep  = &var;
        value_sz= sizeof(long);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( long *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2808 of file ocipl.h.

    {
        valuep  = arr;
        value_sz= sizeof(long);
        dty     = SQLT_INT;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( unsigned long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2817 of file ocipl.h.

    {
        valuep  = &var;
        value_sz= sizeof(unsigned long);
        dty     = SQLT_UIN;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( unsigned long *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2825 of file ocipl.h.

    {
        valuep  = arr;
        value_sz= sizeof(unsigned long);
        dty     = SQLT_UIN;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( double &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2834 of file ocipl.h.

    {
        valuep  = &var;
        value_sz= sizeof(double);
        dty     = SQLT_FLT;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( double *  arr,
int  count,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2842 of file ocipl.h.

    {
        valuep  = arr;
        value_sz= sizeof(double);
        dty     = SQLT_FLT;
        indp    = ind;
        buffers = count;
    }
OCIPL::DefinePar::DefinePar ( char &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2870 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(char);
        dty     = SQLT_CHR;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( const TCHAR *  buffer,
size_t  len,
ub2  type = SQLT_STR,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2879 of file ocipl.h.

References TCHAR.

    {
        valuep  = (dvoid*) buffer;
        value_sz= (sb4)len*sizeof(TCHAR);
        dty     = type;
        indp    = ind;
        buffers = 1;
    }
OCIPL::DefinePar::DefinePar ( SqlString str ) [inline]

Definition at line 2888 of file ocipl.h.

References OCIPL::SqlString::alen(), OCIPL::SqlValue::ind(), OCIPL::SqlString::str(), and TCHAR.

    {
        valuep  = str.str();
        value_sz= (sb4)str.alen()*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = str.ind();
        buffers = 1;
    }

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( SqlStringArray arr ) [inline]

Definition at line 2896 of file ocipl.h.

References OCIPL::SqlStringArray::alen(), OCIPL::SqlIndArray::get_buffer_count(), OCIPL::SqlIndArray::ind(), OCIPL::SqlStringArray::str(), and TCHAR.

    {
        valuep  = arr.str(0);
        value_sz= (sb4)arr.alen()*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = arr.ind(0);
        buffers = arr.get_buffer_count();
    }

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( OciDate date ) [inline]

Definition at line 2916 of file ocipl.h.

References OCIPL::SqlValue::ind().

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

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( OciDateArray arr ) [inline]

Definition at line 2924 of file ocipl.h.

References OCIPL::SqlIndArray::get_buffer_count(), OCIPL::OciDateArray::get_ref(), and OCIPL::SqlIndArray::ind().

    {
        valuep  = arr.get_ref(0);
        value_sz= sizeof(OCIDate);
        dty     = SQLT_ODT;
        indp    = arr.ind(0);
        buffers = arr.get_buffer_count();
    }

Here is the call graph for this function:

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

Definition at line 2933 of file ocipl.h.

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

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

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( SqlDateTimeArray arr ) [inline]

Definition at line 2941 of file ocipl.h.

References OCIPL::SqlIndArray::get_buffer_count(), OCIPL::SqlDateTimeArray::get_ref(), and OCIPL::SqlIndArray::ind().

    {
        valuep  = arr.get_ref(0);
        value_sz= sizeof(ocidatetime);  // 7
        dty     = SQLT_DAT;
        indp    = arr.ind(0);
        buffers = arr.get_buffer_count();
    }

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( SqlNumber num ) [inline]

Definition at line 2950 of file ocipl.h.

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

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

Here is the call graph for this function:

OCIPL::DefinePar::DefinePar ( SqlNumberArray arr ) [inline]

Definition at line 2958 of file ocipl.h.

References OCIPL::SqlIndArray::get_buffer_count(), OCIPL::SqlNumberArray::get_ref(), and OCIPL::SqlIndArray::ind().

    {
        valuep  = arr.get_ref(0);
        value_sz= sizeof(oraclenumber); // 22
        dty     = SQLT_VNU;
        indp    = arr.ind(0);
        buffers = arr.get_buffer_count();
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 2730 of file ocipl.h.

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

Definition at line 2728 of file ocipl.h.

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

Definition at line 2729 of file ocipl.h.

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

Definition at line 2727 of file ocipl.h.

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

Definition at line 2726 of file ocipl.h.

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


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