Harlinn.Windows 0.1
|
Provides access to the column values within each row. More...
#include <HOCI.h>
Public Types | |
using | Base = DataReaderBase<ArrayDataReader, OCI::ArrayDefine> |
![]() | |
using | DefineType |
using | DerivedType |
Public Member Functions | |
ArrayDataReader (const OCI::Statement &statement, size_t rowCount) | |
template<typename DefineType , typename ... ArgTypes> requires std::is_base_of_v<ArrayDefine, DefineType> | |
DefineType * | Define (UInt32 position, ArgTypes... args) |
template<typename DefineType , typename ... ArgTypes> requires Internal::HasTraits<DefineType> | |
Internal::Traits< DefineType >::ArrayDefineType * | Define (UInt32 position, ArgTypes... args) |
bool | IsDBNull (UInt32 index) const |
Return whether the specified field is set to null. | |
const void * | GetData (UInt32 index) const noexcept |
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 an Int16. | |
UInt16 | GetUInt16 (UInt32 i) const |
Gets the value of the specified column as an UInt16. | |
Int32 | GetInt32 (UInt32 i) const |
Gets the value of the specified column as an Int32. | |
UInt32 | GetUInt32 (UInt32 i) const |
Gets the value of the specified column as an UInt32. | |
Int64 | GetInt64 (UInt32 i) const |
Gets the value of the specified column as an Int64. | |
UInt64 | GetUInt64 (UInt32 i) const |
Gets the value of the specified column as an 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 std::wsrting. | |
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 | |
void | Fetch () |
void | Prefetch (Int32 executeResult) |
virtual HO_EXPORT void | InitializeDefines () |
![]() | |
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 |
Private Attributes | |
size_t | rowCount_ |
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.
Internally ArrayDataReader retrieves multiple rows from the database on each fetch significantly improving read performance.
|
inline |
|
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 |
|
inlinenoexcept |
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 an Int16.
index | The index of the field to find. |
Gets the value of the specified column as an Int32.
index | The index of the field to find. |
Gets the value of the specified column as an 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 std::wsrting.
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 an UInt16.
index | The index of the field to find. |
Gets the value of the specified column as an UInt32.
index | The index of the field to find. |
Gets the value of the specified column as an UInt64.
index | The index of the field to find. |
|
protectedvirtual |
|
inlinenodiscard |
Return whether the specified field is set to null.
index | The index of the field to find. |
|
inlineprotected |
|
friend |
|
friend |
|
private |