Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::OCI::SimpleDefine< BT, externalType > Class Template Reference

SimpleDefine, template used to implement defines for basic data types for the DataReader. More...

#include <HOCI.h>

Inheritance diagram for Harlinn::OCI::SimpleDefine< BT, externalType >:
[legend]
Collaboration diagram for Harlinn::OCI::SimpleDefine< BT, externalType >:
[legend]

Public Types

using BoundType = BT
 

Public Member Functions

constexpr SimpleDefine () noexcept
 
 SimpleDefine (const OCI::Statement &statement)
 
virtual void Initialize (UInt32 positon) override
 
virtual const void * Data () const noexcept final override
 
virtual bool AsBoolean () const final override
 
virtual Byte AsByte () const final override
 
virtual SByte AsSByte () const final override
 
virtual std::vector< ByteAsBytes () const final override
 
virtual Int16 AsInt16 () const final override
 
virtual UInt16 AsUInt16 () const final override
 
virtual Int32 AsInt32 () const final override
 
virtual UInt32 AsUInt32 () const final override
 
virtual Int64 AsInt64 () const final override
 
virtual UInt64 AsUInt64 () const final override
 
virtual float AsSingle () const final override
 
virtual double AsDouble () const final override
 
virtual DateTime AsDateTime () const final override
 
virtual TimeSpan AsTimeSpan () const final override
 
virtual WideString AsString () const final override
 
- Public Member Functions inherited from Harlinn::OCI::Define
constexpr Int16 Indicator () const noexcept
 
virtual HO_EXPORT Guid AsGuid () const
 
virtual HO_EXPORT OCI::ObjectAsObject () const
 
virtual HO_EXPORT OCI::CollectionAsCollection () const
 
virtual HO_EXPORT LobStream AsStream () const
 
- Public Member Functions inherited from Harlinn::OCI::DefineBase
HO_EXPORT void DefineByPos (UInt32 positon, OraType dataType, void *dataAddress, Int64 dataSize, Int16 *indicators, UInt32 *returnLengths=nullptr, UInt16 *returnCodes=nullptr, UInt32 mode=0)
 
const OCI::StatementStatement () const noexcept
 
const OCI::ErrorHandleError () const noexcept final override
 Provides access to the OCIError that will be used for OCI calls for this object.
 
const OCI::ServiceContextServiceContext () const
 
const OCI::EnvironmentEnvironment () const
 
HO_EXPORT void SetLOBPrefetchSize (UInt32 lobPrefetchSize)
 
HO_EXPORT UInt32 LOBPrefetchSize () const
 
HO_EXPORT void SetLOBPrefetchLength (bool value=true)
 
HO_EXPORT bool LOBPrefetchLength () const
 
- Public Member Functions inherited from Harlinn::OCI::HandleBase
constexpr void * Handle () const noexcept
 Provides access to the value of the handle object.
 
constexpr operator bool () const noexcept
 Test if the handle value is assigned.
 
constexpr bool IsValid () const noexcept
 Test if the handle value is assigned.
 
constexpr OCI::HandleType HandleType () const noexcept
 Returns a value identifying the type of the wrapped handle object.
 

Static Public Attributes

static constexpr OCI::OraType ExternalType = externalType
 

Protected Attributes

BoundType data_
 
- Protected Attributes inherited from Harlinn::OCI::Define
Int16 indicator_
 

Private Types

using Base = Define
 

Additional Inherited Members

- Static Public Member Functions inherited from Harlinn::OCI::Define
static HO_EXPORT std::unique_ptr< DefineCreateDefine (const OCI::Statement &statement, const ColumnDescriptor &columnDescriptor, UInt32 positon)
 
- Protected Member Functions inherited from Harlinn::OCI::Define
constexpr Define () noexcept
 
 Define (const OCI::Statement &statement)
 
void DefineByPos (UInt32 positon, OraType dataType, void *dataAddress, Int64 dataSize, Int16 *indicators, UInt32 *returnLengths=nullptr, UInt16 *returnCodes=nullptr, UInt32 mode=0)
 
HO_EXPORT void DefineByPos (UInt32 positon, OraType dataType, void *dataAddress, Int64 dataSize, UInt32 *rowLengths=nullptr, UInt16 *rowReturnCodes=nullptr, UInt32 mode=0)
 
- Protected Member Functions inherited from Harlinn::OCI::DefineBase
 DefineBase (const OCI::Statement &statement)
 
constexpr DefineBase () noexcept
 
- Protected Member Functions inherited from Harlinn::OCI::HandleBase
constexpr HandleBase () noexcept
 Default constructor.
 
constexpr HandleBase (OCI::HandleType handleType, void *handle, bool ownsHandle) noexcept
 Constructs a new HandleBase object.
 
 HandleBase (const HandleBase &other)=delete
 
constexpr HandleBase (HandleBase &&other) noexcept
 Move constructor.
 
virtual ~HandleBase ()
 Destructor.
 
constexpr void SetHandle (void *newHandleValue, bool ownsHandle) noexcept
 Assigns the handle value and ownership to this object.
 
constexpr bool OwnsHandle () const noexcept
 Returns true if this object is the owner of the handle value.
 
void * DetachHandle ()
 If this object is the owner of a handle this function rescinds that ownership, and returns the handle value without closing the handle.
 
void DestroyHandle ()
 Destroys the handle if it is owned by this object.
 
HandleBaseoperator= (const HandleBase &other)=delete
 
constexpr HandleBaseoperator= (HandleBase &&other) noexcept
 
constexpr void swap (HandleBase &other) noexcept
 
template<typename Derived >
constexpr void Take (Derived &&derived) noexcept
 Template function used to implement move assignement in derived classes.
 
void InitializeHandle (void *handle, bool ownsHandle)
 Provides a "safe" mechanism for assigning a handle value. This functions throws if a handle value is already assigned to this object.
 
HO_EXPORT Int32 GetAttribute (void *buffer, UInt32 *size, Attribute attribute) const
 Gets the value of an attribute from the handle.
 
HO_EXPORT Int32 SetAttribute (void *buffer, UInt32 size, Attribute attribute) const
 Sets the value of an attribute on the handle.
 
DateTime GetDateTimeAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a DateTime.
 
void SetDateTimeAttribute (Attribute attribute, const DateTime &value) const
 Sets the value of an attribute on the handle as a DateTime.
 
template<WideStringLike StringT = WideString>
StringT GetStringAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a WideString.
 
template<WideStringLike StringT = WideString>
StringT GetStringAttributeFromByteString (Attribute attribute) const
 Gets the value of an attribute from the handle as a WideString For use with attributes that are not returned as UTF-16.
 
template<WideStringLike StringT>
void SetStringAttribute (Attribute attribute, const StringT &value) const
 Sets the value of an attribute on the handle as a WideString.
 
void SetStringAttribute (Attribute attribute, const wchar_t *value, size_t valueLength) const
 
bool GetBooleanAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a bool.
 
void SetBooleanAttribute (Attribute attribute, bool value) const
 Sets the value of an attribute on the handle as a bool.
 
Byte GetByteAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a Byte.
 
void SetByteAttribute (Attribute attribute, Byte value) const
 Sets the value of an attribute on the handle as a Byte.
 
SByte GetSByteAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a SByte.
 
void SetSByteAttribute (Attribute attribute, SByte value) const
 Sets the value of an attribute on the handle as a Byte.
 
Int16 GetInt16Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an Int16.
 
void SetInt16Attribute (Attribute attribute, Int16 value) const
 Sets the value of an attribute on the handle as an Int16.
 
UInt16 GetUInt16Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an UInt16.
 
void SetUInt16Attribute (Attribute attribute, UInt16 value) const
 Sets the value of an attribute on the handle as an UInt16.
 
Int32 GetInt32Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an Int32.
 
void SetInt32Attribute (Attribute attribute, Int32 value) const
 Sets the value of an attribute on the handle as an Int32.
 
UInt32 GetUInt32Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an UInt32.
 
void SetUInt32Attribute (Attribute attribute, UInt32 value) const
 Sets the value of an attribute on the handle as an UInt32.
 
Int64 GetInt64Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an Int64.
 
void SetInt64Attribute (Attribute attribute, Int64 value) const
 Sets the value of an attribute on the handle as an Int64.
 
UInt64 GetUInt64Attribute (Attribute attribute) const
 Gets the value of an attribute from the handle as an UInt64.
 
void SetUInt64Attribute (Attribute attribute, UInt64 value) const
 Sets the value of an attribute on the handle as an UInt64.
 
void * GetPointerAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a pointer.
 
void SetPointerAttribute (Attribute attribute, void *value) const
 Sets the value of an attribute on the handle as a pointer.
 
OCI::NumberGetNumberAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a pointer to an OCI::Number.
 
- Static Protected Member Functions inherited from Harlinn::OCI::HandleBase
static HO_EXPORT void HandleFree (void *handle, OCI::HandleType handleType) noexcept
 Calls OCIHandleFree to release the handle.
 

Detailed Description

template<typename BT, OCI::OraType externalType>
class Harlinn::OCI::SimpleDefine< BT, externalType >

SimpleDefine, template used to implement defines for basic data types for the DataReader.

Template Parameters
BT

Member Typedef Documentation

◆ Base

template<typename BT , OCI::OraType externalType>
using Harlinn::OCI::SimpleDefine< BT, externalType >::Base = Define
private

◆ BoundType

template<typename BT , OCI::OraType externalType>
using Harlinn::OCI::SimpleDefine< BT, externalType >::BoundType = BT

Constructor & Destructor Documentation

◆ SimpleDefine() [1/2]

template<typename BT , OCI::OraType externalType>
Harlinn::OCI::SimpleDefine< BT, externalType >::SimpleDefine ( )
inlineconstexprnoexcept

◆ SimpleDefine() [2/2]

template<typename BT , OCI::OraType externalType>
Harlinn::OCI::SimpleDefine< BT, externalType >::SimpleDefine ( const OCI::Statement & statement)
inline

Member Function Documentation

◆ AsBoolean()

template<typename BT , OCI::OraType externalType>
virtual bool Harlinn::OCI::SimpleDefine< BT, externalType >::AsBoolean ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsByte()

template<typename BT , OCI::OraType externalType>
virtual Byte Harlinn::OCI::SimpleDefine< BT, externalType >::AsByte ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsBytes()

template<typename BT , OCI::OraType externalType>
virtual std::vector< Byte > Harlinn::OCI::SimpleDefine< BT, externalType >::AsBytes ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsDateTime()

template<typename BT , OCI::OraType externalType>
virtual DateTime Harlinn::OCI::SimpleDefine< BT, externalType >::AsDateTime ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsDouble()

template<typename BT , OCI::OraType externalType>
virtual double Harlinn::OCI::SimpleDefine< BT, externalType >::AsDouble ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsInt16()

template<typename BT , OCI::OraType externalType>
virtual Int16 Harlinn::OCI::SimpleDefine< BT, externalType >::AsInt16 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsInt32()

template<typename BT , OCI::OraType externalType>
virtual Int32 Harlinn::OCI::SimpleDefine< BT, externalType >::AsInt32 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsInt64()

template<typename BT , OCI::OraType externalType>
virtual Int64 Harlinn::OCI::SimpleDefine< BT, externalType >::AsInt64 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsSByte()

template<typename BT , OCI::OraType externalType>
virtual SByte Harlinn::OCI::SimpleDefine< BT, externalType >::AsSByte ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsSingle()

template<typename BT , OCI::OraType externalType>
virtual float Harlinn::OCI::SimpleDefine< BT, externalType >::AsSingle ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsString()

template<typename BT , OCI::OraType externalType>
virtual WideString Harlinn::OCI::SimpleDefine< BT, externalType >::AsString ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsTimeSpan()

template<typename BT , OCI::OraType externalType>
virtual TimeSpan Harlinn::OCI::SimpleDefine< BT, externalType >::AsTimeSpan ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsUInt16()

template<typename BT , OCI::OraType externalType>
virtual UInt16 Harlinn::OCI::SimpleDefine< BT, externalType >::AsUInt16 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsUInt32()

template<typename BT , OCI::OraType externalType>
virtual UInt32 Harlinn::OCI::SimpleDefine< BT, externalType >::AsUInt32 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ AsUInt64()

template<typename BT , OCI::OraType externalType>
virtual UInt64 Harlinn::OCI::SimpleDefine< BT, externalType >::AsUInt64 ( ) const
inlinefinaloverridevirtual

Reimplemented from Harlinn::OCI::Define.

◆ Data()

template<typename BT , OCI::OraType externalType>
virtual const void * Harlinn::OCI::SimpleDefine< BT, externalType >::Data ( ) const
inlinefinaloverridevirtualnoexcept

Implements Harlinn::OCI::Define.

◆ Initialize()

template<typename BT , OCI::OraType externalType>
virtual void Harlinn::OCI::SimpleDefine< BT, externalType >::Initialize ( UInt32 positon)
inlineoverridevirtual

Reimplemented from Harlinn::OCI::Define.

Member Data Documentation

◆ data_

template<typename BT , OCI::OraType externalType>
BoundType Harlinn::OCI::SimpleDefine< BT, externalType >::data_
protected

◆ ExternalType

template<typename BT , OCI::OraType externalType>
OCI::OraType Harlinn::OCI::SimpleDefine< BT, externalType >::ExternalType = externalType
staticconstexpr

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