12 #ifndef ROOT_TODBCStatement 13 #define ROOT_TODBCStatement 19 typedef void * SQLHSTMT;
21 typedef UInt_t SQLUINTEGER;
virtual const char * GetFieldName(Int_t nfield)
return field name
SQLUINTEGER fNumRowsFetched
Int_t fBufferPreferredSize
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 const char * GetString(Int_t npar)
get parameter as string
virtual Bool_t NextResultRow()
next result row
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 parameter value as timestamp
virtual Bool_t GetDate(Int_t npar, Int_t &year, Int_t &month, Int_t &day)
return field value as date
virtual Bool_t SetInt(Int_t npar, Int_t value)
set parameter as Int_t
virtual Bool_t SetDate(Int_t npar, Int_t year, Int_t month, Int_t day)
set parameter value as date
virtual UInt_t GetUInt(Int_t npar)
get parameter as unsigned integer
SQLUINTEGER fNumParsProcessed
virtual Bool_t SetTime(Int_t npar, Int_t hour, Int_t min, Int_t sec)
set parameter value as time
virtual Bool_t SetLong(Int_t npar, Long_t value)
set parameter as Long_t
#define ClassDef(name, id)
virtual Int_t GetInt(Int_t npar)
get parameter as integer
virtual ~TODBCStatement()
destructor
Bool_t BindParam(Int_t n, Int_t type, Int_t size=1024)
Bind query parameter with buffer. Creates buffer of appropriate type.
virtual Int_t GetNumAffectedRows()
get number of affected rows
Bool_t ExtractErrors(SQLRETURN retcode, const char *method)
Extract errors, produced by last ODBC function call.
void * GetParAddr(Int_t npar, Int_t roottype=0, Int_t length=0)
Get parameter address.
virtual Double_t GetDouble(Int_t npar)
get parameter as Double_t
TODBCStatement(SQLHSTMT stmt, Int_t rowarrsize, Bool_t errout=kTRUE)
constructor
const char * ConvertToString(Int_t npar)
convert to string
virtual Bool_t SetString(Int_t npar, const char *value, Int_t maxsize=256)
set parameter as string
Bool_t BindColumn(Int_t ncol, SQLSMALLINT sqltype, SQLUINTEGER size)
Bind result column to buffer. Allocate buffer of appropriate type.
Bool_t IsParSettMode() const
long double ConvertToNumeric(Int_t npar)
convert to numeric type
virtual Bool_t Process()
process statement
ODBCBufferRec_t * fBuffer
virtual Int_t GetNumParameters()
return number of parameters
virtual Bool_t SetLong64(Int_t npar, Long64_t value)
set parameter as Long64_t
virtual ULong64_t GetULong64(Int_t npar)
get parameter as ULong64_t
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 &)
return field value as time stamp
virtual Int_t GetBufferLength() const
virtual Bool_t IsNull(Int_t)
Verifies if field value is NULL.
Bool_t IsResultSet() const
unsigned long long ULong64_t
virtual Bool_t SetNull(Int_t npar)
Set NULL as parameter value If NULL should be set for statement parameter during first iteration...
virtual Bool_t GetBinary(Int_t npar, void *&mem, Long_t &size)
return parameter as binary data
virtual Bool_t GetTime(Int_t npar, Int_t &hour, Int_t &min, Int_t &sec)
return field value as time
virtual Bool_t SetDouble(Int_t npar, Double_t value)
set parameter as Double_t
void FreeBuffers()
Free allocated buffers.
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 SetULong64(Int_t npar, ULong64_t value)
set parameter as ULong64_t
virtual Long64_t GetLong64(Int_t npar)
get parameter as Long64_t
virtual void Close(Option_t *="")
Close statement.
virtual Bool_t SetUInt(Int_t npar, UInt_t value)
set parameter as UInt_t
SQLUSMALLINT * fStatusBuffer
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 parameter value as date & time
void SetNumBuffers(Int_t isize, Int_t ilen)
set number of buffers
virtual Bool_t NextIteration()
run next iteration
virtual Int_t GetNumFields()
return number of fields
virtual Bool_t StoreResult()
Store result of statement processing.
virtual Long_t GetLong(Int_t npar)
get parameter as Long_t