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

Constructor & Destructor Documentation

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

Definition at line 278 of file OraDbSchema.cc.

278  :
279  m_cache( session ),
280  m_tagTable( m_cache ),
281  m_iovTable( m_cache ),
282  m_payloadTable( session ){
283  };
virtual cond::persistency::OraIOVSchema::~OraIOVSchema ( )
inlinevirtual

Definition at line 120 of file OraDbSchema.h.

120 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 285 of file OraDbSchema.cc.

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

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

References m_iovTable.

297  {
298  return m_iovTable;
299  }
std::string cond::persistency::OraIOVSchema::parsePoolToken ( const std::string &  poolToken)
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 315 of file OraDbSchema.cc.

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

315  {
317  return parser.parse( poolToken ).toString();
318  }
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 310 of file OraDbSchema.cc.

References cond::persistency::throwException().

310  {
311  throwException("Payload Migration interface is not available in this implementation.",
312  "OraIOVSchema::payloadMigrationTable");
313  }
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 301 of file OraDbSchema.cc.

References m_payloadTable.

301  {
302  return m_payloadTable;
303  }
ITagMigrationTable & cond::persistency::OraIOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 305 of file OraDbSchema.cc.

References cond::persistency::throwException().

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

References m_tagTable.

293  {
294  return m_tagTable;
295  }

Member Data Documentation

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

Definition at line 130 of file OraDbSchema.h.

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

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

Definition at line 132 of file OraDbSchema.h.

Referenced by iovTable().

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

Definition at line 133 of file OraDbSchema.h.

Referenced by payloadTable().

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

Definition at line 131 of file OraDbSchema.h.

Referenced by tagTable().