135 #include <TStopwatch.h>
148 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,15,0)
149 #include <TBufferFile.h>
152 using namespace odbc;
158 class RDBCRow: public TSQLRow
166 virtual ~RDBCRow() { fResultSet = 0; }
170 void Close(Option_t* ) { fResultSet = 0; }
172 const char* GetField(Int_t field) { fField = fResultSet ? fResultSet->
GetString(field-1).Data() :
"";
return fField.Data(); }
185 fRow =
new RDBCRow(
this);
239 Bool_t return_value = kFALSE;
241 if(!
fImp) { Destroyed();
return return_value; }
251 return_value = kFALSE;
271 if(!
fImp) { Destroyed();
return str; }
299 Bool_t return_value = kFALSE;
301 if(!
fImp) { Destroyed();
return return_value; }
311 return_value = kFALSE;
329 Char_t return_value = 0;
331 if(!
fImp) { Destroyed();
return return_value; }
335 return_value = rs->
getByte(columnIndex);
359 Short_t return_value = 0;
361 if(!
fImp) { Destroyed();
return return_value; }
365 return_value = rs->
getShort(columnIndex);
389 Int_t return_value = 0;
391 if(!
fImp) { Destroyed();
return return_value; }
395 return_value = rs->
getInt(columnIndex);
419 Long_t return_value = 0;
421 if(!
fImp) { Destroyed();
return return_value; }
425 return_value = rs->
getLong(columnIndex);
449 Float_t return_value = 0;
451 if(!
fImp) { Destroyed();
return return_value; }
455 return_value = rs->
getFloat(columnIndex);
479 Double_t return_value = 0;
481 if(!
fImp) { Destroyed();
return return_value; }
485 return_value = rs->
getDouble(columnIndex);
545 if(!
fImp) { Destroyed();
return return_value; }
578 if(!
fImp) { Destroyed();
return return_value; }
612 if(!
fImp) { Destroyed();
return return_value; }
660 if(!
fImp) { Destroyed();
return buffer; }
665 Int_t bufsiz = rsStream->rdbuf()->in_avail();
666 if(bufsiz<=0)
return 0;
667 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,15,0)
668 buffer =
new TBufferFile(TBuffer::kWrite, bufsiz);
670 buffer =
new TBuffer(TBuffer::kWrite, bufsiz);
673 while ((c = rsStream->get()) != EOF)
677 buffer->SetBufferOffset();
678 buffer->SetReadMode();
713 if(!
fImp) { Destroyed();
return buffer; }
718 Int_t bufsiz = rsStream->rdbuf()->in_avail();
719 if(bufsiz<=0)
return 0;
720 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,15,0)
721 buffer =
new TBufferFile(TBuffer::kWrite, bufsiz);
723 buffer =
new TBuffer(TBuffer::kWrite, bufsiz);
726 while ((c = rsStream->get()) != EOF)
730 buffer->SetBufferOffset();
731 buffer->SetReadMode();
756 obj = (TObject *)b->ReadObjectAny(TObject::Class());
1055 if(!
fImp) { Destroyed();
return str; }
1097 Int_t return_value = 0;
1099 if(!
fImp) { Destroyed();
return return_value; }
1112 return return_value;
1128 Bool_t return_value = kFALSE;
1130 if(!
fImp) { Destroyed();
return return_value; }
1140 return_value = kFALSE;
1142 return return_value;
1158 Bool_t return_value = kFALSE;
1160 if(!
fImp) { Destroyed();
return return_value; }
1170 return_value = kFALSE;
1172 return return_value;
1187 Bool_t return_value = kFALSE;
1189 if(!
fImp) { Destroyed();
return return_value; }
1199 return_value = kFALSE;
1201 return return_value;
1221 Bool_t return_value = kFALSE;
1223 if(!
fImp) { Destroyed();
return return_value; }
1227 return_value = rs->
isLast();
1233 return_value = kFALSE;
1235 return return_value;
1249 if(!
fImp) { Destroyed();
return; }
1273 if(!
fImp) { Destroyed();
return; }
1297 Int_t return_value = 0;
1299 if(!
fImp) { Destroyed();
return return_value; }
1303 return_value = rs->
getRow();
1311 return return_value;
1359 if(!
fImp) { Destroyed();
return; }
1382 Int_t return_value = 0;
1384 if(!
fImp) { Destroyed();
return return_value; }
1396 return return_value;
1411 Int_t return_value = 0;
1413 if(!
fImp) { Destroyed();
return return_value; }
1425 return return_value;
1441 Int_t return_value = 0;
1443 if(!
fImp) { Destroyed();
return return_value; }
1455 return return_value;
1473 Bool_t return_value = kFALSE;
1475 if(!
fImp) { Destroyed();
return return_value; }
1485 return_value = kFALSE;
1487 return return_value;
1505 Bool_t return_value = kFALSE;
1507 if(!
fImp) { Destroyed();
return return_value; }
1517 return_value = kFALSE;
1519 return return_value;
1538 Bool_t return_value = kFALSE;
1540 if(!
fImp) { Destroyed();
return return_value; }
1550 return_value = kFALSE;
1552 return return_value;
1569 if(!
fImp) { Destroyed();
return; }
1597 if(!
fImp) { Destroyed();
return; }
1625 if(!
fImp) { Destroyed();
return; }
1653 if(!
fImp) { Destroyed();
return; }
1681 if(!
fImp) { Destroyed();
return; }
1709 if(!
fImp) { Destroyed();
return; }
1737 if(!
fImp) { Destroyed();
return; }
1766 if(!
fImp) { Destroyed();
return; }
1795 if(!
fImp) { Destroyed();
return; }
1825 if(!
fImp) { Destroyed();
return; }
1855 if(!
fImp) { Destroyed();
return; }
1888 if(!
fImp) { Destroyed();
return; }
1921 if(!
fImp) { Destroyed();
return; }
1960 if(!
fImp) { Destroyed();
return; }
1964 Int_t xl = (x->BufferSize()>
length) && (length>0) ? length : x->BufferSize();
1965 std::istringstream*
s =
new std::istringstream(x->Buffer());
1993 if(!
fImp) { Destroyed();
return; }
1997 Int_t xl = (x->BufferSize()>
length) && (length>0) ? length : x->BufferSize();
1998 std::istringstream*
s =
new std::istringstream(x->Buffer());
2024 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,15,0)
2025 TBuffer *
b =
new TBufferFile(TBuffer::kWrite);
2027 TBuffer *b =
new TBuffer(TBuffer::kWrite);
2348 if(!
fImp) { Destroyed();
return; }
2371 if(!
fImp) { Destroyed();
return; }
2394 if(!
fImp) { Destroyed();
return; }
2429 if(!
fImp) { Destroyed();
return; }
2455 if(!
fImp) { Destroyed();
return; }
2488 if(!
fImp) { Destroyed();
return; }
2512 if(!
fImp) { Destroyed();
return; }
2544 Bool_t return_value=kFALSE;
2546 if(!
fImp) { Destroyed();
return 0; }
2550 return_value = rs->
next();
2558 return return_value ?
fRow->Set(
this) : 0;
2574 Bool_t return_value = kFALSE;
2576 if(!
fImp) { Destroyed();
return 0; }
2580 return_value = rs->
first();
2588 return return_value ?
fRow->Set(
this) : 0;
2620 Bool_t return_value = kFALSE;
2622 if(!
fImp) { Destroyed();
return 0; }
2634 return return_value ?
fRow->Set(
this) : 0;
2659 Bool_t return_value = kFALSE;
2661 if(!
fImp) { Destroyed();
return 0; }
2673 return return_value ?
fRow->Set(
this) : 0;
2692 Bool_t return_value = kFALSE;
2694 if(!
fImp) { Destroyed();
return 0; }
2706 return return_value ?
fRow->Set(
this) : 0;
2722 Bool_t return_value = kFALSE;
2724 if(!
fImp) { Destroyed();
return 0; }
2728 return_value = rs->
last();
2736 return return_value ?
fRow->Set(
this) : 0;
2755 if(!
fImp) { Destroyed();
return; }