5 #include <libutl/BitArray.h> 6 #include <libutl/DBfield.h> 7 #include <libutl/Decimal.h> 83 return (
const DBfield&)*_fields[idx];
91 return (rowIdx * _numFields);
127 time_t getDateTime(
uint_t rowIdx,
uint_t fieldIdx)
const;
134 ASSERTD(fieldIdx < _numFields);
135 uint_t valueIdx = (rowIdx * _numFields) + fieldIdx;
136 return _nullArray.get(valueIdx);
144 ASSERTD(fieldIdx < _numFields);
145 uint_t valueIdx = (rowIdx * _numFields) + fieldIdx;
146 _nullArray.set(valueIdx, 1);
const String & errorMsg() const
Get error message.
void deInit()
De-initialize UTL++.
String & errorMsg()
Get error message.
uint_t status() const
Get the status.
uint_t & status()
Get the status.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
long int64_t
Signed 64-bit integer.
Command executed successfully.
db_result_status_t
Database command status.
const DBfield & field(uint_t idx) const
Get the field at the given index.
unsigned long uint64_t
Unsigned 64-bit integer.
const BitArray & nullArray() const
Get the nullptr map.
uint_t numFields() const
Get the number of fields.
unsigned int uint_t
Unsigned integer.
uint_t rowIndex(uint_t rowIdx) const
Get a row index.
void setNull(uint_t rowIdx, uint_t fieldIdx)
Mark the given value as nullptr.
Non-fatal error during command execution.
uint64_t * values()
Get values pointer.
bool isNull(uint_t rowIdx, uint_t fieldIdx) const
Is the given value nullptr?
Field in a DBresult tuple.
const uint64_t * values() const
Get values pointer.
Fatal error during command execution.
Root of UTL++ class hierarchy.
uint_t numRows() const
Get the number of rows.
void init()
Initialize UTL++.
#define ASSERTD
Do an assertion in DEBUG mode only.