Logo ROOT   6.08/07
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 #ifndef ROOT_TSQLRow
16 #include "TSQLRow.h"
17 #endif
18 
19 #if !defined(__CINT__)
20 #include <occi.h>
21 #ifdef CONST
22 #undef CONST
23 #endif
24 #else
25 namespace oracle { namespace occi {
26 class ResultSet;
27 class MetaData;
28  }}
29 #endif
30 
31 class TOracleRow : public TSQLRow {
32 
33 private:
34  oracle::occi::ResultSet *fResult; // current result set
35  std::vector<oracle::occi::MetaData> *fFieldInfo; // metadata for columns
37  char **fFieldsBuffer;
38 
39  Bool_t IsValid(Int_t field);
40 
41  TOracleRow(const TOracleRow&); // Not implemented.
42  TOracleRow &operator=(const TOracleRow&); // Not implemented.
43 
44 protected:
45  void GetRowData();
46 
47 public:
48  TOracleRow(oracle::occi::ResultSet *rs,
49  std::vector<oracle::occi::MetaData> *fieldMetaData);
50  ~TOracleRow();
51 
52  void Close(Option_t *opt="");
53  ULong_t GetFieldLength(Int_t field);
54  const char *GetField(Int_t field);
55 
56  ClassDef(TOracleRow,0) // One row of Oracle query result
57 };
58 
59 #endif
const char Option_t
Definition: RtypesCore.h:62
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t fFieldCount
Definition: TOracleRow.h:36
std::vector< oracle::occi::MetaData > * fFieldInfo
Definition: TOracleRow.h:35
oracle::occi::ResultSet * fResult
Definition: TOracleRow.h:34
unsigned long ULong_t
Definition: RtypesCore.h:51
char ** fFieldsBuffer
Definition: TOracleRow.h:37