| 
    OCILIB (C and C++ Driver for Oracle)
    4.6.3
    
   | 
 
Long Objects encapsulate Oracle LONGs data types and were used to store large buffers in Oracle database.
They're still supported but are depreciated. Oracle now provides a newer and better way to deal with data that needs large storage : LOBs
OCILIB supports this data type because it was and still is widely used
OCILIB provides a set of API for manipulating LONGs that is really close to the one provided for LOBs.
OCILIB currently supports 3 types of Long Objects:
OCI_Lob objects can be :
Functions | |
| OCI_EXPORT OCI_Long *OCI_API | OCI_LongCreate (OCI_Statement *stmt, unsigned int type) | 
| Create a local temporary Long instance.  More... | |
| OCI_EXPORT boolean OCI_API | OCI_LongFree (OCI_Long *lg) | 
| Free a local temporary long.  More... | |
| OCI_EXPORT unsigned int OCI_API | OCI_LongGetType (OCI_Long *lg) | 
| Return the type of the given Long object.  More... | |
| OCI_EXPORT unsigned int OCI_API | OCI_LongRead (OCI_Long *lg, void *buffer, unsigned int len) | 
| Read a portion of a long into the given buffer [Obsolete].  More... | |
| OCI_EXPORT unsigned int OCI_API | OCI_LongWrite (OCI_Long *lg, void *buffer, unsigned int len) | 
| Write a buffer into a Long.  More... | |
| OCI_EXPORT 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)  More... | |
| OCI_EXPORT void *OCI_API | OCI_LongGetBuffer (OCI_Long *lg) | 
| Return the internal buffer of an OCI_Long object read from a fetch sequence.  More... | |
| OCI_EXPORT OCI_Long* OCI_API OCI_LongCreate | ( | OCI_Statement * | stmt, | 
| unsigned int | type | ||
| ) | 
#include <ocilib.h>
Create a local temporary Long instance.
| stmt | - Statement handle | 
| type | - Long type | 
Supported lob types :
Referenced by ocilib::Long< T, U >::Long().
| OCI_EXPORT boolean OCI_API OCI_LongFree | ( | OCI_Long * | lg | ) | 
#include <ocilib.h>
Free a local temporary long.
| lg | - Long handle | 
Referenced by ocilib::Long< T, U >::Long().
| OCI_EXPORT unsigned int OCI_API OCI_LongGetType | ( | OCI_Long * | lg | ) | 
#include <ocilib.h>
Return the type of the given Long object.
| lg | - Long handle | 
| OCI_EXPORT unsigned int OCI_API OCI_LongRead | ( | OCI_Long * | lg, | 
| void * | buffer, | ||
| unsigned int | len | ||
| ) | 
#include <ocilib.h>
Read a portion of a long into the given buffer [Obsolete].
| lg | - Long handle | 
| buffer | - Pointer to a buffer | 
| len | - Length of the buffer in bytes / characters | 
| OCI_EXPORT unsigned int OCI_API OCI_LongWrite | ( | OCI_Long * | lg, | 
| void * | buffer, | ||
| unsigned int | len | ||
| ) | 
#include <ocilib.h>
Write a buffer into a Long.
| lg | - Long handle | 
| buffer | - the pointer to a buffer | 
| len | - the length of the buffer in bytes (OCI_BLONG) or character (OCI_CLONG) | 
Referenced by ocilib::Long< T, U >::Write().
| OCI_EXPORT unsigned int OCI_API OCI_LongGetSize | ( | OCI_Long * | lg | ) | 
#include <ocilib.h>
Return the buffer size of a long object in bytes (OCI_BLONG) or character (OCI_CLONG)
| lg | - Long handle | 
Referenced by ocilib::Long< T, U >::GetLength().
| OCI_EXPORT void* OCI_API OCI_LongGetBuffer | ( | OCI_Long * | lg | ) | 
#include <ocilib.h>
Return the internal buffer of an OCI_Long object read from a fetch sequence.
| lg | - Long handle | 
Referenced by ocilib::Long< T, U >::GetLength().