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 cond::Binary &streamerInfoData, const boost::posix_time::ptime &insertionTime)
 
 OraPayloadTable (DbSession &session)
 
bool select (const cond::Hash &payloadHash, std::string &objectType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
 
virtual ~OraPayloadTable ()
 
- Public Member Functions inherited from cond::persistency::IPayloadTable
virtual ~IPayloadTable ()
 

Private Attributes

cond::DbSession m_session
 

Detailed Description

Definition at line 68 of file OraDbSchema.h.

Constructor & Destructor Documentation

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

Definition at line 124 of file OraDbSchema.cc.

124  :
125  m_session( session ){
126  }
virtual cond::persistency::OraPayloadTable::~OraPayloadTable ( )
inlinevirtual

Definition at line 71 of file OraDbSchema.h.

71 {}

Member Function Documentation

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

Implements cond::persistency::IPayloadTable.

Definition at line 75 of file OraDbSchema.h.

75  {
76  }
bool cond::persistency::OraPayloadTable::exists ( )
inlinevirtual

Implements cond::persistency::IPayloadTable.

Definition at line 72 of file OraDbSchema.h.

72  {
73  return true;
74  }
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 cond::Binary streamerInfoData,
const boost::posix_time::ptime &  insertionTime 
)
virtual

Implements cond::persistency::IPayloadTable.

Definition at line 144 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.

147  {
148  ora::Object obj = payloadData.oraObject();
149  std::string tok = m_session.storeObject( obj, objectType );
150  m_session.flush();
151  return tok;
152  }
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,
cond::Binary streamerInfoData 
)
virtual

Member Data Documentation

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

Definition at line 82 of file OraDbSchema.h.

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