Skip to content

Commit ecfc5fe

Browse files
author
mtx48109
committed
additional class irowsetchangeimpl
1 parent 77765ad commit ecfc5fe

7 files changed

Lines changed: 100 additions & 159 deletions

‎.openpublishing.redirection.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,26 @@
18901890
"redirect_url": "/cpp/data/oledb/iopenrowsetimpl-class#openrowset",
18911891
"redirect_document_id": false
18921892
},
1893+
{
1894+
"source_path": "docs/data/oledb/irowsetchangeimpl-deleterows.md",
1895+
"redirect_url": "/cpp/data/oledb/irowsetchangeimpl-class#deleterows",
1896+
"redirect_document_id": false
1897+
},
1898+
{
1899+
"source_path": "docs/data/oledb/irowsetchangeimpl-flushdata.md",
1900+
"redirect_url": "/cpp/data/oledb/irowsetchangeimpl-class#flushdata",
1901+
"redirect_document_id": false
1902+
},
1903+
{
1904+
"source_path": "docs/data/oledb/irowsetchangeimpl-insertrow.md",
1905+
"redirect_url": "/cpp/data/oledb/irowsetchangeimpl-class#insertrow",
1906+
"redirect_document_id": false
1907+
},
1908+
{
1909+
"source_path": "docs/data/oledb/irowsetchangeimpl-setdata.md",
1910+
"redirect_url": "/cpp/data/oledb/irowsetchangeimpl-class#setdata",
1911+
"redirect_document_id": false
1912+
},
18931913
{
18941914
"source_path": "docs/dotnet/index.md",
18951915
"redirect_url": "/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp",

‎docs/data/oledb/TOC.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@
144144
### [IGetDataSourceImpl Class](igetdatasourceimpl-class.md)
145145
### [IOpenRowsetImpl Class](iopenrowsetimpl-class.md)
146146
### [IRowsetChangeImpl Class](irowsetchangeimpl-class.md)
147-
#### [IRowsetChangeImpl::DeleteRows](irowsetchangeimpl-deleterows.md)
148-
#### [IRowsetChangeImpl::FlushData](irowsetchangeimpl-flushdata.md)
149-
#### [IRowsetChangeImpl::InsertRow](irowsetchangeimpl-insertrow.md)
150-
#### [IRowsetChangeImpl::SetData](irowsetchangeimpl-setdata.md)
151147
### [IRowsetCreatorImpl Class](irowsetcreatorimpl-class.md)
152148
#### [IRowsetCreatorImpl::SetSite](irowsetcreatorimpl-setsite.md)
153149
### [IRowsetIdentityImpl Class](irowsetidentityimpl-class.md)

‎docs/data/oledb/irowsetchangeimpl-class.md‎

Lines changed: 80 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ ms.custom: ""
44
ms.date: "11/04/2016"
55
ms.technology: ["cpp-data"]
66
ms.topic: "reference"
7-
f1_keywords: ["ATL::IRowsetChangeImpl", "IRowsetChangeImpl", "ATL.IRowsetChangeImpl"]
7+
f1_keywords: ["ATL::IRowsetChangeImpl", "IRowsetChangeImpl", "ATL.IRowsetChangeImpl", "ATL.IRowsetChangeImpl.DeleteRows", "ATL::IRowsetChangeImpl::DeleteRows", "IRowsetChangeImpl.DeleteRows", "DeleteRows", "IRowsetChangeImpl::DeleteRows", "ATL.IRowsetChangeImpl.InsertRow", "InsertRow", "IRowsetChangeImpl.InsertRow", "ATL::IRowsetChangeImpl::InsertRow", "IRowsetChangeImpl::InsertRow", "SetData", "IRowsetChangeImpl::SetData", "ATL.IRowsetChangeImpl.SetData", "IRowsetChangeImpl.SetData", "ATL::IRowsetChangeImpl::SetData", "IRowsetChangeImpl::FlushData", "IRowsetChangeImpl.FlushData", "FlushData"]
88
dev_langs: ["C++"]
9-
helpviewer_keywords: ["providers, updatable", "updatable providers, immediate update", "IRowsetChangeImpl class"]
9+
helpviewer_keywords: ["providers, updatable", "updatable providers, immediate update", "IRowsetChangeImpl class", "DeleteRows method", "InsertRow method", "SetData method", "FlushData method"]
1010
ms.assetid: 1e9fee15-ed9e-4387-af8f-215569beca6c
1111
author: "mikeblome"
1212
ms.author: "mblome"
1313
ms.workload: ["cplusplus", "data-storage"]
1414
---
1515
# IRowsetChangeImpl Class
16-
The OLE DB Templates implementation of the [IRowsetChange](https://msdn.microsoft.com/en-us/library/ms715790.aspx) interface in the OLE DB specification.
16+
The OLE DB Templates implementation of the [IRowsetChange](https://msdn.microsoft.com/library/ms715790.aspx) interface in the OLE DB specification.
1717

1818
## Syntax
1919

@@ -27,37 +27,40 @@ template <
2727
class ATL_NO_VTABLE IRowsetChangeImpl : public BaseInterface
2828
```
2929
30-
#### Parameters
31-
`T`
30+
### Parameters
31+
*T*
3232
A class derived from `IRowsetChangeImpl`.
3333
34-
`Storage`
34+
*Storage*
3535
The user record.
3636
37-
`BaseInterface`
37+
*BaseInterface*
3838
The base class for the interface, such as `IRowsetChange`.
3939
40-
`RowClass`
40+
*RowClass*
4141
The storage unit for the row handle.
4242
43-
`MapClass`
43+
*MapClass*
4444
The storage unit for all row handles held by the provider.
45+
46+
## Requirements
47+
**Header:** atldb.h
4548
4649
## Members
4750
4851
### Interface Methods (Used with IRowsetChange)
4952
5053
|||
5154
|-|-|
52-
|[DeleteRows](../../data/oledb/irowsetchangeimpl-deleterows.md)|Deletes rows from the rowset.|
53-
|[InsertRow](../../data/oledb/irowsetchangeimpl-insertrow.md)|Inserts a row into the rowset.|
54-
|[SetData](../../data/oledb/irowsetchangeimpl-setdata.md)|Sets data values in one or more columns.|
55+
|[DeleteRows](#deleterows)|Deletes rows from the rowset.|
56+
|[InsertRow](#insertrows)|Inserts a row into the rowset.|
57+
|[SetData](#setdata)|Sets data values in one or more columns.|
5558
5659
### Implementation Method (Callback)
5760
5861
|||
5962
|-|-|
60-
|[FlushData](../../data/oledb/irowsetchangeimpl-flushdata.md)|Overidden by provider to commit data to its store.|
63+
|[FlushData](#flushdata)|Overidden by provider to commit data to its store.|
6164
6265
## Remarks
6366
This interface is responsible for immediate write operations to a data store. "Immediate" means that when the end user (the person using the consumer) makes any changes, those changes are immediately transmitted to the data store (and cannot be undone).
@@ -75,9 +78,70 @@ class ATL_NO_VTABLE IRowsetChangeImpl : public BaseInterface
7578
7679
- Also see how the `RUpdateRowset` class is used in the UpdatePV sample
7780
78-
## Requirements
79-
**Header:** atldb.h
81+
## <a name="deleterows"></a> IRowsetChangeImpl::DeleteRows
82+
Deletes rows from the rowset.
83+
84+
### Syntax
85+
86+
```cpp
87+
STDMETHOD (DeleteRows )(HCHAPTER /* hReserved */,
88+
DBCOUNTITEM cRows,
89+
const HROW rghRows[],
90+
DBROWSTATUS rgRowStatus[]);
91+
```
92+
93+
#### Parameters
94+
See [IRowsetChange::DeleteRows](https://msdn.microsoft.com/library/ms724362.aspx) in the *OLE DB Programmer's Reference*.
95+
96+
## <a name="insertrow"></a> IRowsetChangeImpl::InsertRow
97+
Creates and initializes a new row in the rowset.
98+
99+
### Syntax
100+
101+
```cpp
102+
STDMETHOD (InsertRow )(HCHAPTER /* hReserved */,
103+
HACCESSOR hAccessor,
104+
void* pData,
105+
HROW* phRow);
106+
```
107+
108+
#### Parameters
109+
See [IRowsetChange::InsertRow](https://msdn.microsoft.com/library/ms716921.aspx) in the *OLE DB Programmer's Reference*.
110+
111+
## <a name="setdata"></a> IRowsetChangeImpl::SetData
112+
Sets data values in one or more columns.
113+
114+
### Syntax
115+
116+
```cpp
117+
STDMETHOD (SetData )(HROW hRow,
118+
HACCESSOR hAccessor,
119+
void* pSrcData);
120+
```
121+
122+
#### Parameters
123+
See [IRowsetChange::SetData](https://msdn.microsoft.com/library/ms721232.aspx) in the *OLE DB Programmer's Reference*.
124+
125+
## <a name="flushdata"></a> IRowsetChangeImpl::FlushData
126+
Overidden by provider to commit data to its store.
127+
128+
### Syntax
129+
130+
```cpp
131+
HRESULT FlushData(HROW hRowToFlush,
132+
HACCESSOR hAccessorToFlush);
133+
```
134+
135+
#### Parameters
136+
*hRowToFlush*
137+
[in] Handle to the rows for the data. The type of this row is determined from the *RowClass* template argument of the `IRowsetImpl` class (`CSimpleRow` by default).
138+
139+
*hAccessorToFlush*
140+
[in] Handle to the accessor, which contains binding information and type information in its `PROVIDER_MAP` (see [IAccessorImpl](../../data/oledb/iaccessorimpl-class.md)).
141+
142+
### Return Value
143+
A standard HRESULT.
80144
81145
## See Also
82146
[OLE DB Provider Templates](../../data/oledb/ole-db-provider-templates-cpp.md)
83-
[OLE DB Provider Template Architecture](../../data/oledb/ole-db-provider-template-architecture.md)
147+
[OLE DB Provider Template Architecture](../../data/oledb/ole-db-provider-template-architecture.md)

‎docs/data/oledb/irowsetchangeimpl-deleterows.md‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎docs/data/oledb/irowsetchangeimpl-flushdata.md‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎docs/data/oledb/irowsetchangeimpl-insertrow.md‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎docs/data/oledb/irowsetchangeimpl-setdata.md‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)