OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Provides SQL bind information. More...
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_Bind * >.
Public Types | |
enum | BindDirectionValues { In = OCI_BDM_IN , Out = OCI_BDM_OUT , InOut = OCI_BDM_IN_OUT } |
Bind direction enumerated values. More... | |
enum | VectorTypeValues { AsArray = 1 , AsPlSqlTable = 2 } |
Vector type values. More... | |
typedef core::Enum< BindDirectionValues > | BindDirection |
Bind direction. | |
typedef core::Enum< VectorTypeValues > | VectorType |
Vector type. | |
Public Member Functions | |
ostring | GetName () const |
Return the name of the bind object. | |
DataType | GetType () const |
Return the OCILIB type of the data associated with the bind object. | |
unsigned int | GetSubType () const |
Return the OCILIB object subtype of a column. | |
unsigned int | GetDataCount () const |
Return the number of elements associated with the bind object. | |
Statement | GetStatement () const |
Return the statement associated with the bind object. | |
void | SetDataNull (bool value, unsigned int index=1) |
Mark as null or not null the current bind real value(s) used in SQL statements. | |
bool | IsDataNull (unsigned int index=1) const |
Check if the current bind value(s) used in SQL statements is marked as NULL. | |
void | SetCharsetForm (CharsetForm value) |
Set the charset form of the given character based bind object. | |
BindDirection | GetDirection () const |
Get the direction mode. | |
Provides SQL bind information.
This class wraps the OCILIB object handle OCI_Bind and its related methods
Bind direction.
Possible values are BindInfo::BindDirectionValues
Vector type.
Possible values are BindInfo::VectorTypeValues
Bind direction enumerated values.
|
inline |
Return the name of the bind object.
Definition at line 33 of file BindInfo.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_BindGetName().
|
inline |
Return the OCILIB type of the data associated with the bind object.
Definition at line 38 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindGetType().
|
inline |
Return the OCILIB object subtype of a column.
Definition at line 43 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindGetSubtype().
|
inline |
Return the number of elements associated with the bind object.
Definition at line 48 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindGetDataCount().
|
inline |
Return the statement associated with the bind object.
Definition at line 53 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindGetStatement().
|
inline |
Mark as null or not null the current bind real value(s) used in SQL statements.
value | - null status value |
index | - Only valid for vectors : index of the element to check |
Definition at line 58 of file BindInfo.hpp.
References ocilib::core::Check(), OCI_BindSetNotNullAtPos(), and OCI_BindSetNullAtPos().
|
inline |
Check if the current bind value(s) used in SQL statements is marked as NULL.
index | - Only valid for vectors : index of the element to check |
Definition at line 70 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindIsNullAtPos().
|
inline |
Set the charset form of the given character based bind object.
value | - charset form |
Definition at line 75 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindSetCharsetForm().
|
inline |
Get the direction mode.
Definition at line 80 of file BindInfo.hpp.
References ocilib::core::Check(), and OCI_BindGetDirection().