12#ifndef ROOT_TOracleStatement
13#define ROOT_TOracleStatement
23namespace oracle {
namespace occi {
42 oracle::occi::Environment *
fEnv;
43 oracle::occi::Connection *
fConn;
62 oracle::occi::Connection* conn,
63 oracle::occi::Statement* stmt,
87 virtual Bool_t SetVInt(
Int_t npar,
const std::vector<Int_t> value,
const char* schemaName,
const char* typeName);
88 virtual Bool_t SetVUInt(
Int_t npar,
const std::vector<UInt_t> value,
const char* schemaName,
const char* typeName);
89 virtual Bool_t SetVLong(
Int_t npar,
const std::vector<Long_t> value,
const char* schemaName,
const char* typeName);
90 virtual Bool_t SetVLong64(
Int_t npar,
const std::vector<Long64_t> value,
const char* schemaName,
const char* typeName);
91 virtual Bool_t SetVULong64(
Int_t npar,
const std::vector<ULong64_t> value,
const char* schemaName,
const char* typeName);
92 virtual Bool_t SetVDouble(
Int_t npar,
const std::vector<Double_t> value,
const char* schemaName,
const char* typeName);
unsigned long long ULong64_t
#define ClassDef(name, id)
oracle::occi::Statement * fStmt
virtual Int_t GetNumFields()
Returns number of fields in result set.
virtual Bool_t SetBinary(Int_t npar, void *mem, Long_t size, Long_t maxsize=0x1000)
set parameter value as binary data
virtual Bool_t NextIteration()
Add next iteration for statement with parameters.
virtual Bool_t SetVUInt(Int_t npar, const std::vector< UInt_t > value, const char *schemaName, const char *typeName)
Set vector of unsigned integer values for parameter npar.
void SetBufferSize(Int_t size)
Set buffer size, which is used to keep string values of currently fetched column.
virtual Bool_t SetULong64(Int_t npar, ULong64_t value)
Set unsigned 64-bit integer value for parameter npar.
virtual const char * GetString(Int_t npar)
return field value as string
virtual Bool_t SetUInt(Int_t npar, UInt_t value)
Set unsigned integer value for parameter npar.
virtual Bool_t GetVInt(Int_t npar, std::vector< Int_t > &value)
return field value as vector of integers
virtual Bool_t GetVLong64(Int_t npar, std::vector< Long64_t > &value)
return field value as vector of 64-bit integers
virtual const char * GetFieldName(Int_t nfield)
Return field name in result set.
virtual void SetTimeFormating(const char *fmt)
virtual Bool_t SetTime(Int_t npar, Int_t hour, Int_t min, Int_t sec)
Set time value for parameter npar.
virtual Bool_t SetVLong64(Int_t npar, const std::vector< Long64_t > value, const char *schemaName, const char *typeName)
Set vector of 64-bit integer values for parameter npar.
virtual Long_t GetLong(Int_t npar)
return field value as long integer
virtual void Close(Option_t *="")
Close Oracle statement Removes and destroys all buffers and metainfo.
oracle::occi::Environment * fEnv
virtual Bool_t GetVLong(Int_t npar, std::vector< Long_t > &value)
return field value as vector of long integers
virtual Int_t GetBufferLength() const
virtual Bool_t GetVUInt(Int_t npar, std::vector< UInt_t > &value)
return field value as vector of unsigned integers
virtual Bool_t SetDate(Int_t npar, Int_t year, Int_t month, Int_t day)
Set date value for parameter npar.
virtual ~TOracleStatement()
Destructor of TOracleStatement clas.
virtual Double_t GetDouble(Int_t npar)
return field value as double
virtual Bool_t GetVULong64(Int_t npar, std::vector< ULong64_t > &value)
return field value as vector of unsigned 64-bit integers
virtual Bool_t SetVInt(Int_t npar, const std::vector< Int_t > value, const char *schemaName, const char *typeName)
Set vector of integer values for parameter npar.
virtual Bool_t SetString(Int_t npar, const char *value, Int_t maxsize=256)
Set string value for parameter npar.
virtual Bool_t SetVULong64(Int_t npar, const std::vector< ULong64_t > value, const char *schemaName, const char *typeName)
Set vector of unsigned 64-bit integer values for parameter npar.
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)
Set date & time value for parameter npar.
virtual Bool_t SetInt(Int_t npar, Int_t value)
Set integer value for parameter npar.
void CloseBuffer()
Destroy buffers, used in data fetching.
virtual Int_t GetInt(Int_t npar)
return field value as integer
virtual Bool_t SetMaxFieldSize(Int_t nfield, Long_t maxsize)
Defines maximum size for field which must be used for read or write operation Some Oracle types as LO...
virtual Bool_t SetVLong(Int_t npar, const std::vector< Long_t > value, const char *schemaName, const char *typeName)
Set vector of long integer values for parameter npar.
virtual Bool_t Process()
Process SQL statement.
virtual Bool_t GetBinary(Int_t npar, void *&mem, Long_t &size)
Return field value as binary array Supports LONG, BLOB, CLOB, BFILE, CFILE types of columns Reads com...
virtual Bool_t NextResultRow()
Move cursor to next row in result set.
virtual Bool_t StoreResult()
Store result of statement processing.
Bool_t IsParSettMode() const
virtual Bool_t SetDouble(Int_t npar, Double_t value)
Set double value for parameter npar.
virtual Bool_t SetLong(Int_t npar, Long_t value)
Set long integer value for parameter npar.
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)
Set date & time value for parameter npar.
TOracleStatement(oracle::occi::Environment *env, oracle::occi::Connection *conn, oracle::occi::Statement *stmt, Int_t niter, Bool_t errout=kTRUE)
Normal constructor of TOracleStatement class On creation time specifies buffer length,...
virtual UInt_t GetUInt(Int_t npar)
return field value as unsigned integer
virtual ULong64_t GetULong64(Int_t npar)
return field value as unsigned 64-bit integer
virtual Int_t GetNumParameters()
Return number of parameters in statement Not yet implemented for Oracle.
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)
return field value as date & time
virtual Int_t GetNumAffectedRows()
Return number of affected rows after statement Process() was called Make sense for queries like SELEC...
virtual Bool_t GetVDouble(Int_t npar, std::vector< Double_t > &value)
return field value as vector of doubles
oracle::occi::Connection * fConn
virtual Bool_t GetTime(Int_t npar, Int_t &hour, Int_t &min, Int_t &sec)
return field value as time
Bool_t IsResultSet() const
virtual Bool_t GetDate(Int_t npar, Int_t &year, Int_t &month, Int_t &day)
return field value as date
virtual Bool_t SetVDouble(Int_t npar, const std::vector< Double_t > value, const char *schemaName, const char *typeName)
Set vector of double values for parameter npar.
virtual Long64_t GetLong64(Int_t npar)
return field value as 64-bit integer
virtual Bool_t IsNull(Int_t)
Checks if fieled value in result set is NULL.
virtual Bool_t SetLong64(Int_t npar, Long64_t value)
Set 64-bit integer value for parameter npar.
virtual Bool_t SetNull(Int_t npar)
Set NULL as value of parameter npar.
oracle::occi::ResultSet * fResult
std::vector< oracle::occi::MetaData > * fFieldInfo
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)
return field value as date & time
virtual Bool_t SetTimestamp(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t=0)
Set parameter as timestamp.
virtual Bool_t GetTimestamp(Int_t, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &)
Get parameter as timestamp.