ledger-core
Public Member Functions | List of all members
ledger::core::api::DatabaseResultRow Class Referenceabstract

#include <DatabaseResultRow.hpp>

+ Inheritance diagram for ledger::core::api::DatabaseResultRow:

Public Member Functions

virtual bool isNullAtPos (int32_t pos)=0
 
virtual std::string getColumnName (int32_t pos)=0
 
virtual int16_t getShortByPos (int32_t pos)=0
 
virtual int32_t getIntByPos (int32_t pos)=0
 
virtual float getFloatByPos (int32_t pos)=0
 
virtual double getDoubleByPos (int32_t pos)=0
 
virtual int64_t getLongByPos (int32_t pos)=0
 
virtual std::string getStringByPos (int32_t pos)=0
 
virtual std::shared_ptr< DatabaseBlobgetBlobByPos (int32_t pos)=0
 

Detailed Description

A table of data representing a database query result, which is usually generated by executing a statement that queries the database. DatabaseResultRow instances are not expected to live once DatabaseResultSet::next has been called on its parent result set.

Member Function Documentation

◆ getBlobByPos()

virtual std::shared_ptr<DatabaseBlob> ledger::core::api::DatabaseResultRow::getBlobByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getColumnName()

virtual std::string ledger::core::api::DatabaseResultRow::getColumnName ( int32_t  pos)
pure virtual

Get the column name at the given position.

Returns
the column name.

Implemented in ResultRow.

◆ getDoubleByPos()

virtual double ledger::core::api::DatabaseResultRow::getDoubleByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getFloatByPos()

virtual float ledger::core::api::DatabaseResultRow::getFloatByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getIntByPos()

virtual int32_t ledger::core::api::DatabaseResultRow::getIntByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getLongByPos()

virtual int64_t ledger::core::api::DatabaseResultRow::getLongByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getShortByPos()

virtual int16_t ledger::core::api::DatabaseResultRow::getShortByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ getStringByPos()

virtual std::string ledger::core::api::DatabaseResultRow::getStringByPos ( int32_t  pos)
pure virtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implemented in ResultRow.

◆ isNullAtPos()

virtual bool ledger::core::api::DatabaseResultRow::isNullAtPos ( int32_t  pos)
pure virtual

Check if the value is NULL at the given position.

Returns
true if the value is NULL, false otherwise.

Implemented in ResultRow.


The documentation for this class was generated from the following file: