23 #include "ocilibcpp/types.hpp" 43 Acquire(pRef,
nullptr,
nullptr, parent);
85 return core::MakeString(static_cast<const otext *>(buffer), static_cast<int>(size));
88 return OCI_STRING_NULL;
Internal usage. Interface for handling ownership and relationship of a C API 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 boolean OCI_API OCI_RefFree(OCI_Ref *ref)
Free a local Ref.
Reference Clone() const
Clone the current instance to a new one performing deep copy.
A connection or session with a specific database.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so, it raises a C++ exception using the retrieved error handle.
OCI_SYM_PUBLIC OCI_Object *OCI_API OCI_RefGetObject(OCI_Ref *ref)
Returns the object pointed by the Ref handle.
OCI_SYM_PUBLIC OCI_TypeInfo *OCI_API OCI_RefGetTypeInfo(OCI_Ref *ref)
Return the type info object associated to the Ref.
ostring ToString() const override
return a string representation of the current reference
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.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefSetNull(OCI_Ref *ref)
Nullify the given Ref handle.
Object identifying the SQL data type REF.
ostring MakeString(const otext *result, int size=-1)
Internal usage. Constructs a C++ string object from the given OCILIB string pointer.
Reference()
Create an empty null Reference instance.
struct OCI_Ref OCI_Ref
Oracle REF type representation.
Internal usage. Provide a buffer class with RAII capabilities.
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 OCI_Ref *OCI_API OCI_RefCreate(OCI_Connection *con, OCI_TypeInfo *typinf)
Create a local Ref instance.
Connection GetConnection() const
Return the connection associated with a statement.
Provides type information on Oracle Database objects.
void SetReferenceNull()
Nullify the given Ref handle.
Object GetObject() const
Returns the object pointed by the reference.
TypeInfo GetTypeInfo() const
Return the TypeInfo object describing the referenced object.
bool IsReferenceNull() const
Check if the reference points to an object or not.
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 ) ...
Object identifying the SQL data type OBJECT.
OCI_SYM_PUBLIC boolean OCI_API OCI_RefAssign(OCI_Ref *ref, OCI_Ref *ref_src)
Assign a Ref to another one.