Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::OCI::ColumnDescriptor Class Reference

ColumnDescriptor. More...

#include <HOCI.h>

Inheritance diagram for Harlinn::OCI::ColumnDescriptor:
[legend]
Collaboration diagram for Harlinn::OCI::ColumnDescriptor:
[legend]

Public Member Functions

constexpr ColumnDescriptor () noexcept
 
constexpr ColumnDescriptor (const OCI::ServiceContext &serviceContext, OCIParam *handle, bool ownsHandle=true)
 
bool UsesCharacterLength () const
 Returns the type of length semantics of the column. Zero (0) means byte-length semantics and 1 means character-length semantics.
 
UInt16 CharacterLength () const
 Returns the column character length that is the number of characters allowed in the column.
 
UInt16 Length () const
 The maximum size of the column. This length is returned in bytes and not characters for strings and raws. It returns 22 for NUMBERs. (OCI_ATTR_DATA_SIZE)
 
ColumnProperties Properties () const
 Returns describe data regarding certain column properties.
 
bool IsInvisible () const
 Returns whether a column is invisible or not.
 
OraType DataType () const
 The datatype of the column. (OCI_ATTR_DATA_TYPE)
 
WideString Name () const
 the column name (OCI_ATTR_NAME)
 
Int16 Precision (bool implicitDescribe=true) const
 The precision of numeric columns. If the precision is nonzero and scale is -127, then it is a FLOAT, else it is a NUMBER(precision, scale). For the case when precision is 0, NUMBER(precision, scale) can be represented simply as NUMBER. (OCI_ATTR_PRECISION)
 
SByte Scale () const
 The scale of numeric columns. If the precision is nonzero and scale is -127, then it is a FLOAT, else it is a NUMBER(precision, scale). For the case when precision is 0, NUMBER(precision, scale) can be represented simply as NUMBER. (OCI_ATTR_SCALE)
 
bool IsNull () const
 Returns false if null values are not permitted for the column. Does not return a correct value for a CUBE or ROLLUP operation. (OCI_ATTR_IS_NULL)
 
bool Nullable () const
 
WideString TypeName () const
 Returns a string that is the type name. The returned value contains the type name if the data type is SQLT_NTY or SQLT_REF.If the data type is SQLT_NTY, the name of the named data type's type is returned. If the data type is SQLT_REF, the type name of the named data type pointed to by the REF is returned. (OCI_ATTR_TYPE_NAME)
 
WideString SchemaName () const
 Returns a string with the schema name under which the type has been created (OCI_ATTR_SCHEMA_NAME)
 
OCI::CharacterSetForm CharacterSetForm () const
 Character set form of the handle.
 
- Public Member Functions inherited from Harlinn::OCI::ParameterDescriptor
constexpr ParameterDescriptor () noexcept
 
constexpr ParameterDescriptor (const OCI::ServiceContext &serviceContext, OCIParam *handle, bool ownsHandle=true) noexcept
 
 ParameterDescriptor (const OCI::ServiceContext &serviceContext)
 
DateTime Timestamp () const
 The timestamp of the object on which the description is based.
 
- Public Member Functions inherited from Harlinn::OCI::Descriptor
constexpr Descriptor () noexcept
 
 Descriptor (const Descriptor &other)=delete
 
constexpr Descriptor (Descriptor &&other) noexcept
 
constexpr Descriptor (const OCI::ServiceContext &serviceContext, OCI::HandleType handleType, void *handle, bool ownsHandle=true) noexcept
 Constructs a new Descriptor object.
 
 Descriptor (const OCI::ServiceContext &serviceContext, OCI::HandleType handleType)
 Allocates a descriptor of the specified type and constructs a new Descriptor object.
 
HO_EXPORT ~Descriptor ()
 
Descriptoroperator= (const Descriptor &other)=delete
 
Descriptoroperator= (Descriptor &&other) noexcept
 
const OCI::ServiceContextServiceContext () const
 
const OCI::ErrorHandleError () const noexcept final override
 Provides access to the OCIError that will be used for OCI calls for this object.
 
const OCI::EnvironmentEnvironment () const
 
UInt32 Id () const
 Object or schema ID.
 
WideString Name () const
 Database name or object name in a schema.
 
WideString Schema () const
 Schema name where the object is located.
 
OCI::ParameterType ParameterType () 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.
 

Private Types

using Base = ParameterDescriptor
 

Additional Inherited Members

- Static Public Member Functions inherited from Harlinn::OCI::ParameterDescriptor
static HO_EXPORT std::unique_ptr< ParameterDescriptorCreateParameter (const OCI::ServiceContext &serviceContext, OCIParam *handle, bool ownsHandle=true)
 
- Static Public Member Functions inherited from Harlinn::OCI::Descriptor
static HO_EXPORT void * DescriptorAlloc (const OCI::ServiceContext &serviceContext, OCI::HandleType handleType)
 
static HO_EXPORT void DescriptorFree (void *handle, OCI::HandleType handleType)
 
- Protected Member Functions inherited from Harlinn::OCI::ParameterDescriptor
HO_EXPORT std::unique_ptr< ParameterDescriptorGetChildDescriptor (size_t index) const
 Retrieves the ParameterDescriptor at index.
 
HO_EXPORT std::unique_ptr< ParameterDescriptorGetChildDescriptor (void *listHandle, size_t index) const
 
- Protected Member Functions inherited from Harlinn::OCI::Descriptor
template<typename T >
constexpr void Take (T &&other) noexcept
 
WideString GetStringAttribute (DescribeAttribute attributeId) const
 
void SetStringAttribute (DescribeAttribute attribute, const WideString &value) const
 
bool GetBooleanAttribute (DescribeAttribute attribute) const
 
void SetBooleanAttribute (DescribeAttribute attribute, bool value) const
 
Byte GetByteAttribute (DescribeAttribute attribute) const
 
void SetByteAttribute (DescribeAttribute attribute, Byte value) const
 
SByte GetSByteAttribute (DescribeAttribute attribute) const
 
void SetSByteAttribute (DescribeAttribute attribute, SByte value) const
 
Int16 GetInt16Attribute (DescribeAttribute attribute) const
 
void SetInt16Attribute (DescribeAttribute attribute, Int16 value) const
 
UInt16 GetUInt16Attribute (DescribeAttribute attribute) const
 
void SetUInt16Attribute (DescribeAttribute attribute, UInt16 value) const
 
Int32 GetInt32Attribute (DescribeAttribute attribute) const
 
void SetInt32Attribute (DescribeAttribute attribute, Int32 value) const
 
UInt32 GetUInt32Attribute (DescribeAttribute attribute) const
 
void SetUInt32Attribute (DescribeAttribute attribute, UInt32 value) const
 
void * GetPointerAttribute (DescribeAttribute attribute) const
 
void SetPointerAttribute (DescribeAttribute attribute, void *value) const
 
template<WideStringLike StringT = WideString>
StringT GetStringAttribute (Attribute attribute) const
 Gets the value of an attribute from the handle as a WideString.
 
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.
 
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.
 
- 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

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ ColumnDescriptor() [1/2]

Harlinn::OCI::ColumnDescriptor::ColumnDescriptor ( )
inlineconstexprnoexcept

◆ ColumnDescriptor() [2/2]

Harlinn::OCI::ColumnDescriptor::ColumnDescriptor ( const OCI::ServiceContext & serviceContext,
OCIParam * handle,
bool ownsHandle = true )
inlineconstexpr

Member Function Documentation

◆ CharacterLength()

UInt16 Harlinn::OCI::ColumnDescriptor::CharacterLength ( ) const
inline

Returns the column character length that is the number of characters allowed in the column.

◆ CharacterSetForm()

OCI::CharacterSetForm Harlinn::OCI::ColumnDescriptor::CharacterSetForm ( ) const
inline

Character set form of the handle.

◆ DataType()

OraType Harlinn::OCI::ColumnDescriptor::DataType ( ) const
inline

The datatype of the column. (OCI_ATTR_DATA_TYPE)

◆ IsInvisible()

bool Harlinn::OCI::ColumnDescriptor::IsInvisible ( ) const
inline

Returns whether a column is invisible or not.

Returns
true if the column is invisible

◆ IsNull()

bool Harlinn::OCI::ColumnDescriptor::IsNull ( ) const
inline

Returns false if null values are not permitted for the column. Does not return a correct value for a CUBE or ROLLUP operation. (OCI_ATTR_IS_NULL)

◆ Length()

UInt16 Harlinn::OCI::ColumnDescriptor::Length ( ) const
inline

The maximum size of the column. This length is returned in bytes and not characters for strings and raws. It returns 22 for NUMBERs. (OCI_ATTR_DATA_SIZE)

◆ Name()

WideString Harlinn::OCI::ColumnDescriptor::Name ( ) const
inline

the column name (OCI_ATTR_NAME)

◆ Nullable()

bool Harlinn::OCI::ColumnDescriptor::Nullable ( ) const
inline

◆ Precision()

Int16 Harlinn::OCI::ColumnDescriptor::Precision ( bool implicitDescribe = true) const
inline

The precision of numeric columns. If the precision is nonzero and scale is -127, then it is a FLOAT, else it is a NUMBER(precision, scale). For the case when precision is 0, NUMBER(precision, scale) can be represented simply as NUMBER. (OCI_ATTR_PRECISION)

◆ Properties()

ColumnProperties Harlinn::OCI::ColumnDescriptor::Properties ( ) const
inline

Returns describe data regarding certain column properties.

Returns
The ColumnProperties for the column

◆ Scale()

SByte Harlinn::OCI::ColumnDescriptor::Scale ( ) const
inline

The scale of numeric columns. If the precision is nonzero and scale is -127, then it is a FLOAT, else it is a NUMBER(precision, scale). For the case when precision is 0, NUMBER(precision, scale) can be represented simply as NUMBER. (OCI_ATTR_SCALE)

◆ SchemaName()

WideString Harlinn::OCI::ColumnDescriptor::SchemaName ( ) const
inline

Returns a string with the schema name under which the type has been created (OCI_ATTR_SCHEMA_NAME)

◆ TypeName()

WideString Harlinn::OCI::ColumnDescriptor::TypeName ( ) const
inline

Returns a string that is the type name. The returned value contains the type name if the data type is SQLT_NTY or SQLT_REF.If the data type is SQLT_NTY, the name of the named data type's type is returned. If the data type is SQLT_REF, the type name of the named data type pointed to by the REF is returned. (OCI_ATTR_TYPE_NAME)

◆ UsesCharacterLength()

bool Harlinn::OCI::ColumnDescriptor::UsesCharacterLength ( ) const
inline

Returns the type of length semantics of the column. Zero (0) means byte-length semantics and 1 means character-length semantics.


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