#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) |
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 | |
virtual | ~IContainerHeaderTable () |
Public Member Functions inherited from ora::IDatabaseTable | |
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 |
coral::ISchema & | m_schema |
Definition at line 126 of file PoolDatabaseSchema.h.
|
explicit |
Definition at line 458 of file PoolDatabaseSchema.cc.
|
virtual |
Definition at line 463 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 = m_schema.tableHandle( tableName() ); containerTable.dataEditor().insertRow( dataToInsert );
Implements ora::IContainerHeaderTable.
Definition at line 517 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
static |
Definition at line 438 of file PoolDatabaseSchema.cc.
|
static |
Definition at line 433 of file PoolDatabaseSchema.cc.
|
static |
Definition at line 412 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 418 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 423 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 611 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 566 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 619 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 607 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 470 of file PoolDatabaseSchema.cc.
References className(), alignmentValidation::dest, o2o::query, runTheMatrix::ret, and ora::throwException().
|
static |
Definition at line 453 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 562 of file PoolDatabaseSchema.cc.
References ora::throwException().
void ora::PoolContainerHeaderTable::init | ( | PoolDbCache & | dbCache | ) |
Definition at line 466 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolDatabaseSchema::PoolDatabaseSchema().
|
static |
Definition at line 448 of file PoolDatabaseSchema.cc.
|
static |
Definition at line 443 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 548 of file PoolDatabaseSchema.cc.
References ora::throwException().
|
static |
Definition at line 406 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::selectMappingVersion().
|
static |
Definition at line 428 of file PoolDatabaseSchema.cc.
|
virtual |
Implements ora::IContainerHeaderTable.
Definition at line 570 of file PoolDatabaseSchema.cc.
References ora::PoolDbCacheData::m_nobjWr, and ora::throwException().
|
private |
Definition at line 154 of file PoolDatabaseSchema.h.
|
private |
Definition at line 153 of file PoolDatabaseSchema.h.