LibreOffice Module connectivity (master) 1
Awrapado.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <sal/config.h>
22
23#include <string_view>
24
25#include <com/sun/star/beans/PropertyAttribute.hpp>
26
27// Includes for ADO
28#include <oledb.h>
29#include <ocidl.h>
30#include <adoint.h>
31#include <ado/adoimp.hxx>
32#include <ado/Aolewrap.hxx>
33#include <ado/Aolevariant.hxx>
34
35namespace connectivity::ado
36{
37 class WpADOConnection;
38 class WpADOCommand;
39 class WpADORecordset;
40 class WpADOField;
41 class WpADOParameter;
42 class WpADOError;
43 class WpADOProperty;
44
47
48
49 class WpADOConnection : public WpOLEBase<ADOConnection>
50 {
51 public:
52
53 WpADOConnection() = default;
54
55 WpADOConnection(const WpADOConnection& rhs) : WpOLEBase<ADOConnection>(rhs) {}
56
58 {WpOLEBase<ADOConnection>::operator=(rhs); return *this;}
59
60
62
63 OUString GetConnectionString() const;
64 bool PutConnectionString(std::u16string_view aCon) const;
65 sal_Int32 GetCommandTimeout() const;
66 void PutCommandTimeout(sal_Int32 nRet);
67 sal_Int32 GetConnectionTimeout() const ;
68 void PutConnectionTimeout(sal_Int32 nRet);
69
70 bool Close( ) ;
71 bool Execute(std::u16string_view CommandText,OLEVariant& RecordsAffected,long Options, WpADORecordset** ppiRset);
72 bool BeginTrans();
73 bool CommitTrans( ) ;
74 bool RollbackTrans( );
75 bool Open(std::u16string_view ConnectionString, std::u16string_view UserID,std::u16string_view Password,long Options);
76 bool GetErrors(ADOErrors** pErrors);
77
78 OUString GetDefaultDatabase() const;
79 bool PutDefaultDatabase(std::u16string_view _bstr);
80
81 IsolationLevelEnum get_IsolationLevel() const ;
82 bool put_IsolationLevel(const IsolationLevelEnum& eNum) ;
83
84 sal_Int32 get_Attributes() const;
85 bool put_Attributes(sal_Int32 nRet);
86
87 CursorLocationEnum get_CursorLocation() const;
88 bool put_CursorLocation(const CursorLocationEnum &eNum) ;
89
90 ConnectModeEnum get_Mode() const;
91 bool put_Mode(const ConnectModeEnum &eNum) ;
92
93 OUString get_Provider() const;
94 bool put_Provider(std::u16string_view _bstr);
95
96 sal_Int32 get_State() const;
97
98 bool OpenSchema(SchemaEnum eNum,OLEVariant const & Restrictions,OLEVariant const & SchemaID,ADORecordset**pprset);
99
100 OUString get_Version() const;
101
102 // special methods
103 ADORecordset* getExportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
104 ADORecordset* getImportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
105 ADORecordset* getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
106 ADORecordset* getIndexInfo( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table, bool unique, bool approximate );
107 ADORecordset* getTablePrivileges( const css::uno::Any& catalog,
108 const OUString& schemaPattern,
109 std::u16string_view tableNamePattern );
110 ADORecordset* getCrossReference( const css::uno::Any& primaryCatalog,
111 const OUString& primarySchema,
112 std::u16string_view primaryTable,
113 const css::uno::Any& foreignCatalog,
114 const OUString& foreignSchema,
115 std::u16string_view foreignTable);
116 ADORecordset* getProcedures( const css::uno::Any& catalog,
117 const OUString& schemaPattern,
118 std::u16string_view procedureNamePattern );
119 ADORecordset* getProcedureColumns( const css::uno::Any& catalog,
120 const OUString& schemaPattern,
121 std::u16string_view procedureNamePattern,
122 std::u16string_view columnNamePattern );
123 ADORecordset* getTables( const css::uno::Any& catalog,
124 const OUString& schemaPattern,
125 std::u16string_view tableNamePattern,
126 const css::uno::Sequence< OUString >& types );
127 ADORecordset* getColumns( const css::uno::Any& catalog,
128 const OUString& schemaPattern,
129 std::u16string_view tableNamePattern,
130 std::u16string_view columnNamePattern );
131 ADORecordset* getColumnPrivileges( const css::uno::Any& catalog,
132 const OUString& schemaPattern,
133 std::u16string_view table,
134 std::u16string_view columnNamePattern );
135 ADORecordset* getTypeInfo(DataTypeEnum _eType = adEmpty );
136 };
137
138
139 class WpADOCommand : public WpOLEBase<ADOCommand>
140 {
141 public:
142 WpADOCommand() = default;
143 // Ctors, operator=
144 // They only call the superclass
145 WpADOCommand(const WpADOCommand& rhs) : WpOLEBase<ADOCommand>(rhs) {}
146
148 {
149 WpOLEBase<ADOCommand>::operator=(rhs); return *this;}
150
151
153
154 void put_ActiveConnection(/* [in] */ const OLEVariant& vConn);
155 void Create();
156 sal_Int32 get_State() const;
157 OUString get_CommandText() const;
158 bool put_CommandText(std::u16string_view aCon) ;
159 sal_Int32 get_CommandTimeout() const;
160 void put_CommandTimeout(sal_Int32 nRet);
161 bool get_Prepared() const;
162 bool put_Prepared(VARIANT_BOOL bPrepared) const;
163 bool Execute(OLEVariant& RecordsAffected,OLEVariant& Parameters,long Options, ADORecordset** ppiRset);
164 ADOParameter* CreateParameter(std::u16string_view _bstr,DataTypeEnum Type,ParameterDirectionEnum Direction,long nSize,const OLEVariant &Value);
165
166 ADOParameters* get_Parameters() const;
167 bool put_CommandType( /* [in] */ CommandTypeEnum lCmdType);
168 CommandTypeEnum get_CommandType( ) const ;
169 // Returns the field's name
170 OUString GetName() const ;
171 bool put_Name(std::u16string_view Name);
172 bool Cancel();
173 };
174
175 class WpADOError : public WpOLEBase<ADOError>
176 {
177 public:
178
179 // Ctors, operator=
180 // They only call the superclass
181 WpADOError() = default;
182
183 WpADOError(const WpADOError& rhs) : WpOLEBase<ADOError>(rhs) {}
184
186 {WpOLEBase<ADOError>::operator=(rhs); return *this;}
187
188
189 OUString GetDescription() const;
190 OUString GetSource() const ;
191 sal_Int32 GetNumber() const ;
192 OUString GetSQLState() const ;
193 sal_Int32 GetNativeError() const ;
194 };
195
196
197 class WpADOField : public WpOLEBase<ADOField>
198 {
199 // friend class WpADOFields;
200 public:
201
202 // Ctors, operator=
203 // They only call the superclass
204 WpADOField() = default;
205 WpADOField(const WpADOField& rhs) : WpOLEBase<ADOField>(rhs) {}
206
208 {WpOLEBase<ADOField>::operator=(rhs); return *this;}
209
210
212 sal_Int32 GetActualSize() const ;
213 sal_Int32 GetAttributes() const ;
214 sal_Int32 GetStatus() const ;
215 sal_Int32 GetDefinedSize() const ;
216 // Returns the field's name
217 OUString GetName() const ;
218 DataTypeEnum GetADOType() const ;
219 void get_Value(OLEVariant& aValVar) const ;
220 OLEVariant get_Value() const;
221 bool PutValue(const OLEVariant& aVariant);
222 sal_Int32 GetPrecision() const ;
223 sal_Int32 GetNumericScale() const ;
224 bool AppendChunk(const OLEVariant& Variant);
225 OLEVariant GetChunk(long Length) const;
226 void GetChunk(long Length,OLEVariant &aValVar) const;
228 void GetOriginalValue(OLEVariant &aValVar) const;
230
231 void GetUnderlyingValue(OLEVariant &aValVar) const;
232
233 bool PutPrecision(sal_Int8 _prec);
234
235 bool PutNumericScale(sal_Int8 _prec);
236
237 void PutADOType(DataTypeEnum eType) ;
238
239 bool PutDefinedSize(sal_Int32 _nDefSize);
240
241 bool PutAttributes(sal_Int32 _nDefSize);
242 };
243
244
245 class WpADOProperty: public WpOLEBase<ADOProperty>
246 {
247 public:
248 // Ctors, operator=
249 // They only call the superclass
250 WpADOProperty() = default;
251 WpADOProperty(const WpADOProperty& rhs) : WpOLEBase<ADOProperty>(rhs) {}
253 {WpOLEBase<ADOProperty>::operator=(rhs); return *this;}
254
255
256 OLEVariant GetValue() const;
257 void GetValue(OLEVariant &aValVar) const;
258 bool PutValue(const OLEVariant &aValVar) ;
259 OUString GetName() const ;
260 DataTypeEnum GetADOType() const ;
261 sal_Int32 GetAttributes() const ;
262 bool PutAttributes(sal_Int32 _nDefSize);
263 };
264
265
266 class WpADORecordset : public WpOLEBase<ADORecordset>
267 {
268
269 public:
270 // Ctors, operator=
271 // They only call the superclass
272 WpADORecordset() = default;
273 WpADORecordset(const WpADORecordset& rhs) : WpOLEBase<ADORecordset>() {operator=(rhs);}
275 {
277 return *this;
278 }
279
280 void Create();
281 bool Open(
282 /* [optional][in] */ VARIANT Source,
283 /* [optional][in] */ VARIANT ActiveConnection,
284 /* [defaultvalue][in] */ CursorTypeEnum CursorType,
285 /* [defaultvalue][in] */ LockTypeEnum LockType,
286 /* [defaultvalue][in] */ sal_Int32 Options);
287 LockTypeEnum GetLockType();
288 void Close();
289 bool Cancel() const;
290 sal_Int32 get_State( );
291 bool Supports( /* [in] */ CursorOptionEnum CursorOptions);
292 PositionEnum_Param get_AbsolutePosition();
293 void GetDataSource(IUnknown** pIUnknown) const ;
294 void PutRefDataSource(IUnknown* pIUnknown);
295 void GetBookmark(VARIANT& var);
297 CompareEnum CompareBookmarks(const OLEVariant& left,const OLEVariant& right);
298 bool SetBookmark(const OLEVariant &pSafeAr);
299 WpADOFields GetFields() const;
300 bool Move(sal_Int32 nRows, VARIANT aBmk);
301 bool MoveNext();
302 bool MovePrevious();
303 bool MoveFirst();
304 bool MoveLast();
305
306 bool IsAtBOF() const;
307 bool IsAtEOF() const;
308 bool Delete(AffectEnum eNum);
309 bool AddNew(const OLEVariant &FieldList,const OLEVariant &Values);
310 bool Update(const OLEVariant &FieldList,const OLEVariant &Values);
311 bool CancelUpdate();
313 bool NextRecordset(OLEVariant& RecordsAffected,ADORecordset** ppiRset);
314 bool get_RecordCount(ADO_LONGPTR &_nRet) const;
315 bool get_MaxRecords(ADO_LONGPTR &_nRet) const;
316 bool put_MaxRecords(ADO_LONGPTR _nRet);
317 bool get_CursorType(CursorTypeEnum &_nRet) const;
318 bool put_CursorType(CursorTypeEnum _nRet);
319 bool get_LockType(LockTypeEnum &_nRet) const;
320 bool put_LockType(LockTypeEnum _nRet);
321 bool get_CacheSize(sal_Int32 &_nRet) const;
322 bool put_CacheSize(sal_Int32 _nRet);
323 bool UpdateBatch(AffectEnum AffectRecords);
324 };
325
326
327 class WpADOParameter:public WpOLEBase<ADOParameter>
328 {
329 public:
330 // Ctors, operator=
331 // They only call the superclass
332 WpADOParameter() = default;
333 WpADOParameter(const WpADOParameter& rhs):WpOLEBase<ADOParameter>(rhs){}
335 {WpOLEBase<ADOParameter>::operator=(rhs); return *this;}
336
337
338 OUString GetName() const ;
339 DataTypeEnum GetADOType() const ;
340 void put_Type(const DataTypeEnum& _eType);
341 bool put_Size(sal_Int32 _nSize);
342 sal_Int32 GetAttributes() const ;
343 sal_Int32 GetPrecision() const ;
344 sal_Int32 GetNumericScale() const ;
345 ParameterDirectionEnum get_Direction() const;
346 void GetValue(OLEVariant& aValVar) const ;
347 OLEVariant GetValue() const;
348 bool PutValue(const OLEVariant& aVariant);
349 bool AppendChunk(const OLEVariant& aVariant);
350 };
351
352 class OTools
353 {
354 public:
360 static void putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,const OLEVariant &_aValVar);
361
368 static OLEVariant getValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition);
369 };
370}
371
372/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static OLEVariant getValue(const WpADOProperties &_rProps, const OLEVariant &_aPosition)
getValue returns a specific property value
Definition: Awrapado.cxx:2003
static void putValue(const WpADOProperties &_rProps, const OLEVariant &_aPosition, const OLEVariant &_aValVar)
putValue set the property value at the ado column
Definition: Awrapado.cxx:1992
ADOParameters * get_Parameters() const
Definition: Awrapado.cxx:345
bool put_Prepared(VARIANT_BOOL bPrepared) const
Definition: Awrapado.cxx:323
bool put_CommandType(CommandTypeEnum lCmdType)
Definition: Awrapado.cxx:353
WpADOCommand(const WpADOCommand &rhs)
Definition: Awrapado.hxx:145
sal_Int32 get_CommandTimeout() const
Definition: Awrapado.cxx:301
void put_ActiveConnection(const OLEVariant &vConn)
Definition: Awrapado.cxx:252
void put_CommandTimeout(sal_Int32 nRet)
Definition: Awrapado.cxx:309
ADOParameter * CreateParameter(std::u16string_view _bstr, DataTypeEnum Type, ParameterDirectionEnum Direction, long nSize, const OLEVariant &Value)
Definition: Awrapado.cxx:335
CommandTypeEnum get_CommandType() const
Definition: Awrapado.cxx:359
sal_Int32 get_State() const
Definition: Awrapado.cxx:276
bool Execute(OLEVariant &RecordsAffected, OLEVariant &Parameters, long Options, ADORecordset **ppiRset)
Definition: Awrapado.cxx:329
OUString get_CommandText() const
Definition: Awrapado.cxx:284
WpADOCommand & operator=(const WpADOCommand &rhs)
Definition: Awrapado.hxx:147
bool put_CommandText(std::u16string_view aCon)
Definition: Awrapado.cxx:292
bool put_Name(std::u16string_view Name)
Definition: Awrapado.cxx:376
bool putref_ActiveConnection(const WpADOConnection &rCon)
Definition: Awrapado.cxx:246
ADORecordset * getExportedKeys(const css::uno::Any &catalog, const OUString &schema, std::u16string_view table)
Definition: Awrapado.cxx:1458
bool put_Provider(std::u16string_view _bstr)
Definition: Awrapado.cxx:217
ADORecordset * getIndexInfo(const css::uno::Any &catalog, const OUString &schema, std::u16string_view table, bool unique, bool approximate)
Definition: Awrapado.cxx:1578
bool GetErrors(ADOErrors **pErrors)
Definition: Awrapado.cxx:132
ADORecordset * getColumnPrivileges(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view table, std::u16string_view columnNamePattern)
Definition: Awrapado.cxx:1907
bool OpenSchema(SchemaEnum eNum, OLEVariant const &Restrictions, OLEVariant const &SchemaID, ADORecordset **pprset)
Definition: Awrapado.cxx:232
ADORecordset * getColumns(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern, std::u16string_view columnNamePattern)
Definition: Awrapado.cxx:1863
OUString GetConnectionString() const
Definition: Awrapado.cxx:44
bool put_Mode(const ConnectModeEnum &eNum)
Definition: Awrapado.cxx:204
WpADOConnection & operator=(const WpADOConnection &rhs)
Definition: Awrapado.hxx:57
sal_Int32 GetCommandTimeout() const
Definition: Awrapado.cxx:61
OUString GetDefaultDatabase() const
Definition: Awrapado.cxx:138
sal_Int32 GetConnectionTimeout() const
Definition: Awrapado.cxx:75
bool put_Attributes(sal_Int32 nRet)
Definition: Awrapado.cxx:176
ADORecordset * getCrossReference(const css::uno::Any &primaryCatalog, const OUString &primarySchema, std::u16string_view primaryTable, const css::uno::Any &foreignCatalog, const OUString &foreignSchema, std::u16string_view foreignTable)
Definition: Awrapado.cxx:1663
WpADOProperties get_Properties() const
Definition: Awrapado.cxx:37
ADORecordset * getImportedKeys(const css::uno::Any &catalog, const OUString &schema, std::u16string_view table)
Definition: Awrapado.cxx:1498
sal_Int32 get_Attributes() const
Definition: Awrapado.cxx:168
ADORecordset * getTables(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern, const css::uno::Sequence< OUString > &types)
Definition: Awrapado.cxx:1800
bool put_CursorLocation(const CursorLocationEnum &eNum)
Definition: Awrapado.cxx:190
bool Execute(std::u16string_view CommandText, OLEVariant &RecordsAffected, long Options, WpADORecordset **ppiRset)
Definition: Awrapado.cxx:95
bool Open(std::u16string_view ConnectionString, std::u16string_view UserID, std::u16string_view Password, long Options)
Definition: Awrapado.cxx:122
void PutConnectionTimeout(sal_Int32 nRet)
Definition: Awrapado.cxx:83
ADORecordset * getProcedures(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view procedureNamePattern)
Definition: Awrapado.cxx:1716
ADORecordset * getTypeInfo(DataTypeEnum _eType=adEmpty)
Definition: Awrapado.cxx:1950
ADORecordset * getTablePrivileges(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern)
Definition: Awrapado.cxx:1621
WpADOConnection(const WpADOConnection &rhs)
Definition: Awrapado.hxx:55
ADORecordset * getPrimaryKeys(const css::uno::Any &catalog, const OUString &schema, std::u16string_view table)
Definition: Awrapado.cxx:1540
void PutCommandTimeout(sal_Int32 nRet)
Definition: Awrapado.cxx:69
bool put_IsolationLevel(const IsolationLevelEnum &eNum)
Definition: Awrapado.cxx:162
IsolationLevelEnum get_IsolationLevel() const
Definition: Awrapado.cxx:154
ADORecordset * getProcedureColumns(const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view procedureNamePattern, std::u16string_view columnNamePattern)
Definition: Awrapado.cxx:1755
ConnectModeEnum get_Mode() const
Definition: Awrapado.cxx:196
CursorLocationEnum get_CursorLocation() const
Definition: Awrapado.cxx:182
bool PutDefaultDatabase(std::u16string_view _bstr)
Definition: Awrapado.cxx:145
bool PutConnectionString(std::u16string_view aCon) const
Definition: Awrapado.cxx:52
OUString GetDescription() const
Definition: Awrapado.cxx:390
sal_Int32 GetNumber() const
Definition: Awrapado.cxx:406
WpADOError(const WpADOError &rhs)
Definition: Awrapado.hxx:183
sal_Int32 GetNativeError() const
Definition: Awrapado.cxx:422
OUString GetSource() const
Definition: Awrapado.cxx:398
WpADOError & operator=(const WpADOError &rhs)
Definition: Awrapado.hxx:185
OUString GetSQLState() const
Definition: Awrapado.cxx:414
DataTypeEnum GetADOType() const
Definition: Awrapado.cxx:478
OLEVariant GetChunk(long Length) const
Definition: Awrapado.cxx:529
bool PutAttributes(sal_Int32 _nDefSize)
Definition: Awrapado.cxx:595
WpADOProperties get_Properties()
Definition: Awrapado.cxx:430
sal_Int32 GetStatus() const
Definition: Awrapado.cxx:454
OLEVariant GetOriginalValue() const
Definition: Awrapado.cxx:543
WpADOField(const WpADOField &rhs)
Definition: Awrapado.hxx:205
OUString GetName() const
Definition: Awrapado.cxx:470
sal_Int32 GetDefinedSize() const
Definition: Awrapado.cxx:461
sal_Int32 GetActualSize() const
Definition: Awrapado.cxx:438
bool PutValue(const OLEVariant &aVariant)
Definition: Awrapado.cxx:501
bool AppendChunk(const OLEVariant &Variant)
Definition: Awrapado.cxx:523
bool PutDefinedSize(sal_Int32 _nDefSize)
Definition: Awrapado.cxx:589
void PutADOType(DataTypeEnum eType)
Definition: Awrapado.cxx:583
bool PutNumericScale(sal_Int8 _prec)
Definition: Awrapado.cxx:577
sal_Int32 GetPrecision() const
Definition: Awrapado.cxx:507
OLEVariant get_Value() const
Definition: Awrapado.cxx:493
WpADOField & operator=(const WpADOField &rhs)
Definition: Awrapado.hxx:207
sal_Int32 GetNumericScale() const
Definition: Awrapado.cxx:515
bool PutPrecision(sal_Int8 _prec)
Definition: Awrapado.cxx:571
sal_Int32 GetAttributes() const
Definition: Awrapado.cxx:446
OLEVariant GetUnderlyingValue() const
Definition: Awrapado.cxx:557
bool PutValue(const OLEVariant &aVariant)
Definition: Awrapado.cxx:962
WpADOParameter & operator=(const WpADOParameter &rhs)
Definition: Awrapado.hxx:334
sal_Int32 GetAttributes() const
Definition: Awrapado.cxx:916
DataTypeEnum GetADOType() const
Definition: Awrapado.cxx:902
bool put_Size(sal_Int32 _nSize)
Definition: Awrapado.cxx:972
void put_Type(const DataTypeEnum &_eType)
Definition: Awrapado.cxx:910
sal_Int32 GetPrecision() const
Definition: Awrapado.cxx:924
bool AppendChunk(const OLEVariant &aVariant)
Definition: Awrapado.cxx:967
sal_Int32 GetNumericScale() const
Definition: Awrapado.cxx:932
WpADOParameter(const WpADOParameter &rhs)
Definition: Awrapado.hxx:333
ParameterDirectionEnum get_Direction() const
Definition: Awrapado.cxx:940
WpADOProperty(const WpADOProperty &rhs)
Definition: Awrapado.hxx:251
WpADOProperty & operator=(const WpADOProperty &rhs)
Definition: Awrapado.hxx:252
bool PutAttributes(sal_Int32 _nDefSize)
Definition: Awrapado.cxx:646
sal_Int32 GetAttributes() const
Definition: Awrapado.cxx:638
OLEVariant GetValue() const
Definition: Awrapado.cxx:601
DataTypeEnum GetADOType() const
Definition: Awrapado.cxx:630
bool PutValue(const OLEVariant &aValVar)
Definition: Awrapado.cxx:616
bool Delete(AffectEnum eNum)
Definition: Awrapado.cxx:796
bool Supports(CursorOptionEnum CursorOptions)
Definition: Awrapado.cxx:708
bool get_CacheSize(sal_Int32 &_nRet) const
Definition: Awrapado.cxx:876
bool AddNew(const OLEVariant &FieldList, const OLEVariant &Values)
Definition: Awrapado.cxx:802
WpADORecordset & operator=(const WpADORecordset &rhs)
Definition: Awrapado.hxx:274
bool put_MaxRecords(ADO_LONGPTR _nRet)
Definition: Awrapado.cxx:846
bool put_CacheSize(sal_Int32 _nRet)
Definition: Awrapado.cxx:882
bool put_CursorType(CursorTypeEnum _nRet)
Definition: Awrapado.cxx:858
WpADORecordset(const WpADORecordset &rhs)
Definition: Awrapado.hxx:273
bool Move(sal_Int32 nRows, VARIANT aBmk)
Definition: Awrapado.cxx:774
bool UpdateBatch(AffectEnum AffectRecords)
Definition: Awrapado.cxx:888
CompareEnum CompareBookmarks(const OLEVariant &left, const OLEVariant &right)
Definition: Awrapado.cxx:750
bool Open(VARIANT Source, VARIANT ActiveConnection, CursorTypeEnum CursorType, LockTypeEnum LockType, sal_Int32 Options)
Definition: Awrapado.cxx:668
void PutRefDataSource(IUnknown *pIUnknown)
Definition: Awrapado.cxx:730
bool put_LockType(LockTypeEnum _nRet)
Definition: Awrapado.cxx:870
bool SetBookmark(const OLEVariant &pSafeAr)
Definition: Awrapado.cxx:758
WpADOProperties get_Properties() const
Definition: Awrapado.cxx:820
bool get_CursorType(CursorTypeEnum &_nRet) const
Definition: Awrapado.cxx:852
WpADOFields GetFields() const
Definition: Awrapado.cxx:765
bool Update(const OLEVariant &FieldList, const OLEVariant &Values)
Definition: Awrapado.cxx:808
bool get_LockType(LockTypeEnum &_nRet) const
Definition: Awrapado.cxx:864
bool NextRecordset(OLEVariant &RecordsAffected, ADORecordset **ppiRset)
Definition: Awrapado.cxx:828
void GetDataSource(IUnknown **pIUnknown) const
Definition: Awrapado.cxx:724
PositionEnum_Param get_AbsolutePosition()
Definition: Awrapado.cxx:716
bool get_MaxRecords(ADO_LONGPTR &_nRet) const
Definition: Awrapado.cxx:840
bool get_RecordCount(ADO_LONGPTR &_nRet) const
Definition: Awrapado.cxx:834
WpOLEBase< T > & operator=(const WpOLEBase< T > &rhs)
Definition: Aolewrap.hxx:55
Type
WpOLECollection< ADOProperties, WpADOProperty > WpADOProperties
Definition: Awrapado.hxx:46
WpOLEAppendCollection< ADOFields, WpADOField > WpADOFields
Definition: Awrapado.hxx:43
Length
signed char sal_Int8
CursorType