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::OraIOVSchema Class Reference

#include <OraDbSchema.h>

Inheritance diagram for cond::persistency::OraIOVSchema:
cond::persistency::IIOVSchema

Public Member Functions

bool create ()
 
bool exists ()
 
IIOVTableiovTable ()
 
 OraIOVSchema (DbSession &session)
 
IPayloadTablepayloadTable ()
 
ITagMigrationTabletagMigrationTable ()
 
ITagTabletagTable ()
 
virtual ~OraIOVSchema ()
 
- Public Member Functions inherited from cond::persistency::IIOVSchema
virtual ~IIOVSchema ()
 

Private Attributes

IOVCache m_cache
 
OraIOVTable m_iovTable
 
OraPayloadTable m_payloadTable
 
OraTagTable m_tagTable
 

Detailed Description

Definition at line 115 of file OraDbSchema.h.

Constructor & Destructor Documentation

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

Definition at line 247 of file OraDbSchema.cc.

247  :
248  m_cache( session ),
249  m_tagTable( m_cache ),
250  m_iovTable( m_cache ),
251  m_payloadTable( session ){
252  };
virtual cond::persistency::OraIOVSchema::~OraIOVSchema ( )
inlinevirtual

Definition at line 118 of file OraDbSchema.h.

118 {}

Member Function Documentation

bool cond::persistency::OraIOVSchema::create ( )
virtual
bool cond::persistency::OraIOVSchema::exists ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 254 of file OraDbSchema.cc.

References ora::Database::exists(), m_cache, cond::persistency::IOVCache::session(), and cond::DbSession::storage().

254  {
255  return m_cache.session().storage().exists();
256  }
cond::DbSession & session()
Definition: OraDbSchema.cc:21
bool exists()
Definition: Database.cc:133
ora::Database & storage()
Definition: DbSession.cc:215
IIOVTable & cond::persistency::OraIOVSchema::iovTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 266 of file OraDbSchema.cc.

References m_iovTable.

266  {
267  return m_iovTable;
268  }
IPayloadTable & cond::persistency::OraIOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 270 of file OraDbSchema.cc.

References m_payloadTable.

270  {
271  return m_payloadTable;
272  }
ITagMigrationTable & cond::persistency::OraIOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 274 of file OraDbSchema.cc.

References cond::persistency::throwException().

274  {
275  throwException("Tag Migration interface is not available in this implementation.",
276  "OraIOVSchema::tagMigrationTabl");
277  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:11
ITagTable & cond::persistency::OraIOVSchema::tagTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 262 of file OraDbSchema.cc.

References m_tagTable.

262  {
263  return m_tagTable;
264  }

Member Data Documentation

IOVCache cond::persistency::OraIOVSchema::m_cache
private

Definition at line 126 of file OraDbSchema.h.

Referenced by create(), and exists().

OraIOVTable cond::persistency::OraIOVSchema::m_iovTable
private

Definition at line 128 of file OraDbSchema.h.

Referenced by iovTable().

OraPayloadTable cond::persistency::OraIOVSchema::m_payloadTable
private

Definition at line 129 of file OraDbSchema.h.

Referenced by payloadTable().

OraTagTable cond::persistency::OraIOVSchema::m_tagTable
private

Definition at line 127 of file OraDbSchema.h.

Referenced by tagTable().