Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6dbcresultset.h
Go to the documentation of this file.
1 
10 #ifndef P6DBCRESULTSET_H__
11 #define P6DBCRESULTSET_H__ 1
12 
13 #include "p6com.h"
14 #include "p6datastream.h"
15 
16 namespace P6R {
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
27 interface p6IDBCResultSet : public p6ICom
28 {
43  P6COMMETHOD getInteger( P6UINT32 index, P6INT32* pValue ) = 0;
44 
59  P6COMMETHOD getUnsigned( P6UINT32 index, P6UINT32* pValue ) = 0;
60 
75  P6COMMETHOD getLong( P6UINT32 index, P6INT64* pValue ) = 0;
76 
91  P6COMMETHOD getUnsignedLong( P6UINT32 index, P6UINT64* pValue ) = 0;
92 
107  P6COMMETHOD getDouble( P6UINT32 index, P6FLOAT* pValue ) = 0;
108 
128  P6COMMETHOD getString( P6UINT32 index, P6WCHAR* pString, P6UINT32 cBuffer, P6UINT32* pWritten ) = 0;
129 
149  P6COMMETHOD getDate( P6UINT32 index, P6TIME* pTime ) = 0;
150 
173  P6COMMETHOD getBlob( P6UINT32 index, P6UINT8* pBlob, P6UINT32 cBuffer, P6UINT32* pWritten ) = 0;
174 
184  P6COMMETHOD next() = 0;
185 
196  P6COMMETHOD reset() = 0;
197 
213  P6COMMETHOD toXML( p6IDataStream* pOutput, const P6WCHAR* pTopElement ) = 0;
214 
231  P6COMMETHOD toJSON( p6IDataStream* pOutput, const P6WCHAR* pTopElement ) = 0;
232 };
233 
234 // {BE522EE9-A422-40fc-AAFB-D914D50DFB42}
235 #define IF_p6IDBCResultSet {0xbe522ee9,0xa422,0x40fc,{0xaa,0xfb,0xd9,0x14,0xd5,0xd,0xfb,0x42}}
236 
237 #ifdef __cplusplus
238 }
239 #endif
240 
241 } // namespace
242 
243 
244 #endif
245 
246 
247 
248 
249 
250 
P6LONGLONG P6INT64
Definition: p6types.h:50
virtual P6R::P6ERR getBlob(P6UINT32 index, P6UINT8 *pBlob, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR getInteger(P6UINT32 index, P6INT32 *pValue)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
virtual P6R::P6ERR getUnsignedLong(P6UINT32 index, P6UINT64 *pValue)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
virtual P6R::P6ERR getUnsigned(P6UINT32 index, P6UINT32 *pValue)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
p6IDataStream interface definitions
virtual P6R::P6ERR getLong(P6UINT32 index, P6INT64 *pValue)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
unsigned char P6UINT8
Definition: p6types.h:30
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:76
This interface is implmented by components that support receiving streamed data.
Definition: p6datastream.h:42
int P6INT32
Definition: p6types.h:41
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR getDouble(P6UINT32 index, P6FLOAT *pValue)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
virtual P6R::P6ERR next()=0
Move the result set cursor to the next row in the result.
P6ULONGLONG P6UINT64
Definition: p6types.h:49
virtual P6R::P6ERR getDate(P6UINT32 index, P6TIME *pTime)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
virtual P6R::P6ERR toXML(p6IDataStream *pOutput, const P6WCHAR *pTopElement)=0
Return all the values in the result set in XML format.
#define P6COMMETHOD
Definition: p6types.h:872
virtual P6R::P6ERR getString(P6UINT32 index, P6WCHAR *pString, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with ...
P6INT64 P6TIME
The wallclock time represented as the number of microseconds since midnight January 1 1970 UTC...
Definition: p6types.h:228
virtual P6R::P6ERR reset()=0
Move the result set cursor to the first returned row in the result.
double P6FLOAT
Definition: p6types.h:63
This interface provides a enumerator type interface to the result set of a query. ...
P6COM definitions and interfaces.
virtual P6R::P6ERR toJSON(p6IDataStream *pOutput, const P6WCHAR *pTopElement)=0
Return all the values in the result set in JSON format.