CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
ora::OraSequenceTable Class Reference

#include <OraDatabaseSchema.h>

Inheritance diagram for ora::OraSequenceTable:
ora::ISequenceTable ora::IDatabaseTable

Public Member Functions

bool add (const std::string &sequenceName)
 
void create ()
 
void drop ()
 
void erase (const std::string &sequenceName)
 
bool exists ()
 
bool getLastId (const std::string &sequenceName, int &lastId)
 
std::string name ()
 
 OraSequenceTable (coral::ISchema &dbSchema)
 
 OraSequenceTable (const std::string &tableName, coral::ISchema &dbSchema)
 
void sinchronize (const std::string &sequenceName, int lastValue)
 
virtual ~OraSequenceTable ()
 
- Public Member Functions inherited from ora::ISequenceTable
 ISequenceTable (coral::ISchema &schema)
 
virtual ~ISequenceTable ()
 
- Public Member Functions inherited from ora::IDatabaseTable
 IDatabaseTable (coral::ISchema &schema)
 
coral::ISchema & schema ()
 
virtual void setAccessPermission (const std::string &principal, bool forWrite)
 
virtual ~IDatabaseTable ()
 

Static Public Member Functions

static std::string sequenceNameColumn ()
 
static std::string sequenceValueColumn ()
 
static std::string tableName ()
 

Private Attributes

std::string m_tableName
 

Detailed Description

Definition at line 30 of file OraDatabaseSchema.h.

Constructor & Destructor Documentation

ora::OraSequenceTable::OraSequenceTable ( coral::ISchema &  dbSchema)
explicit

Definition at line 129 of file OraDatabaseSchema.cc.

ora::OraSequenceTable::OraSequenceTable ( const std::string &  tableName,
coral::ISchema &  dbSchema 
)

Definition at line 134 of file OraDatabaseSchema.cc.

ora::OraSequenceTable::~OraSequenceTable ( )
virtual

Definition at line 140 of file OraDatabaseSchema.cc.

Member Function Documentation

bool ora::OraSequenceTable::add ( const std::string &  sequenceName)
virtual

Implements ora::ISequenceTable.

Definition at line 144 of file OraDatabaseSchema.cc.

Referenced by counter.Counter::register().

void ora::OraSequenceTable::create ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 209 of file OraDatabaseSchema.cc.

void ora::OraSequenceTable::drop ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 228 of file OraDatabaseSchema.cc.

void ora::OraSequenceTable::erase ( const std::string &  sequenceName)
virtual

Implements ora::ISequenceTable.

Definition at line 193 of file OraDatabaseSchema.cc.

bool ora::OraSequenceTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 205 of file OraDatabaseSchema.cc.

bool ora::OraSequenceTable::getLastId ( const std::string &  sequenceName,
int &  lastId 
)
virtual

Implements ora::ISequenceTable.

Definition at line 158 of file OraDatabaseSchema.cc.

std::string ora::OraSequenceTable::name ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 201 of file OraDatabaseSchema.cc.

Referenced by VIDSelectorBase.VIDSelectorBase::initialize().

std::string ora::OraSequenceTable::sequenceNameColumn ( )
static

Definition at line 119 of file OraDatabaseSchema.cc.

std::string ora::OraSequenceTable::sequenceValueColumn ( )
static

Definition at line 124 of file OraDatabaseSchema.cc.

void ora::OraSequenceTable::sinchronize ( const std::string &  sequenceName,
int  lastValue 
)
virtual

Implements ora::ISequenceTable.

Definition at line 178 of file OraDatabaseSchema.cc.

std::string ora::OraSequenceTable::tableName ( )
static

Definition at line 114 of file OraDatabaseSchema.cc.

Member Data Documentation

std::string ora::OraSequenceTable::m_tableName
private

Definition at line 49 of file OraDatabaseSchema.h.