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 106 of file OraDbSchema.h.

Constructor & Destructor Documentation

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

Definition at line 226 of file OraDbSchema.cc.

226  :
227  m_cache( session ),
228  m_tagTable( m_cache ),
229  m_iovTable( m_cache ),
230  m_payloadTable( session ){
231  };
virtual cond::persistency::OraIOVSchema::~OraIOVSchema ( )
inlinevirtual

Definition at line 109 of file OraDbSchema.h.

109 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 233 of file OraDbSchema.cc.

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

233  {
234  return m_cache.session().storage().exists();
235  }
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 245 of file OraDbSchema.cc.

References m_iovTable.

245  {
246  return m_iovTable;
247  }
IPayloadTable & cond::persistency::OraIOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 249 of file OraDbSchema.cc.

References m_payloadTable.

249  {
250  return m_payloadTable;
251  }
ITagMigrationTable & cond::persistency::OraIOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 253 of file OraDbSchema.cc.

References cond::persistency::throwException().

253  {
254  throwException("Tag Migration interface is not available in this implementation.",
255  "OraIOVSchema::tagMigrationTabl");
256  }
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 241 of file OraDbSchema.cc.

References m_tagTable.

241  {
242  return m_tagTable;
243  }

Member Data Documentation

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

Definition at line 117 of file OraDbSchema.h.

Referenced by create(), and exists().

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

Definition at line 119 of file OraDbSchema.h.

Referenced by iovTable().

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

Definition at line 120 of file OraDbSchema.h.

Referenced by payloadTable().

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

Definition at line 118 of file OraDbSchema.h.

Referenced by tagTable().