OCILIB (C and C++ Driver for Oracle)  4.7.3
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
ocilib::Long< T, U > Class Template Reference

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

#include <types.hpp>

Inherits ocilib::core::HandleHolder< OCI_Long *>.

Public Member Functions

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

Detailed Description

template<class T, int U>
class ocilib::Long< T, U >

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 202 of file config.hpp.

Constructor & Destructor Documentation

◆ Long()

template<class T , int U>
ocilib::Long< T, U >::Long ( const Statement statement)

Constructor.

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

Definition at line 34 of file Long.hpp.

References ocilib::core::Check(), ocilib::Long< T, U >::Long(), OCI_LongCreate(), and OCI_LongFree().

Member Function Documentation

◆ Write()

template<class T , int U>
unsigned int ocilib::Long< T, U >::Write ( const T &  content)

Write the given string into the long Object.

Parameters
content- string to write
Returns
Number of character written

Definition at line 46 of file Long.hpp.

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