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)
 
std::string parsePoolToken (const std::string &poolToken)
 
IPayloadMigrationTablepayloadMigrationTable ()
 
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 266 of file OraDbSchema.cc.

266  :
267  m_cache( session ),
268  m_tagTable( m_cache ),
269  m_iovTable( m_cache ),
270  m_payloadTable( session ){
271  };
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 273 of file OraDbSchema.cc.

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

273  {
274  return m_cache.session().storage().exists();
275  }
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 285 of file OraDbSchema.cc.

References m_iovTable.

285  {
286  return m_iovTable;
287  }
std::string cond::persistency::OraIOVSchema::parsePoolToken ( const std::string &  poolToken)
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 303 of file OraDbSchema.cc.

References m_cache, geometryXMLtoCSV::parser, cond::persistency::IOVCache::session(), and cond::DbSession::storage().

303  {
305  return parser.parse( poolToken ).toString();
306  }
cond::DbSession & session()
Definition: OraDbSchema.cc:21
ora::Database & storage()
Definition: DbSession.cc:215
IPayloadMigrationTable & cond::persistency::OraIOVSchema::payloadMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 298 of file OraDbSchema.cc.

References cond::persistency::throwException().

298  {
299  throwException("Payload Migration interface is not available in this implementation.",
300  "OraIOVSchema::payloadMigrationTable");
301  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:11
IPayloadTable & cond::persistency::OraIOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 289 of file OraDbSchema.cc.

References m_payloadTable.

289  {
290  return m_payloadTable;
291  }
ITagMigrationTable & cond::persistency::OraIOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 293 of file OraDbSchema.cc.

References cond::persistency::throwException().

293  {
294  throwException("Tag Migration interface is not available in this implementation.",
295  "OraIOVSchema::tagMigrationTable");
296  }
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 281 of file OraDbSchema.cc.

References m_tagTable.

281  {
282  return m_tagTable;
283  }

Member Data Documentation

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

Definition at line 128 of file OraDbSchema.h.

Referenced by create(), exists(), and parsePoolToken().

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

Definition at line 130 of file OraDbSchema.h.

Referenced by iovTable().

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

Definition at line 131 of file OraDbSchema.h.

Referenced by payloadTable().

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

Definition at line 129 of file OraDbSchema.h.

Referenced by tagTable().