#include <TOracleStatement.h>
Inheritance diagram for TOracleStatement:
Public Member Functions | |
TOracleStatement (Environment *env, Connection *conn, Statement *stmt, Int_t niter, Bool_t errout=kTRUE) | |
virtual | ~TOracleStatement () |
virtual void | Close (Option_t *="") |
virtual Int_t | GetBufferLength () const |
virtual Int_t | GetNumParameters () |
virtual Bool_t | SetNull (Int_t npar) |
virtual Bool_t | SetInt (Int_t npar, Int_t value) |
virtual Bool_t | SetUInt (Int_t npar, UInt_t value) |
virtual Bool_t | SetLong (Int_t npar, Long_t value) |
virtual Bool_t | SetLong64 (Int_t npar, Long64_t value) |
virtual Bool_t | SetULong64 (Int_t npar, ULong64_t value) |
virtual Bool_t | SetDouble (Int_t npar, Double_t value) |
virtual Bool_t | SetString (Int_t npar, const char *value, Int_t maxsize=256) |
virtual Bool_t | SetBinary (Int_t npar, void *mem, Long_t size, Long_t maxsize=0x1000) |
virtual Bool_t | SetDate (Int_t npar, Int_t year, Int_t month, Int_t day) |
virtual Bool_t | SetTime (Int_t npar, Int_t hour, Int_t min, Int_t sec) |
virtual Bool_t | SetDatime (Int_t npar, Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec) |
virtual Bool_t | SetTimestamp (Int_t npar, Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec, Int_t frac=0) |
virtual void | SetTimeFormating (const char *fmt) |
virtual Bool_t | SetVInt (Int_t npar, const std::vector< Int_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | SetVUInt (Int_t npar, const std::vector< UInt_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | SetVLong (Int_t npar, const std::vector< Long_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | SetVLong64 (Int_t npar, const std::vector< Long64_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | SetVULong64 (Int_t npar, const std::vector< ULong64_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | SetVDouble (Int_t npar, const std::vector< Double_t > value, const char *schemaName, const char *typeName) |
virtual Bool_t | NextIteration () |
virtual Bool_t | Process () |
virtual Int_t | GetNumAffectedRows () |
virtual Bool_t | StoreResult () |
virtual Int_t | GetNumFields () |
virtual const char * | GetFieldName (Int_t nfield) |
virtual Bool_t | SetMaxFieldSize (Int_t nfield, Long_t maxsize) |
virtual Bool_t | NextResultRow () |
virtual Bool_t | IsNull (Int_t) |
virtual Int_t | GetInt (Int_t npar) |
virtual UInt_t | GetUInt (Int_t npar) |
virtual Long_t | GetLong (Int_t npar) |
virtual Long64_t | GetLong64 (Int_t npar) |
virtual ULong64_t | GetULong64 (Int_t npar) |
virtual Double_t | GetDouble (Int_t npar) |
virtual const char * | GetString (Int_t npar) |
virtual Bool_t | GetBinary (Int_t npar, void *&mem, Long_t &size) |
virtual Bool_t | GetDate (Int_t npar, Int_t &year, Int_t &month, Int_t &day) |
virtual Bool_t | GetTime (Int_t npar, Int_t &hour, Int_t &min, Int_t &sec) |
virtual Bool_t | GetDatime (Int_t npar, Int_t &year, Int_t &month, Int_t &day, Int_t &hour, Int_t &min, Int_t &sec) |
virtual Bool_t | GetTimestamp (Int_t npar, Int_t &year, Int_t &month, Int_t &day, Int_t &hour, Int_t &min, Int_t &sec, Int_t &frac) |
virtual Bool_t | GetVInt (Int_t npar, std::vector< Int_t > &value) |
virtual Bool_t | GetVUInt (Int_t npar, std::vector< UInt_t > &value) |
virtual Bool_t | GetVLong (Int_t npar, std::vector< Long_t > &value) |
virtual Bool_t | GetVLong64 (Int_t npar, std::vector< Long64_t > &value) |
virtual Bool_t | GetVULong64 (Int_t npar, std::vector< ULong64_t > &value) |
virtual Bool_t | GetVDouble (Int_t npar, std::vector< Double_t > &value) |
ClassDef (TOracleStatement, 0) | |
Protected Member Functions | |
Bool_t | IsParSettMode () const |
Bool_t | IsResultSet () const |
void | SetBufferSize (Int_t size) |
void | CloseBuffer () |
Protected Attributes | |
Environment * | fEnv |
Connection * | fConn |
Statement * | fStmt |
ResultSet * | fResult |
std::vector< MetaData > * | fFieldInfo |
TBufferRec * | fBuffer |
Int_t | fBufferSize |
Int_t | fNumIterations |
Int_t | fIterCounter |
Int_t | fWorkingMode |
TString | fTimeFmt |
Classes | |
struct | TBufferRec |
Definition at line 33 of file TOracleStatement.h.
TOracleStatement::TOracleStatement | ( | Environment * | env, | |
Connection * | conn, | |||
Statement * | stmt, | |||
Int_t | niter, | |||
Bool_t | errout = kTRUE | |||
) |
TOracleStatement::~TOracleStatement | ( | ) | [virtual] |
Bool_t TOracleStatement::IsParSettMode | ( | ) | const [inline, protected] |
Bool_t TOracleStatement::IsResultSet | ( | ) | const [inline, protected] |
Definition at line 56 of file TOracleStatement.h.
References fResult, and fWorkingMode.
Referenced by GetFieldName(), GetNumFields(), and StoreResult().
void TOracleStatement::SetBufferSize | ( | Int_t | size | ) | [protected] |
Definition at line 129 of file TOracleStatement.cxx.
References CloseBuffer(), fBuffer, fBufferSize, n, TOracleStatement::TBufferRec::namebuf, and TOracleStatement::TBufferRec::strbufsize.
Referenced by StoreResult().
void TOracleStatement::CloseBuffer | ( | ) | [protected] |
Definition at line 146 of file TOracleStatement.cxx.
References fBuffer, fBufferSize, n, and TOracleStatement::TBufferRec::namebuf.
Referenced by Close(), NextResultRow(), and SetBufferSize().
void TOracleStatement::Close | ( | Option_t * | = "" |
) | [virtual] |
Definition at line 63 of file TOracleStatement.cxx.
References CloseBuffer(), fConn, fFieldInfo, fIterCounter, fResult, and fStmt.
Referenced by ~TOracleStatement().
virtual Int_t TOracleStatement::GetBufferLength | ( | ) | const [inline, virtual] |
Implements TSQLStatement.
Definition at line 67 of file TOracleStatement.h.
References fNumIterations.
Int_t TOracleStatement::GetNumParameters | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 204 of file TOracleStatement.cxx.
References CheckStatement, and TObject::Info().
Reimplemented from TSQLStatement.
Definition at line 217 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 236 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 254 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 271 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 287 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 303 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 319 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetString | ( | Int_t | npar, | |
const char * | value, | |||
Int_t | maxsize = 256 | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 335 of file TOracleStatement.cxx.
References CheckSetPar, fIterCounter, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetBinary | ( | Int_t | npar, | |
void * | mem, | |||
Long_t | size, | |||
Long_t | maxsize = 0x1000 | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 358 of file TOracleStatement.cxx.
References buf, CheckSetPar, fIterCounter, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 383 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 405 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetDatime | ( | Int_t | npar, | |
Int_t | year, | |||
Int_t | month, | |||
Int_t | day, | |||
Int_t | hour, | |||
Int_t | min, | |||
Int_t | sec | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 427 of file TOracleStatement.cxx.
References CheckSetPar, fEnv, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetTimestamp | ( | Int_t | npar, | |
Int_t | year, | |||
Int_t | month, | |||
Int_t | day, | |||
Int_t | hour, | |||
Int_t | min, | |||
Int_t | sec, | |||
Int_t | frac = 0 | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 445 of file TOracleStatement.cxx.
References CheckSetPar, fEnv, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
virtual void TOracleStatement::SetTimeFormating | ( | const char * | fmt | ) | [inline, virtual] |
Reimplemented from TSQLStatement.
Definition at line 83 of file TOracleStatement.h.
References fTimeFmt.
Bool_t TOracleStatement::SetVInt | ( | Int_t | npar, | |
const std::vector< Int_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 463 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetVUInt | ( | Int_t | npar, | |
const std::vector< UInt_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 480 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetVLong | ( | Int_t | npar, | |
const std::vector< Long_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 497 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetVLong64 | ( | Int_t | npar, | |
const std::vector< Long64_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 519 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetVULong64 | ( | Int_t | npar, | |
const std::vector< ULong64_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 541 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::SetVDouble | ( | Int_t | npar, | |
const std::vector< Double_t > | value, | |||
const char * | schemaName, | |||
const char * | typeName | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 563 of file TOracleStatement.cxx.
References CheckSetPar, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::NextIteration | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 579 of file TOracleStatement.cxx.
References CheckStatement, fIterCounter, fNumIterations, fStmt, fWorkingMode, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::Process | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 163 of file TOracleStatement.cxx.
References CheckStatement, fStmt, fWorkingMode, IsParSettMode(), kFALSE, kTRUE, and TSQLStatement::SetError().
Int_t TOracleStatement::GetNumAffectedRows | ( | ) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 187 of file TOracleStatement.cxx.
References CheckStatement, fStmt, and TSQLStatement::SetError().
Bool_t TOracleStatement::StoreResult | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 606 of file TOracleStatement.cxx.
References CheckStatement, fFieldInfo, fResult, fStmt, fWorkingMode, IsResultSet(), kFALSE, SetBufferSize(), and TSQLStatement::SetError().
Int_t TOracleStatement::GetNumFields | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 652 of file TOracleStatement.cxx.
References fBufferSize, and IsResultSet().
const char * TOracleStatement::GetFieldName | ( | Int_t | nfield | ) | [virtual] |
Implements TSQLStatement.
Definition at line 660 of file TOracleStatement.cxx.
References CheckGetField, fBuffer, fBufferSize, IsResultSet(), TOracleStatement::TBufferRec::namebuf, and strcpy().
Reimplemented from TSQLStatement.
Definition at line 630 of file TOracleStatement.cxx.
References CheckStatement, fResult, fStmt, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::NextResultRow | ( | ) | [virtual] |
Implements TSQLStatement.
Definition at line 682 of file TOracleStatement.cxx.
References TSQLStatement::ClearError(), CloseBuffer(), fBuffer, fBufferSize, fResult, fWorkingMode, TObject::Info(), kFALSE, kTRUE, n, TSQLStatement::SetError(), TOracleStatement::TBufferRec::strbuf, and TOracleStatement::TBufferRec::strbufsize.
Reimplemented from TSQLStatement.
Definition at line 721 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 737 of file TOracleStatement.cxx.
References CheckGetField, fResult, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 756 of file TOracleStatement.cxx.
References CheckGetField, fResult, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 776 of file TOracleStatement.cxx.
References CheckGetField, fResult, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 795 of file TOracleStatement.cxx.
References CheckGetField, double, fResult, Long64_t, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 814 of file TOracleStatement.cxx.
References CheckGetField, double, fResult, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 833 of file TOracleStatement.cxx.
References CheckGetField, fResult, and TSQLStatement::SetError().
const char * TOracleStatement::GetString | ( | Int_t | npar | ) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 852 of file TOracleStatement.cxx.
References CheckGetField, TString::Data(), fBuffer, fResult, fTimeFmt, TSQLServer::GetFloatFormat(), TObject::Info(), len, TSQLStatement::SetError(), snprintf, TOracleStatement::TBufferRec::strbuf, TOracleStatement::TBufferRec::strbufsize, and strcpy().
Reimplemented from TSQLStatement.
Definition at line 919 of file TOracleStatement.cxx.
References CheckGetField, TObject::Error(), fBuffer, fResult, kFALSE, kTRUE, malloc(), TSQLStatement::SetError(), TOracleStatement::TBufferRec::strbuf, and TOracleStatement::TBufferRec::strbufsize.
Reimplemented from TSQLStatement.
Definition at line 1034 of file TOracleStatement.cxx.
References GetDatime(), and min.
Reimplemented from TSQLStatement.
Definition at line 1044 of file TOracleStatement.cxx.
References GetDatime().
Bool_t TOracleStatement::GetDatime | ( | Int_t | npar, | |
Int_t & | year, | |||
Int_t & | month, | |||
Int_t & | day, | |||
Int_t & | hour, | |||
Int_t & | min, | |||
Int_t & | sec | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 1054 of file TOracleStatement.cxx.
References CheckGetField, fFieldInfo, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Bool_t TOracleStatement::GetTimestamp | ( | Int_t | npar, | |
Int_t & | year, | |||
Int_t & | month, | |||
Int_t & | day, | |||
Int_t & | hour, | |||
Int_t & | min, | |||
Int_t & | sec, | |||
Int_t & | frac | |||
) | [virtual] |
Reimplemented from TSQLStatement.
Definition at line 1086 of file TOracleStatement.cxx.
References CheckGetField, fFieldInfo, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1122 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1137 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1153 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1174 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1195 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
Reimplemented from TSQLStatement.
Definition at line 1216 of file TOracleStatement.cxx.
References CheckGetField, fResult, kFALSE, kTRUE, and TSQLStatement::SetError().
TOracleStatement::ClassDef | ( | TOracleStatement | , | |
0 | ||||
) |
Environment* TOracleStatement::fEnv [protected] |
Connection* TOracleStatement::fConn [protected] |
Statement* TOracleStatement::fStmt [protected] |
Definition at line 45 of file TOracleStatement.h.
Referenced by Close(), GetNumAffectedRows(), NextIteration(), Process(), SetBinary(), SetDate(), SetDatime(), SetDouble(), SetInt(), SetLong(), SetLong64(), SetMaxFieldSize(), SetNull(), SetString(), SetTime(), SetTimestamp(), SetUInt(), SetULong64(), SetVDouble(), SetVInt(), SetVLong(), SetVLong64(), SetVUInt(), SetVULong64(), and StoreResult().
ResultSet* TOracleStatement::fResult [protected] |
Definition at line 46 of file TOracleStatement.h.
Referenced by Close(), GetBinary(), GetDatime(), GetDouble(), GetInt(), GetLong(), GetLong64(), GetString(), GetTimestamp(), GetUInt(), GetULong64(), GetVDouble(), GetVInt(), GetVLong(), GetVLong64(), GetVUInt(), GetVULong64(), IsNull(), IsResultSet(), NextResultRow(), SetMaxFieldSize(), and StoreResult().
std::vector<MetaData>* TOracleStatement::fFieldInfo [protected] |
Definition at line 47 of file TOracleStatement.h.
Referenced by Close(), GetDatime(), GetTimestamp(), and StoreResult().
TBufferRec* TOracleStatement::fBuffer [protected] |
Definition at line 48 of file TOracleStatement.h.
Referenced by CloseBuffer(), GetBinary(), GetFieldName(), GetString(), NextResultRow(), and SetBufferSize().
Int_t TOracleStatement::fBufferSize [protected] |
Definition at line 49 of file TOracleStatement.h.
Referenced by CloseBuffer(), GetFieldName(), GetNumFields(), NextResultRow(), and SetBufferSize().
Int_t TOracleStatement::fNumIterations [protected] |
Definition at line 50 of file TOracleStatement.h.
Referenced by GetBufferLength(), and NextIteration().
Int_t TOracleStatement::fIterCounter [protected] |
Definition at line 51 of file TOracleStatement.h.
Referenced by Close(), NextIteration(), SetBinary(), and SetString().
Int_t TOracleStatement::fWorkingMode [protected] |
Definition at line 52 of file TOracleStatement.h.
Referenced by IsParSettMode(), IsResultSet(), NextIteration(), NextResultRow(), Process(), and StoreResult().
TString TOracleStatement::fTimeFmt [protected] |
Definition at line 53 of file TOracleStatement.h.
Referenced by GetString(), and SetTimeFormating().