23 #include "ocilibcpp/types.hpp" 28 template<
class T,
int U>
33 template<
class T,
int U>
39 template<
class T,
int U>
42 Acquire(pLong,
nullptr,
nullptr, parent);
45 template<
class T,
int U>
53 return core::Check(
OCI_LongWrite(*
this, static_cast<AnyPointer>(const_cast<typename T::value_type*>(&content[0])), static_cast<unsigned int>(content.size())));
56 template<
class T,
int U>
Internal usage. Interface for handling ownership and relationship of a C API handle.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongGetSize(OCI_Long *lg)
Return the buffer size of a long object in bytes (OCI_BLONG) or character (OCI_CLONG) ...
Raw MakeRaw(AnyPointer result, unsigned int size)
Internal usage. Constructs a C++ Raw object from the given OCILIB raw buffer.
Object used for executing SQL or PL/SQL statement and returning the produced results.
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_Long *OCI_API OCI_LongCreate(OCI_Statement *stmt, unsigned int type)
Create a local temporary Long instance.
Long()
Create an empty null Long instance.
ostring MakeString(const otext *result, int size=-1)
Internal usage. Constructs a C++ string object from the given OCILIB string pointer.
T GetContent() const
Return the string read from a fetch sequence.
unsigned int GetLength() const
Return the buffer length.
OCI_SYM_PUBLIC void *OCI_API OCI_LongGetBuffer(OCI_Long *lg)
Return the internal buffer of an OCI_Long object read from a fetch sequence.
unsigned int Write(const T &content)
Write the given string into the long Object.
OCI_SYM_PUBLIC boolean OCI_API OCI_LongFree(OCI_Long *lg)
Free a local temporary long.
std::vector< unsigned char > Raw
C++ counterpart of SQL RAW data type.
struct OCI_Long OCI_Long
Oracle Long data type.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongWrite(OCI_Long *lg, void *buffer, unsigned int len)
Write a buffer into a Long.
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 ) ...