|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CNullParam { public: CNullParam(); ~CNullParam(); public: void Add(bool bValue, const CString &strValue); int GetSize() const; bool GetAt(int nIndex, CString &strValue) const; void RemoveAll(); };
The array of null-indicators.
This array is passed to functions responsible for execution of SQL statements in order to specify, which parameter values must be interpreted as SQL null values.
See
CSqlStatement
for more information about null-indicators.
Constructor/Destructor Summary | |
CNullParam
();
����������Constructs the array of null-indicators. |
|
~CNullParam
();
����������Destroys the array of null-indicators. |
Function Summary | |
void
|
Add
(bool bValue, const CString &strValue);
����������Adds the element to this array of null-indicators. |
int
|
GetSize
() const;
����������Returns the number of elements in this array of null-indicators. |
bool
|
GetAt
(int nIndex, CString &strValue) const;
����������Returns the element at the given index in this array of null-indicators. |
void
|
RemoveAll
();
����������Removes all elements from this array of null-indicators. |
Constructor/Destructor Detail |
CNullParam();
Constructs the array of null-indicators.
The array is initially empty.
~CNullParam();
Destroys the array of null-indicators.
Function Detail |
void Add(bool bValue, const CString &strValue);
Adds the element to this array of null-indicators.
This function requires two arguments. The first argument
is a boolean which specifies, whether any value must be interpreted
as null for the corresponding parameter of the SQL statement.
If this argument is
true
, there exists a particular
value that is interpreted as null; this value must be
suppled as the second argument. If the first argument is
false
, there is no value interpreted as null,
and the second argument is not used (must be the empty string
in this case).
bValue
- specifies whether the null-indicator value
is availablestrValue
- the null-indicator valueint GetSize() const;
Returns the number of elements in this array of null-indicators.
bool GetAt(int nIndex, CString &strValue) const;
Returns the element at the given index in this array of null-indicators.
nIndex
- the index (zero-based)strValue
- on return, the null-indicator value at
the specified indextrue
if for the specified index
there exists a particular value that is interpreted as null;
false
otherwisevoid RemoveAll();
Removes all elements from this array of null-indicators.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |