CMS 3D CMS Logo

Macros
ODCCSConfig.cc File Reference
#include <stdexcept>
#include <string>
#include <cstring>
#include <cstdlib>
#include "OnlineDB/Oracle/interface/Oracle.h"
#include "OnlineDB/EcalCondDB/interface/ODCCSConfig.h"
#include <limits>

Go to the source code of this file.

Macros

#define MY_NULL   16777215
 
#define SET_INT(statement, paramNum, paramVal)
 
#define SET_STRING(statement, paramNum, paramVal)
 

Macro Definition Documentation

◆ MY_NULL

#define MY_NULL   16777215

Definition at line 12 of file ODCCSConfig.cc.

Referenced by ODCCSConfig::clear().

◆ SET_INT

#define SET_INT (   statement,
  paramNum,
  paramVal 
)
Value:
if (paramVal != MY_NULL) { \
statement->setInt(paramNum, paramVal); \
} else { \
statement->setNull(paramNum, OCCINUMBER); \
}
#define MY_NULL
Definition: ODCCSConfig.cc:12

Definition at line 13 of file ODCCSConfig.cc.

Referenced by ODCCSConfig::writeDB().

◆ SET_STRING

#define SET_STRING (   statement,
  paramNum,
  paramVal 
)
Value:
if (!paramVal.empty()) { \
statement->setString(paramNum, paramVal); \
} else { \
statement->setNull(paramNum, OCCICHAR); \
}

Definition at line 19 of file ODCCSConfig.cc.

Referenced by ODCCSConfig::writeDB().