You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data/oledb/crowsetimpl-class.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,24 +54,24 @@ class CRowsetImpl :
54
54
55
55
|||
56
56
|-|-|
57
-
|[NameFromDBID](../../data/oledb/crowsetimpl-namefromdbid.md)|Extracts a string from a `DBID` and copies it to the *bstr* passed in.|
58
-
|[SetCommandText](../../data/oledb/crowsetimpl-setcommandtext.md)|Validates and stores the `DBID`s in the two strings ([m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md)).|
57
+
|[NameFromDBID](#namefromdbid)|Extracts a string from a `DBID` and copies it to the *bstr* passed in.|
58
+
|[SetCommandText](#setcommandtext)|Validates and stores the `DBID`s in the two strings ([m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md)).|
59
59
60
60
### Overridable Methods
61
61
62
62
|||
63
63
|-|-|
64
-
|[GetColumnInfo](../../data/oledb/crowsetimpl-getcolumninfo.md)|Retrieves column information for a particular client request.|
65
-
|[GetCommandFromID](../../data/oledb/crowsetimpl-getcommandfromid.md)|Checks to see if either or both parameters contain string values, and if so, copies the string values to the data members [m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md).|
66
-
|[ValidateCommandID](../../data/oledb/crowsetimpl-validatecommandid.md)|Checks to see if either or both `DBID`s contain string values, and if so, copies them to its data members [m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md).|
64
+
|[GetColumnInfo](#getcolumninfo)|Retrieves column information for a particular client request.|
65
+
|[GetCommandFromID](#getcommandfromid)|Checks to see if either or both parameters contain string values, and if so, copies the string values to the data members [m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md).|
66
+
|[ValidateCommandID](#validatecommandid)|Checks to see if either or both `DBID`s contain string values, and if so, copies them to its data members [m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md) and [m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md).|
67
67
68
68
### Data Members
69
69
70
70
|||
71
71
|-|-|
72
-
|[m_rgRowData](../../data/oledb/crowsetimpl-m-rgrowdata.md)|By default, a `CAtlArray` that templatizes on the user record template argument to `CRowsetImpl`. Another array type class can be used by changing the `ArrayType` template argument to `CRowsetImpl`.|
73
-
|[m_strCommandText](../../data/oledb/crowsetimpl-m-strcommandtext.md)|Contains the rowset's initial command.|
74
-
|[m_strIndexText](../../data/oledb/crowsetimpl-m-strindextext.md)|Contains the rowset's initial index.|
72
+
|[m_rgRowData](#rgrowdata)|By default, a `CAtlArray` that templatizes on the user record template argument to `CRowsetImpl`. Another array type class can be used by changing the `ArrayType` template argument to `CRowsetImpl`.|
73
+
|[m_strCommandText](#strcommandtext)|Contains the rowset's initial command.|
74
+
|[m_strIndexText](#strindextext)|Contains the rowset's initial index.|
75
75
76
76
## Remarks
77
77
`CRowsetImpl` provides overrides in the form of static upcasts. The methods control the manner in which a given rowset will validate command text. You can create your own `CRowsetImpl`-style class by making your implementation interfaces multiple-inherited. The only method for which you must provide implementation is `Execute`. Depending on what type of rowset you are creating, the creator methods will expect different signatures for `Execute`. For example, if you are using a `CRowsetImpl`-derived class to implement a schema rowset, the `Execute` method will have the following signature:
|[AddRefRow](#addrefrow)|Adds a reference count to an existing row handle.|
34
+
|[Compare](#compare)|Compares two rows to see if they refer to the same row instance.|
35
+
|[CSimpleRow](#csimplerow)|The constructor.|
36
+
|[ReleaseRow](#releaserow)|Releases rows.|
34
37
35
38
### Data Members
36
39
37
40
|||
38
41
|-|-|
39
-
|[m_dwRef](../../data/oledb/csimplerow-m-dwref.md)|Reference count to an existing row handle.|
40
-
|[m_iRowset](../../data/oledb/csimplerow-m-irowset.md)|An index to the rowset representing the cursor.|
42
+
|[m_dwRef](#dwref)|Reference count to an existing row handle.|
43
+
|[m_iRowset](#irowset)|An index to the rowset representing the cursor.|
41
44
42
45
## Remarks
43
46
A row handle is logically a unique tag for a result row. `IRowsetImpl` creates a new `CSimpleRow` for every row requested in [IRowsetImpl::GetNextRows](../../data/oledb/irowsetimpl-getnextrows.md). `CSimpleRow` can also be replaced with your own implementation of the row handle, as it is a default template argument to `IRowsetImpl`. The only requirement to replacing this class is to have the replacement class provide a constructor that accepts a single parameter of type **LONG**.
47
+
48
+
## <a name="addrefrow"></a> CSimpleRow::AddRefRow
49
+
Adds a reference count to an existing row handle in a thread-safe manner.
44
50
45
-
## Requirements
46
-
**Header:** atldb.h
51
+
### Syntax
52
+
53
+
```cpp
54
+
DWORD AddRefRow();
55
+
56
+
```
57
+
58
+
## <aname="compare"></a> CSimpleRow::Compare
59
+
Compares two rows to see if they refer to the same row instance.
60
+
61
+
### Syntax
62
+
63
+
```cpp
64
+
HRESULT Compare(CSimpleRow* pRow);
65
+
```
66
+
67
+
#### Parameters
68
+
*pRow*
69
+
A pointer to a `CSimpleRow` object.
70
+
71
+
### Return Value
72
+
An HRESULT value, usually S_OK, indicating the two rows are the same row instance, or S_FALSE, indicating the two rows are different. See [IRowsetIdentity::IsSameRow](https://msdn.microsoft.com/library/ms719629.aspx) in the *OLE DB Programmer's Reference* for other possible return values.
0 commit comments