15#ifndef RDBACCESSSVC_RDBRECORD_H
16#define RDBACCESSSVC_RDBRECORD_H
18#include "CoralBase/AttributeList.h"
49 bool isFieldNull(
const std::string& fieldName)
const override;
54 int getInt(
const std::string& fieldName)
const override;
59 long getLong(
const std::string& fieldName)
const override;
64 double getDouble(
const std::string& fieldName)
const override;
69 float getFloat(
const std::string& fieldName)
const override;
74 virtual const std::string&
getString(
const std::string& fieldName)
const override;
83 int getInt(
const std::string& fieldName,
unsigned int index)
const override;
89 long getLong(
const std::string& fieldName,
unsigned int index)
const override;
95 double getDouble(
const std::string& fieldName,
unsigned int index)
const override;
101 float getFloat(
const std::string& fieldName,
unsigned int index)
const override;
107 virtual const std::string&
getString(
const std::string& fieldName,
unsigned int index)
const override;
120 RDBRecord(
const coral::AttributeList& attList,
const std::string& tableName);
137 x.toOutputStream(os);
Definition of the abstract IRDBRecord interface.
std::ostream & operator<<(std::ostream &os, const RDBRecord &x)
Define macros for attributes used to control the static checker.
IRDBRecord is one record in the IRDBRecordset object.
RDBRecord is one record in the RDBRecordset object.
bool isFieldNull(const std::string &fieldName) const override
Check if the field value is NULL.
bool operator!=(const RDBRecord &rhs) const
RDBRecord(const RDBRecord &)=delete
RDBRecord & operator=(const RDBRecord &)=delete
std::ostream & toOutputStream(std::ostream &os) const
friend class RDBRecordset
RDBRecord()
Empty private constructor.
virtual const std::string & getString(const std::string &fieldName) const override
Get string field value.
~RDBRecord() override
Destructor.
coral::AttributeList *m_values ATLAS_THREAD_SAFE
std::map< std::string, unsigned int, std::less< std::string > > FieldName2ListIndex
double getDouble(const std::string &fieldName) const override
Get double field value.
long getLong(const std::string &fieldName) const override
Get long field value.
float getFloat(const std::string &fieldName) const override
Get float field value.
int getInt(const std::string &fieldName) const override
Get int field value.
FieldName2ListIndex m_name2Index