#include <OraDatabaseSchema.h>
Public Member Functions | |
bool | containerForMappingVersion (const std::string &mappingVersion, int &destination) |
bool | getClassVersionListForContainer (int containerId, std::map< std::string, std::string > &versionMap) |
bool | getClassVersionListForMappingVersion (const std::string &mappingVersion, std::set< std::string > &destination) |
bool | getContainerTableMap (std::map< std::string, int > &destination) |
bool | getDependentClassesInContainerMapping (int containerId, std::set< std::string > &destination) |
bool | getMapping (const std::string &version, MappingRawData &destination) |
bool | getMappingVersionListForContainer (int containerId, std::set< std::string > &destination, bool onlyDependency=false) |
bool | getMappingVersionListForTable (const std::string &tableName, std::set< std::string > &destination) |
bool | getVersionList (std::set< std::string > &destination) |
void | insertClassVersion (const std::string &className, const std::string &classVersion, const std::string &classId, int dependencyIndex, int containerId, const std::string &mappingVersion) |
OraMappingSchema (coral::ISchema &dbSchema) | |
void | removeMapping (const std::string &version) |
bool | selectMappingVersion (const std::string &classId, int containerId, std::string &destination) |
void | setMappingVersion (const std::string &classId, int containerId, const std::string &mappingVersion) |
void | storeMapping (const MappingRawData &mapping) |
virtual | ~OraMappingSchema () |
Public Member Functions inherited from ora::IMappingSchema | |
virtual | ~IMappingSchema () |
Private Attributes | |
coral::ISchema & | m_schema |
Definition at line 133 of file OraDatabaseSchema.h.
|
explicit |
Definition at line 684 of file OraDatabaseSchema.cc.
|
virtual |
Definition at line 688 of file OraDatabaseSchema.cc.
|
virtual |
Implements ora::IMappingSchema.
Definition at line 997 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 922 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::classVersionColumn(), ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 873 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::classVersionColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 802 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::containerIdColumn(), ora::OraMappingElementTable::mappingVersionColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, HLT_25ns10e33_v2_cff::tableName, ora::OraMappingElementTable::tableName(), ora::OraClassVersionTable::tableName(), and ora::OraMappingElementTable::tableNameColumn().
|
virtual |
bool ora::OraMappingSchema::getTableListForContainer( int containerId, std::set<std::string>& dest ){ bool ret = false; std::auto_ptr<coral::IQuery> query(m_schema.newQuery()); query->addToTableList( OraMappingElementTable::tableName(),"T0"); query->addToTableList( OraMappingVersionTable::tableName(), "T1"); query->setDistinct(); query->addToOutputList( "T0."+ OraMappingElementTable::tableNameColumn() ); std::ostringstream condition; condition << "T0."<<OraMappingElementTable::mappingVersionColumn()<<"="<< "T1."<< OraMappingVersionTable::mappingVersionColumn() << " AND "; condition << "T1."<<OraMappingVersionTable::containerIdColumn()<<" =:"<<OraMappingVersionTable::containerIdColumn(); coral::AttributeList condData; condData.extend< int >( OraMappingVersionTable::containerIdColumn() ); condData.begin()->data< int >() = containerId; query->setCondition(condition.str(),condData); coral::ICursor& cursor = query->execute(); while ( cursor.next() ) { ret = true; const coral::AttributeList& currentRow = cursor.currentRow(); std::string tableName = currentRow[ "T0."+ OraMappingElementTable::tableNameColumn()].data<std::string>(); dest.insert( tableName ); } return ret; }
Implements ora::IMappingSchema.
Definition at line 850 of file OraDatabaseSchema.cc.
References className(), ora::OraClassVersionTable::classNameColumn(), ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::dependencyIndexColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 705 of file OraDatabaseSchema.cc.
References ora::MappingRawData::addElement(), ora::OraMappingElementTable::columnNameColumn(), HTMLExport::elem(), ora::OraMappingElementTable::elementIdColumn(), ora::MappingRawElement::elementType, ora::OraMappingElementTable::elementTypeColumn(), ora::OraMappingElementTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, ora::OraMappingElementTable::scopeNameColumn(), AlCaHLTBitMon_QueryRunRegistry::string, ora::OraMappingElementTable::tableName(), ora::OraMappingElementTable::tableNameColumn(), ora::OraMappingElementTable::variableNameColumn(), ora::OraMappingElementTable::variableParIndexColumn(), and ora::OraMappingElementTable::variableTypeColumn().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 896 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::dependencyIndexColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 946 of file OraDatabaseSchema.cc.
References ora::OraMappingElementTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, ora::OraMappingElementTable::tableName(), and ora::OraMappingElementTable::tableNameColumn().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 691 of file OraDatabaseSchema.cc.
References ora::OraMappingVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraMappingVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 1018 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::classIdColumn(), ora::OraClassVersionTable::classNameColumn(), ora::OraClassVersionTable::classVersionColumn(), ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::dependencyIndexColumn(), idDealer::inputData, ora::OraClassVersionTable::mappingVersionColumn(), AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 790 of file OraDatabaseSchema.cc.
References ora::OraMappingVersionTable::mappingVersionColumn(), AlCaHLTBitMon_QueryRunRegistry::string, ora::OraMappingVersionTable::tableName(), ora::OraMappingElementTable::tableName(), and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 970 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::classIdColumn(), ora::OraClassVersionTable::containerIdColumn(), ora::OraClassVersionTable::mappingVersionColumn(), o2o::query, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 1047 of file OraDatabaseSchema.cc.
References ora::OraClassVersionTable::classIdColumn(), ora::OraClassVersionTable::containerIdColumn(), idDealer::inputData, ora::OraClassVersionTable::mappingVersionColumn(), AlCaHLTBitMon_QueryRunRegistry::string, and ora::OraClassVersionTable::tableName().
|
virtual |
Implements ora::IMappingSchema.
Definition at line 752 of file OraDatabaseSchema.cc.
References ora::OraMappingElementTable::columnNameColumn(), ora::OraMappingElementTable::elementIdColumn(), ora::MappingRawData::elements, ora::OraMappingElementTable::elementTypeColumn(), ora::OraMappingVersionTable::mappingVersionColumn(), ora::OraMappingElementTable::mappingVersionColumn(), ora::OraMappingElementTable::scopeNameColumn(), AlCaHLTBitMon_QueryRunRegistry::string, ora::OraMappingVersionTable::tableName(), ora::OraMappingElementTable::tableName(), ora::OraMappingElementTable::tableNameColumn(), ora::OraMappingElementTable::variableNameColumn(), ora::OraMappingElementTable::variableParIndexColumn(), ora::OraMappingElementTable::variableTypeColumn(), and ora::MappingRawData::version.
|
private |
Definition at line 154 of file OraDatabaseSchema.h.