OCILIB (C and C++ Driver for Oracle)  4.1.0
ocilib::Long< TLongObjectType, TLongOracleType > Class Template Reference

Object identifying the SQL data type LONG. More...

#include <ocilib.hpp>

Inherits ocilib::HandleHolder< OCI_Long * >.

Public Member Functions

 Long ()
 Create an empty null Long instance.
 
 Long (const Statement &statement)
 Constructor. More...
 
unsigned int Write (const TLongObjectType &content)
 Write the given string into the long Object. More...
 
unsigned int GetLength () const
 Return the buffer length.
 
TLongObjectType GetContent () const
 Return the string read from a fetch sequence.
 

Detailed Description

template<class TLongObjectType, int TLongOracleType>
class ocilib::Long< TLongObjectType, TLongOracleType >

Object identifying the SQL data type LONG.

This class wraps the OCILIB object handle OCI_LONG of type OCI_CLONG and its related methods

Definition at line 4962 of file ocilib.hpp.

Constructor & Destructor Documentation

template<class TLongObjectType , int TLongOracleType>
ocilib::Long< TLongObjectType, TLongOracleType >::Long ( const Statement statement)
inline

Constructor.

Parameters
statement- statement object that will handle operations on the long buffer

Definition at line 3912 of file ocilib_impl.hpp.

References ocilib::Check(), OCI_LongCreate(), and OCI_LongFree().

Member Function Documentation

template<class TLongObjectType , int TLongOracleType>
unsigned int ocilib::Long< TLongObjectType, TLongOracleType >::Write ( const TLongObjectType &  content)
inline

Write the given string into the long Object.

Parameters
content- string to write
Returns
Number of character written

Definition at line 3924 of file ocilib_impl.hpp.

References ocilib::Check(), and OCI_LongWrite().