Logo ROOT   6.16/01
Reference Guide
TOracleRow.h
Go to the documentation of this file.
1// @(#)root/physics:$Id$
2// Author: Yan Liu and Shaowen Wang 23/11/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TOracleRow
13#define ROOT_TOracleRow
14
15#include "TSQLRow.h"
16
17#if !defined(__CINT__)
18#include <occi.h>
19#ifdef CONST
20#undef CONST
21#endif
22#else
23namespace oracle { namespace occi {
24class ResultSet;
25class MetaData;
26 }}
27#endif
28
29class TOracleRow : public TSQLRow {
30
31private:
32 oracle::occi::ResultSet *fResult; // current result set
33 std::vector<oracle::occi::MetaData> *fFieldInfo; // metadata for columns
36
37 Bool_t IsValid(Int_t field);
38
39 TOracleRow(const TOracleRow&); // Not implemented.
40 TOracleRow &operator=(const TOracleRow&); // Not implemented.
41
42protected:
43 void GetRowData();
44
45public:
46 TOracleRow(oracle::occi::ResultSet *rs,
47 std::vector<oracle::occi::MetaData> *fieldMetaData);
49
50 void Close(Option_t *opt="");
52 const char *GetField(Int_t field);
53
54 ClassDef(TOracleRow,0) // One row of Oracle query result
55};
56
57#endif
int Int_t
Definition: RtypesCore.h:41
unsigned long ULong_t
Definition: RtypesCore.h:51
bool Bool_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
TOracleRow(const TOracleRow &)
~TOracleRow()
Destroy row object.
Definition: TOracleRow.cxx:40
Bool_t IsValid(Int_t field)
Check if row is open and field index within range.
Definition: TOracleRow.cxx:64
TOracleRow(oracle::occi::ResultSet *rs, std::vector< oracle::occi::MetaData > *fieldMetaData)
void Close(Option_t *opt="")
Close row.
Definition: TOracleRow.cxx:48
TOracleRow & operator=(const TOracleRow &)
Int_t fFieldCount
Definition: TOracleRow.h:34
ULong_t GetFieldLength(Int_t field)
Get length in bytes of specified field.
Definition: TOracleRow.cxx:80
const char * GetField(Int_t field)
Definition: TOracleRow.cxx:92
std::vector< oracle::occi::MetaData > * fFieldInfo
Definition: TOracleRow.h:33
void GetRowData()
Definition: TOracleRow.cxx:104
oracle::occi::ResultSet * fResult
Definition: TOracleRow.h:32
char ** fFieldsBuffer
Definition: TOracleRow.h:35