Harlinn.Windows 0.1
|
Provides access to the column values within each row. More...
#include <HOCI.h>
Public Types | |
using | Base = DataReaderBase<DataReader, OCI::Define> |
![]() | |
using | DefineType |
using | DerivedType |
Public Member Functions | |
DataReader (const OCI::Statement &statement) noexcept | |
template<typename DT , typename ... ArgTypes> requires std::is_base_of_v<OCI::Define, DefineType> | |
DT * | Define (UInt32 position, ArgTypes &&... args) |
template<typename DefineType , typename ... ArgTypes> requires Internal::HasTraits<DefineType> | |
Internal::Traits< DefineType >::DefineType * | Define (UInt32 position, ArgTypes... args) |
bool | IsDBNull (UInt32 index) const |
Return whether the specified field is set to null. | |
bool | GetBoolean (UInt32 i) const |
Gets the value of the specified column as a bool. | |
Byte | GetByte (UInt32 i) const |
Gets the value of the specified column as a Byte. | |
SByte | GetSByte (UInt32 i) const |
Gets the value of the specified column as a SByte. | |
Int16 | GetInt16 (UInt32 i) const |
Gets the value of the specified column as a Int16. | |
UInt16 | GetUInt16 (UInt32 i) const |
Gets the value of the specified column as a UInt16. | |
Int32 | GetInt32 (UInt32 i) const |
Gets the value of the specified column as a Int32. | |
UInt32 | GetUInt32 (UInt32 i) const |
Gets the value of the specified column as a UInt32. | |
Int64 | GetInt64 (UInt32 i) const |
Gets the value of the specified column as a Int64. | |
UInt64 | GetUInt64 (UInt32 i) const |
Gets the value of the specified column as a UInt64. | |
float | GetSingle (UInt32 i) const |
Gets the value of the specified column as a float. | |
double | GetDouble (UInt32 i) const |
Gets the value of the specified column as a double. | |
DateTime | GetDateTime (UInt32 i) const |
Gets the value of the specified column as a DateTime. | |
TimeSpan | GetTimeSpan (UInt32 i) const |
Gets the value of the specified column as a TimeSpan. | |
Guid | GetGuid (UInt32 i) const |
Gets the value of the specified column as a Guid. | |
WideString | GetString (UInt32 i) const |
Gets the value of the specified column as a WideString. | |
OCI::Object * | GetObject (UInt32 i) const |
OCI::Collection * | GetCollection (UInt32 i) const |
LobStream | GetStream (UInt32 i) const |
![]() | |
size_t | CurrentRowIndex () const noexcept |
size_t | RowsFetched () const noexcept |
DefineType * | GetDefine (UInt32 index) const noexcept |
bool | Read () |
T | As (UInt32 i) const |
bool | As (UInt32 index) const |
std::optional< bool > | As (UInt32 index) const |
SByte | As (UInt32 index) const |
std::optional< SByte > | As (UInt32 index) const |
Byte | As (UInt32 index) const |
std::optional< Byte > | As (UInt32 index) const |
Int16 | As (UInt32 index) const |
std::optional< Int16 > | As (UInt32 index) const |
UInt16 | As (UInt32 index) const |
std::optional< UInt16 > | As (UInt32 index) const |
Int32 | As (UInt32 index) const |
std::optional< Int32 > | As (UInt32 index) const |
UInt32 | As (UInt32 index) const |
std::optional< UInt32 > | As (UInt32 index) const |
Int64 | As (UInt32 index) const |
std::optional< Int64 > | As (UInt32 index) const |
UInt64 | As (UInt32 index) const |
std::optional< UInt64 > | As (UInt32 index) const |
Single | As (UInt32 index) const |
std::optional< Single > | As (UInt32 index) const |
Double | As (UInt32 index) const |
std::optional< Double > | As (UInt32 index) const |
DateTime | As (UInt32 index) const |
std::optional< DateTime > | As (UInt32 index) const |
TimeSpan | As (UInt32 index) const |
std::optional< TimeSpan > | As (UInt32 index) const |
Guid | As (UInt32 index) const |
std::optional< Guid > | As (UInt32 index) const |
WideString | As (UInt32 index) const |
std::optional< WideString > | As (UInt32 index) const |
Protected Member Functions | |
virtual HO_EXPORT void | InitializeDefines () |
void | Fetch () |
void | Prefetch (Int32 executeResult) |
![]() | |
DataReaderBase (const OCI::Statement &statement) noexcept | |
const OCI::Statement & | Statement () const noexcept |
const OCI::ServiceContext & | ServiceContext () const noexcept |
const OCI::ErrorHandle & | Error () const noexcept |
const OCI::Environment & | Environment () const |
Friends | |
class | Statement |
template<typename DerivedT , typename DefineT > | |
class | DataReaderBase |
Additional Inherited Members | |
![]() | |
const OCI::Statement * | statement_ |
std::vector< std::unique_ptr< DefineType > > | defines_ |
size_t | currentRowIndex_ |
size_t | rowsFetched_ |
bool | noMoreData_ |
Provides access to the column values within each row.
|
inlinenoexcept |
|
inline |
|
inline |
|
inlineprotected |
|
inlinenodiscard |
Gets the value of the specified column as a bool.
index | The index of the field to find. |
Gets the value of the specified column as a Byte.
index | The index of the field to find. |
|
inlinenodiscard |
Gets the value of the specified column as a DateTime.
index | The index of the field to find. |
|
inlinenodiscard |
Gets the value of the specified column as a double.
index | The index of the field to find. |
Gets the value of the specified column as a Guid.
index | The index of the field to find. |
Gets the value of the specified column as a Int16.
index | The index of the field to find. |
Gets the value of the specified column as a Int32.
index | The index of the field to find. |
Gets the value of the specified column as a Int64.
index | The index of the field to find. |
|
inlinenodiscard |
Gets the value of the specified column as a SByte.
index | The index of the field to find. |
|
inlinenodiscard |
Gets the value of the specified column as a float.
index | The index of the field to find. |
|
inlinenodiscard |
Gets the value of the specified column as a WideString.
index | The index of the field to find. |
Gets the value of the specified column as a TimeSpan.
index | The index of the field to find. |
Gets the value of the specified column as a UInt16.
index | The index of the field to find. |
Gets the value of the specified column as a UInt32.
index | The index of the field to find. |
Gets the value of the specified column as a UInt64.
index | The index of the field to find. |
|
protectedvirtual |
Reimplemented in Harlinn::OCI::Internal::ScalarDataReader< T >.
|
inlinenodiscard |
Return whether the specified field is set to null.
index | The index of the field to find. |
|
inlineprotected |
|
friend |
|
friend |