#include <PoolDatabaseSchema.h>
Public Member Functions | |
void | addContainer (int id, const std::string &containerName, const std::string &className) |
void | create () |
void | decrementNumberOfObjects (int id) |
void | drop () |
bool | exists () |
bool | getContainerData (std::map< std::string, ContainerHeaderData > &destination) |
void | incrementNumberOfObjects (int id) |
void | init (PoolDbCache &dbCache) |
bool | lockContainer (int id, ContainerHeaderData &destination) |
std::string | name () |
PoolContainerHeaderTable (coral::ISchema &dbSchema) | |
void | removeContainer (int id) |
void | updateNumberOfObjects (const std::map< int, unsigned int > &numberOfObjectsForContainerIds) |
virtual | ~PoolContainerHeaderTable () |
Public Member Functions inherited from ora::IContainerHeaderTable | |
IContainerHeaderTable (coral::ISchema &schema) | |
virtual | ~IContainerHeaderTable () |
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 | baseMappingVersionColumn () |
static std::string | classNameColumn () |
static std::string | containerIdColumn () |
static std::string | containerNameColumn () |
static std::string | containerTypeColumn () |
static std::string | homogeneousContainerType () |
static std::string | numberOfDeletedObjectsColumn () |
static std::string | numberOfWrittenObjectsColumn () |
static std::string | tableName () |
static std::string | tableNameColumn () |
Private Attributes | |
PoolDbCache * | m_dbCache |
Definition at line 125 of file PoolDatabaseSchema.h.
|
explicit |
Definition at line 483 of file PoolDatabaseSchema.cc.
|
virtual |
Definition at line 488 of file PoolDatabaseSchema.cc.
|
virtual |
if(!m_dbCache){ throwException("Container Table handle has not been initialized.","PoolContainerHeaderTable::addContainer"); } PoolDbCacheData& contData = m_dbCache->find( containerId );
unsigned int nobj = 0; coral::AttributeList dataToInsert; dataToInsert.extend<int>( containerIdColumn()); dataToInsert.extend<std::string>( containerNameColumn()); dataToInsert.extend<std::string>( classNameColumn()); dataToInsert.extend<std::string>( tableNameColumn()); dataToInsert.extend<std::string>( baseMappingVersionColumn()); dataToInsert.extend<unsigned int>( numberOfWrittenObjectsColumn()); dataToInsert.extend<unsigned int>( numberOfDeletedObjectsColumn()); dataToInsert[ containerIdColumn() ].data<int>() = containerId; dataToInsert[ containerNameColumn() ].data<std::string>() = containerName; dataToInsert[ classNameColumn() ].data<std::string>() = className; dataToInsert[ tableNameColumn() ].data<std::string>() = "-"; dataToInsert[ baseMappingVersionColumn() ].data<std::string>() = contData.m_mappingVersion; dataToInsert[ numberOfWrittenObjectsColumn() ].data<unsigned int>() = nobj; dataToInsert[ numberOfDeletedObjectsColumn() ].data<unsigned int>() = nobj; coral::ITable& containerTable = schema().tableHandle( tableName() ); containerTable.dataEditor().insertRow( dataToInsert );
Implements ora::IContainerHeaderTable.
Definition at line 542 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
static |
Definition at line 463 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 458 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 437 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 443 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 448 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 670 of file PoolDatabaseSchema.cc.
References dataDML::schema, HLT_Fake_cff::tableName, and ora::throwException().
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 621 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 678 of file PoolDatabaseSchema.cc.
References dataDML::schema, and HLT_Fake_cff::tableName.
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 666 of file PoolDatabaseSchema.cc.
References dataDML::schema, and HLT_Fake_cff::tableName.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 495 of file PoolDatabaseSchema.cc.
References className(), alignCSCRings::dest, o2o::query, runTheMatrix::ret, dataDML::schema, AlCaHLTBitMon_QueryRunRegistry::string, HLT_Fake_cff::tableName, and ora::throwException().
|
static |
Definition at line 478 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 617 of file PoolDatabaseSchema.cc.
References ora::throwException().
void ora::PoolContainerHeaderTable::init | ( | PoolDbCache & | dbCache | ) |
Definition at line 491 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolDatabaseSchema::PoolDatabaseSchema().
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 587 of file PoolDatabaseSchema.cc.
References ora::ContainerHeaderData::className, ora::ContainerHeaderData::id, ora::ContainerHeaderData::numberOfObjects, o2o::query, runTheMatrix::ret, dataDML::schema, AlCaHLTBitMon_QueryRunRegistry::string, and HLT_Fake_cff::tableName.
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 662 of file PoolDatabaseSchema.cc.
References HLT_Fake_cff::tableName.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
static |
Definition at line 473 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 468 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 573 of file PoolDatabaseSchema.cc.
References dataDML::schema, HLT_Fake_cff::tableName, and ora::throwException().
|
static |
Definition at line 431 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 453 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 625 of file PoolDatabaseSchema.cc.
References ora::PoolDbCacheData::m_nobjWr, dataDML::schema, HLT_Fake_cff::tableName, and ora::throwException().
|
private |
Definition at line 154 of file PoolDatabaseSchema.h.