23 #include "ocilibcpp/types.hpp"
41 connection.GetHandle()
47 AcquireTransient(pRef, parent);
57 Environment::GetEnvironmentHandle()
60 return TypeInfo(typeInfo, connection.GetHandle());
97 return core::MakeString(
static_cast<const otext *
>(buffer),
static_cast<int>(size));
100 return OCI_STRING_NULL;
A connection or session with a specific database.
Object identifying the SQL data type OBJECT.
Object identifying the SQL data type REF.
Reference Clone() const
Clone the current instance to a new one performing deep copy.
Reference()
Create an empty null Reference instance.
TypeInfo GetTypeInfo() const
Return the TypeInfo object describing the referenced object.
ostring ToString() const override
return a string representation of the current reference
void SetReferenceNull()
Nullify the given Ref handle.
bool IsReferenceNull() const
Check if the reference points to an object or not.
Object GetObject() const
Returns the object pointed by the reference.
Provides type information on Oracle Database objects.
Connection GetConnection() const
Return the connection associated with a statement.
Internal usage. Interface for handling ownership and relationship of a C API handle.
Internal usage. Provide a buffer class with RAII capabilities.
struct OCI_Ref OCI_Ref
Oracle REF type representation.
struct OCI_TypeInfo OCI_TypeInfo
Type info metadata handle.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefIsNull(OCI_Ref *ref)
Check if the Ref points to an object or not.
OCI_SYM_PUBLIC OCI_Object *OCI_API OCI_RefGetObject(OCI_Ref *ref)
Returns the object pointed by the Ref handle.
OCI_SYM_PUBLIC OCI_Ref *OCI_API OCI_RefCreate(OCI_Connection *con, OCI_TypeInfo *typinf)
Create a local Ref instance.
OCI_SYM_PUBLIC OCI_TypeInfo *OCI_API OCI_RefGetTypeInfo(OCI_Ref *ref)
Return the type info object associated to the Ref.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefAssign(OCI_Ref *ref, OCI_Ref *ref_src)
Assign a Ref to another one.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_RefGetHexSize(OCI_Ref *ref)
Returns the size of the hex representation of the given Ref handle.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefSetNull(OCI_Ref *ref)
Nullify the given Ref handle.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefToText(OCI_Ref *ref, unsigned int size, otext *str)
Converts a Ref handle value to a hexadecimal string.
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 )