Logo ROOT   6.10/09
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
23 namespace oracle { namespace occi {
24 class ResultSet;
25 class MetaData;
26  }}
27 #endif
28 
29 class TOracleRow : public TSQLRow {
30 
31 private:
32  oracle::occi::ResultSet *fResult; // current result set
33  std::vector<oracle::occi::MetaData> *fFieldInfo; // metadata for columns
35  char **fFieldsBuffer;
36 
37  Bool_t IsValid(Int_t field);
38 
39  TOracleRow(const TOracleRow&); // Not implemented.
40  TOracleRow &operator=(const TOracleRow&); // Not implemented.
41 
42 protected:
43  void GetRowData();
44 
45 public:
46  TOracleRow(oracle::occi::ResultSet *rs,
47  std::vector<oracle::occi::MetaData> *fieldMetaData);
48  ~TOracleRow();
49 
50  void Close(Option_t *opt="");
51  ULong_t GetFieldLength(Int_t field);
52  const char *GetField(Int_t field);
53 
54  ClassDef(TOracleRow,0) // One row of Oracle query result
55 };
56 
57 #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:297
Int_t fFieldCount
Definition: TOracleRow.h:34
std::vector< oracle::occi::MetaData > * fFieldInfo
Definition: TOracleRow.h:33
oracle::occi::ResultSet * fResult
Definition: TOracleRow.h:32
unsigned long ULong_t
Definition: RtypesCore.h:51
Binding & operator=(OUT(*fun)(void))
char ** fFieldsBuffer
Definition: TOracleRow.h:35