23 #include "ocilibcpp/types.hpp"
28 inline BindInfo::BindInfo(
OCI_Bind *pBind, core::Handle *parent)
30 AcquireTransient(pBind, parent);
DataType GetType() const
Return the OCILIB type of the data associated with the bind object.
void SetCharsetForm(CharsetForm value)
Set the charset form of the given character based bind object.
unsigned int GetDataCount() const
Return the number of elements associated with the bind object.
BindDirection GetDirection() const
Get the direction mode.
unsigned int GetSubType() const
Return the OCILIB object subtype of a column.
core::Enum< BindDirectionValues > BindDirection
Bind direction.
bool IsDataNull(unsigned int index=1) const
Check if the current bind value(s) used in SQL statements is marked as NULL.
Statement GetStatement() const
Return the statement associated with the bind object.
ostring GetName() const
Return the name of 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.
Object used for executing SQL or PL/SQL statement and returning the produced results.
Template Enumeration template class providing some type safety to some extends for manipulating enume...
OCI_SYM_PUBLIC unsigned int OCI_API OCI_BindGetSubtype(OCI_Bind *bnd)
Return the OCILIB object subtype of the given bind.
OCI_SYM_PUBLIC boolean OCI_API OCI_BindIsNullAtPos(OCI_Bind *bnd, unsigned int position)
Check if the current entry value at the given index of the binded array is marked as NULL.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_BindGetDataCount(OCI_Bind *bnd)
Return the number of elements of the bind handle.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_BindGetDirection(OCI_Bind *bnd)
Get the direction mode of a bind handle.
OCI_SYM_PUBLIC boolean OCI_API OCI_BindSetNullAtPos(OCI_Bind *bnd, unsigned int position)
Set to null the entry in the bind variable input array.
OCI_SYM_PUBLIC boolean OCI_API OCI_BindSetCharsetForm(OCI_Bind *bnd, unsigned int csfrm)
Set the charset form of the given character based bind variable.
OCI_SYM_PUBLIC boolean OCI_API OCI_BindSetNotNullAtPos(OCI_Bind *bnd, unsigned int position)
Set to NOT null the entry in the bind variable input array.
OCI_SYM_PUBLIC OCI_Statement *OCI_API OCI_BindGetStatement(OCI_Bind *bnd)
Return the statement handle associated with a bind handle.
OCI_SYM_PUBLIC const otext *OCI_API OCI_BindGetName(OCI_Bind *bnd)
Return the name of the given bind.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_BindGetType(OCI_Bind *bnd)
Return the OCILIB type of the given bind.
struct OCI_Bind OCI_Bind
Internal bind representation.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so,...
ostring MakeString(const otext *result, int size=-1)
Internal usage. Constructs a C++ string object from the given OCILIB string pointer.
std::basic_string< otext, std::char_traits< otext >, std::allocator< otext > > ostring
string class wrapping the OCILIB otext * type and OTEXT() macros ( see Character sets )
core::Enum< DataTypeValues > DataType
Column data type.