OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Provides type information on Oracle Database objects. More...
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_TypeInfo * >.
Public Types | |
enum | TypeInfoTypeValues { Table = OCI_TIF_TABLE , View = OCI_TIF_VIEW , Type = OCI_TIF_TYPE } |
Type of object information enumerated values. More... | |
typedef core::Enum< TypeInfoTypeValues > | TypeInfoType |
Type of object information. | |
Public Member Functions | |
TypeInfo (const Connection &connection, const ostring &name, TypeInfoType type) | |
Parametrized constructor. | |
TypeInfoType | GetType () const |
Return the type of the given TypeInfo object. | |
ostring | GetName () const |
Return the type info name. | |
Connection | GetConnection () const |
Return the connection associated with a statement. | |
unsigned int | GetColumnCount () const |
Return the number of columns contained in the type. | |
Column | GetColumn (unsigned int index) const |
Return the column from its index in the resultset. | |
boolean | IsFinalType () const |
Indicate if the given UDT type is final. | |
TypeInfo | GetSuperType () const |
Return the super type of the given type (e.g. parent type for a derived ORACLE UDT type) | |
Provides type information on Oracle Database objects.
This class wraps the OCILIB object handle OCI_TypeInfo and its related methods
Type of object information.
Possible values are TypeInfo::TypeInfoTypeValues
|
inline |
Parametrized constructor.
connection | - Parent connection |
name | - Type name |
type | - Kind of type to retrieve |
Definition at line 28 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGet().
|
inline |
Return the type of the given TypeInfo object.
Definition at line 42 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetType().
|
inline |
Return the type info name.
Definition at line 47 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetName().
|
inline |
Return the connection associated with a statement.
Definition at line 52 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetConnection().
Referenced by ocilib::Collection< T >::Collection(), ocilib::Dequeue::Dequeue(), ocilib::DirectPath::DirectPath(), ocilib::Enqueue::Enqueue(), ocilib::Object::GetReference(), GetSuperType(), ocilib::Message::Message(), ocilib::Object::Object(), and ocilib::Reference::Reference().
|
inline |
Return the number of columns contained in the type.
Definition at line 61 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetColumnCount().
|
inline |
Return the column from its index in the resultset.
index | - Column index |
Definition at line 66 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetColumn().
|
inline |
Indicate if the given UDT type is final.
Definition at line 71 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoIsFinalType().
|
inline |
Return the super type of the given type (e.g. parent type for a derived ORACLE UDT type)
Definition at line 76 of file TypeInfo.hpp.
References ocilib::core::Check(), GetConnection(), and OCI_TypeInfoGetSuperType().