23 #include "ocilibcpp/types.hpp"
28 template<
class T,
int U>
33 template<
class T,
int U>
43 template<
class T,
int U>
46 AcquireTransient(pLong, parent);
49 template<
class T,
int U>
60 template<
class T,
int U>
Long()
Create an empty null Long instance.
unsigned int Write(const T &content)
Write the given string into the long Object.
unsigned int GetLength() const
Return the buffer length.
T GetContent() const
Return the string read from a fetch sequence.
Object used for executing SQL or PL/SQL statement and returning the produced results.
Internal usage. Interface for handling ownership and relationship of a C API handle.
struct OCI_Long OCI_Long
Oracle Long data type.
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)
OCI_SYM_PUBLIC OCI_Long *OCI_API OCI_LongCreate(OCI_Statement *stmt, unsigned int type)
Create a local temporary Long instance.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongWrite(OCI_Long *lg, void *buffer, unsigned int len)
Write a buffer into a Long.
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.
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.
Raw MakeRaw(AnyPointer result, unsigned int size)
Internal usage. Constructs a C++ Raw object from the given OCILIB raw buffer.
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 )
std::vector< unsigned char > Raw
C++ counterpart of SQL RAW data type.
void * AnyPointer
Alias for the generic void pointer.