CMS 3D CMS Logo

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

#include <OraDbSchema.h>

Inheritance diagram for cond::persistency::OraPayloadTable:
cond::persistency::IPayloadTable

Public Member Functions

void create ()
 
bool exists ()
 
bool getType (const cond::Hash &payloadHash, std::string &objectType)
 
cond::Hash insertIfNew (const std::string &objectType, const cond::Binary &payloadData, const boost::posix_time::ptime &insertionTime)
 
 OraPayloadTable (DbSession &session)
 
bool select (const cond::Hash &payloadHash, std::string &objectType, cond::Binary &payloadData)
 
virtual ~OraPayloadTable ()
 
- Public Member Functions inherited from cond::persistency::IPayloadTable
virtual ~IPayloadTable ()
 

Private Attributes

cond::DbSession m_session
 

Detailed Description

Definition at line 60 of file OraDbSchema.h.

Constructor & Destructor Documentation

cond::persistency::OraPayloadTable::OraPayloadTable ( DbSession session)
explicit

Definition at line 114 of file OraDbSchema.cc.

114  :
115  m_session( session ){
116  }
virtual cond::persistency::OraPayloadTable::~OraPayloadTable ( )
inlinevirtual

Definition at line 63 of file OraDbSchema.h.

63 {}

Member Function Documentation

void cond::persistency::OraPayloadTable::create ( )
inlinevirtual

Implements cond::persistency::IPayloadTable.

Definition at line 67 of file OraDbSchema.h.

67  {
68  }
bool cond::persistency::OraPayloadTable::exists ( )
inlinevirtual

Implements cond::persistency::IPayloadTable.

Definition at line 64 of file OraDbSchema.h.

64  {
65  return true;
66  }
bool cond::persistency::OraPayloadTable::getType ( const cond::Hash payloadHash,
std::string &  objectType 
)
virtual
cond::Hash cond::persistency::OraPayloadTable::insertIfNew ( const std::string &  objectType,
const cond::Binary payloadData,
const boost::posix_time::ptime &  insertionTime 
)
virtual

Implements cond::persistency::IPayloadTable.

Definition at line 130 of file OraDbSchema.cc.

References cond::DbSession::flush(), m_session, getGTfromDQMFile::obj, cond::Binary::oraObject(), cond::DbSession::storeObject(), AlCaHLTBitMon_QueryRunRegistry::string, and results_mgr::tok.

131  {
132  ora::Object obj = payloadData.oraObject();
133  std::string tok = m_session.storeObject( obj, objectType );
134  m_session.flush();
135  return tok;
136  }
ora::Object oraObject() const
Definition: Binary.cc:62
std::string storeObject(const T *object, const std::string &containerName)
Definition: DbSession.h:132
bool cond::persistency::OraPayloadTable::select ( const cond::Hash payloadHash,
std::string &  objectType,
cond::Binary payloadData 
)
virtual

Member Data Documentation

cond::DbSession cond::persistency::OraPayloadTable::m_session
private

Definition at line 74 of file OraDbSchema.h.

Referenced by getType(), insertIfNew(), and select().