CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
MODCCSHFDat Class Reference

#include <MODCCSHFDat.h>

Inheritance diagram for MODCCSHFDat:
IDataItem IDBObject

Public Types

typedef oracle::occi::Clob Clob
 

Public Member Functions

unsigned char * getClob () const
 
std::string getFile () const
 
unsigned int getSize () const
 
std::string getTable ()
 
int getTest () const
 
 MODCCSHFDat ()
 
void setClob (unsigned char *x)
 
void setFile (std::string x)
 
void setSize (unsigned int id)
 
void setTest (int id)
 
 ~MODCCSHFDat ()
 
- Public Member Functions inherited from IDataItem
 IDataItem ()
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void fetchData (std::map< EcalLogicID, MODCCSHFDat > *fillMap, MODRunIOV *iov) throw (std::runtime_error)
 
void populateClob (Clob &clob, std::string fname, unsigned int clob_size) throw (std::runtime_error)
 
void prepareWrite () throw (std::runtime_error)
 
unsigned char * readClob (Clob &clob, int size) throw (std::runtime_error)
 
void writeArrayDB (const std::map< EcalLogicID, MODCCSHFDat > *data, MODRunIOV *iov) throw (std::runtime_error)
 
void writeDB (const EcalLogicID *ecid, const MODCCSHFDat *item, MODRunIOV *iov) throw (std::runtime_error)
 

Private Attributes

unsigned char * m_clob
 
std::string m_file
 
unsigned int m_size
 
int testing
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from IDataItem
void checkPrepare () throw (std::runtime_error)
 
void createReadStatement () throw (std::runtime_error)
 
void setPrefetchRowCount (int ncount) throw (std::runtime_error)
 
void terminateReadStatement () throw (std::runtime_error)
 
void terminateWriteStatement () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from IDataItem
oracle::occi::Statement * m_readStmt
 
oracle::occi::Statement * m_writeStmt
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 19 of file MODCCSHFDat.h.

Member Typedef Documentation

typedef oracle::occi::Clob MODCCSHFDat::Clob

Definition at line 21 of file MODCCSHFDat.h.

Constructor & Destructor Documentation

MODCCSHFDat::MODCCSHFDat ( )

Definition at line 17 of file MODCCSHFDat.cc.

MODCCSHFDat::~MODCCSHFDat ( )

Definition at line 32 of file MODCCSHFDat.cc.

Member Function Documentation

void MODCCSHFDat::fetchData ( std::map< EcalLogicID, MODCCSHFDat > *  fillMap,
MODRunIOV iov 
)
throw (std::runtime_error
)
private

Definition at line 142 of file MODCCSHFDat.cc.

unsigned char* MODCCSHFDat::getClob ( ) const
inline

Definition at line 30 of file MODCCSHFDat.h.

References m_clob.

30 { return m_clob; }
unsigned char * m_clob
Definition: MODCCSHFDat.h:55
std::string MODCCSHFDat::getFile ( ) const
inline

Definition at line 39 of file MODCCSHFDat.h.

References m_file.

39 { return m_file; }
std::string m_file
Definition: MODCCSHFDat.h:57
unsigned int MODCCSHFDat::getSize ( ) const
inline

Definition at line 33 of file MODCCSHFDat.h.

References m_size.

33 { return m_size; }
unsigned int m_size
Definition: MODCCSHFDat.h:56
std::string MODCCSHFDat::getTable ( )
inlinevirtual

Implements IDataItem.

Definition at line 27 of file MODCCSHFDat.h.

27 { return "OD_CCS_HF_DAT"; }
int MODCCSHFDat::getTest ( ) const
inline

Definition at line 36 of file MODCCSHFDat.h.

References testing.

36 { return testing; }
void MODCCSHFDat::populateClob ( Clob clob,
std::string  fname,
unsigned int  clob_size 
)
throw (std::runtime_error
)
private

Definition at line 258 of file MODCCSHFDat.cc.

void MODCCSHFDat::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IDataItem.

Definition at line 61 of file MODCCSHFDat.cc.

unsigned char * MODCCSHFDat::readClob ( Clob clob,
int  size 
)
throw (std::runtime_error
)
private

Definition at line 330 of file MODCCSHFDat.cc.

void MODCCSHFDat::setClob ( unsigned char *  x)
inline

Definition at line 29 of file MODCCSHFDat.h.

References m_clob, and x.

29 { m_clob = x; }
unsigned char * m_clob
Definition: MODCCSHFDat.h:55
void MODCCSHFDat::setFile ( std::string  x)

Definition at line 37 of file MODCCSHFDat.cc.

void MODCCSHFDat::setSize ( unsigned int  id)
inline

Definition at line 32 of file MODCCSHFDat.h.

References m_size.

32 { m_size = id; }
unsigned int m_size
Definition: MODCCSHFDat.h:56
void MODCCSHFDat::setTest ( int  id)
inline

Definition at line 35 of file MODCCSHFDat.h.

References testing.

35 { testing = id; }
void MODCCSHFDat::writeArrayDB ( const std::map< EcalLogicID, MODCCSHFDat > *  data,
MODRunIOV iov 
)
throw (std::runtime_error
)
private

Definition at line 185 of file MODCCSHFDat.cc.

void MODCCSHFDat::writeDB ( const EcalLogicID ecid,
const MODCCSHFDat item,
MODRunIOV iov 
)
throw (std::runtime_error
)
private

Definition at line 81 of file MODCCSHFDat.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 22 of file MODCCSHFDat.h.

Member Data Documentation

unsigned char* MODCCSHFDat::m_clob
private

Definition at line 55 of file MODCCSHFDat.h.

Referenced by getClob(), and setClob().

std::string MODCCSHFDat::m_file
private

Definition at line 57 of file MODCCSHFDat.h.

Referenced by getFile().

unsigned int MODCCSHFDat::m_size
private

Definition at line 56 of file MODCCSHFDat.h.

Referenced by getSize(), and setSize().

int MODCCSHFDat::testing
private

Definition at line 58 of file MODCCSHFDat.h.

Referenced by getTest(), and setTest().