factory for call parameters for OCI define functions More...
#include <ocipl.h>
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 |
factory for call parameters for OCI define functions
Definition at line 2724 of file ocipl.h.
OCIPL::DefinePar::DefinePar | ( | SqlInt & | var ) | [inline] |
Definition at line 2732 of file ocipl.h.
References OCIPL::SqlInt::get_ref(), and OCIPL::SqlValue::ind().
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(); }
OCIPL::DefinePar::DefinePar | ( | int & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | int * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | unsigned int & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | unsigned int * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | LONGLONG & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | LONGLONG * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | long & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | long * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | unsigned long & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | unsigned long * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | double & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | double * | arr, |
int | count, | ||
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | char & | var, |
OCIInd * | ind = NULL |
||
) | [inline] |
OCIPL::DefinePar::DefinePar | ( | const TCHAR * | buffer, |
size_t | len, | ||
ub2 | type = SQLT_STR , |
||
OCIInd * | ind = NULL |
||
) | [inline] |
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; }
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(); }
OCIPL::DefinePar::DefinePar | ( | OciDate & | date ) | [inline] |
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(); }
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; }
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(); }
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; }
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(); }
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().
OCIInd* OCIPL::DefinePar::indp |
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().
dvoid* OCIPL::DefinePar::valuep |
Definition at line 2726 of file ocipl.h.
Referenced by OCIPL::SqlStatement::bind_result().