267 Error(method,
"Code: %d Msg: %s", code, (msg ? msg :
"No message"));
310 Int_t year, month, day, hour, min, sec;
312 if (!
GetDatime(npar, year, month, day, hour, min, sec))
316 SetError(-1,
"Date before year 1995 does not supported by TDatime type",
"GetDatime");
320 return TDatime(year, month, day, hour, min, sec);
328 Int_t year, month, day, hour, min, sec, frac;
329 if (
GetDate(npar, year, month, day))
return year;
330 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return year;
339 Int_t year, month, day, hour, min, sec, frac;
340 if (
GetDate(npar, year, month, day))
return month;
341 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return month;
350 Int_t year, month, day, hour, min, sec, frac;
351 if (
GetDate(npar, year, month, day))
return day;
352 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return day;
361 Int_t year, month, day, hour, min, sec, frac;
362 if (
GetTime(npar, hour, min, sec))
return hour;
363 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return hour;
372 Int_t year, month, day, hour, min, sec, frac;
373 if (
GetTime(npar, hour, min, sec))
return min;
374 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return min;
383 Int_t year, month, day, hour, min, sec, frac;
384 if (
GetTime(npar, hour, min, sec))
return sec;
385 if (
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
return sec;
395 Int_t year, month, day, hour, min, sec, frac;
397 if (!
GetTimestamp(npar, year, month, day, hour, min, sec, frac))
401 SetError(-1,
"Date before year 1995 does not supported by TDatime type",
"GetTimestamp");
405 return TDatime(year, month, day, hour, min, sec);
virtual Bool_t GetTime(Int_t, Int_t &, Int_t &, Int_t &)
virtual Bool_t SetTime(Int_t, Int_t, Int_t, Int_t)
virtual Bool_t SetDate(Int_t, Int_t, Int_t, Int_t)
void ClearError()
reset error fields
void SetError(Int_t code, const char *msg, const char *method=0)
set new values for error fields if method specified, displays error message
virtual Bool_t GetDate(Int_t, Int_t &, Int_t &, Int_t &)
virtual Bool_t SetTimestamp(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t=0)
Int_t GetHour(Int_t)
return hours value for parameter (if applicable)
virtual Bool_t SetDatime(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
Int_t GetMinute(Int_t)
return minutes value for parameter (if applicable)
Int_t GetSecond(Int_t)
return seconds value for parameter (if applicable)
Int_t GetMonth(Int_t)
return month value for parameter (if applicable)
virtual Bool_t GetDatime(Int_t, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &)
virtual const char * GetErrorMsg() const
returns error message of last operation if no errors, return 0 Each specific implementation of TSQLSt...
Int_t GetDay(Int_t)
return day value for parameter (if applicable)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Int_t GetYear(Int_t)
return year value for parameter (if applicable)
virtual Int_t GetErrorCode() const
returns error code of last operation if res==0, no error Each specific implementation of TSQLStatemen...
virtual Bool_t GetTimestamp(Int_t, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * Data() const