![]() |
OCILIB (C and C++ Driver for Oracle)
4.7.3
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. More... | |
Public Member Functions | |
TypeInfo (const Connection &connection, const ostring &name, TypeInfoType type) | |
Parametrized constructor. More... | |
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. More... | |
Column | GetColumn (unsigned int index) const |
Return the column from its index in the resultset. More... | |
boolean | IsFinalType () const |
Indicate if the given UDT type is final. More... | |
TypeInfo | GetSuperType () const |
Return the super type of the given type (e.g. parent type for a derived ORACLE UDT type) More... | |
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().
Referenced by GetSuperType().
|
inline |
Return the number of columns contained in the type.
Definition at line 53 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 58 of file TypeInfo.hpp.
References ocilib::core::Check(), and OCI_TypeInfoGetColumn().
|
inline |
Indicate if the given UDT type is final.
Definition at line 63 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 68 of file TypeInfo.hpp.
References ocilib::core::Check(), OCI_TypeInfoGetSuperType(), and TypeInfo().