fintp_udal
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OracleDatabase.cpp File Reference
#include "OracleDatabase.h"
#include "OracleParameter.h"
#include "OracleColumn.h"
#include "OracleDatabaseProvider.h"
#include "Trace.h"
#include <string>
#include <iomanip>
#include <iostream>
#include <exception>
#include <sstream>
#include "Base64.h"

Macros

#define FREE_ORA_HANDLE(ora_handle, ora_handle_name, ora_handle_type)
 
#define FREE_ORA_HANDLE_NOCHECK(ora_handle, ora_handle_name, ora_handle_type)
 
#define FREE_ORA_DESC_NOCHECK(ora_handle, ora_handle_name, ora_handle_type)
 
#define FREE_ORA_DESC(ora_handle, ora_handle_name, ora_handle_type)
 
#define TEST   if ( ! ( status == OCI_SUCCESS || status == OCI_SUCCESS_WITH_INFO ) ) throw runtime_error( getErrorInformation( m_hError, status ) );
 

Macro Definition Documentation

#define FREE_ORA_DESC (   ora_handle,
  ora_handle_name,
  ora_handle_type 
)
Value:
if ( ( ora_handle ) != NULL ) \
{\
DEBUG2( "Free " << ora_handle_name << " descriptor ..." );\
sword ora_status = OCIDescriptorFree( ( dvoid* )( ora_handle ), ( ora_handle_type ) );\
if ( ora_status != OCI_SUCCESS )\
TRACE( "Free [" << ora_handle_name << "] descriptor failed [" << getErrorInformation( m_StatementHandle, ora_status, OCI_HTYPE_STMT ) << "]" );\
ora_handle = NULL; \
}
#define FREE_ORA_DESC_NOCHECK (   ora_handle,
  ora_handle_name,
  ora_handle_type 
)
Value:
if ( ( ora_handle ) != NULL ) \
{\
DEBUG2( "Free " << ora_handle_name << " descriptor ..." );\
sword ora_status = OCIDescriptorFree( ( dvoid* )( ora_handle ), ( ora_handle_type ) );\
if ( ora_status != OCI_SUCCESS )\
TRACE( "Free [" << ora_handle_name << "] descriptor failed [" << getErrorInformation( m_StatementHandle, ora_status, OCI_HTYPE_STMT, false ) << "]" );\
ora_handle = NULL; \
}
#define FREE_ORA_HANDLE (   ora_handle,
  ora_handle_name,
  ora_handle_type 
)
Value:
if ( ( ora_handle ) != NULL ) \
{\
DEBUG2( "Free " << ora_handle_name << " handle ..." );\
sword ora_status = 0;\
try\
{\
ora_status = OCIHandleFree( ( dvoid * )( ora_handle ), ( ora_handle_type ) );\
if ( ora_status != OCI_SUCCESS )\
throw runtime_error( "free handle failed" ); \
}\
catch( ... )\
{\
TRACE( "Free [" << ora_handle_name << "] handle failed [" << getErrorInformation( m_hEnv, ora_status, OCI_HTYPE_ENV ) << "]" );\
}\
ora_handle = NULL;\
}
#define FREE_ORA_HANDLE_NOCHECK (   ora_handle,
  ora_handle_name,
  ora_handle_type 
)
Value:
if ( ( ora_handle ) != NULL ) \
{\
DEBUG2( "Free " << ora_handle_name << " handle ..." );\
sword ora_status = 0;\
try\
{\
ora_status = OCIHandleFree( ( dvoid * )( ora_handle ), ( ora_handle_type ) );\
if ( ora_status != OCI_SUCCESS )\
throw runtime_error( "free handle failed" ); \
}\
catch( ... )\
{\
TRACE( "Free [" << ora_handle_name << "] handle failed [" << getErrorInformation( m_hEnv, ora_status, OCI_HTYPE_ENV, false ) << "]" );\
}\
ora_handle = NULL;\
}
#define TEST   if ( ! ( status == OCI_SUCCESS || status == OCI_SUCCESS_WITH_INFO ) ) throw runtime_error( getErrorInformation( m_hError, status ) );