#include <OraDatabaseSchema.h>
Definition at line 10 of file OraDatabaseSchema.h.
ora::OraMainTable::OraMainTable |
( |
coral::ISchema & |
dbSchema | ) |
|
|
explicit |
ora::OraMainTable::~OraMainTable |
( |
| ) |
|
|
virtual |
void ora::OraMainTable::create |
( |
| ) |
|
|
virtual |
Implements ora::IDatabaseTable.
Definition at line 67 of file OraDatabaseSchema.cc.
References asciidump::table, ora::throwException(), AlCaRecoCosmics_cfg::version, and ora::IMainTable::versionParameterName().
69 throwException(
"ORA database main table already exists in this schema.",
70 "OraMainTable::create");
73 coral::TableDescription descr(
"OraDb" );
76 coral::AttributeSpecification::typeNameForType<std::string>() );
78 coral::AttributeSpecification::typeNameForType<std::string>() );
84 table.privilegeManager().grantToPublic( coral::ITablePrivilegeManager::Select );
86 coral::AttributeList dataToInsert;
91 table.dataEditor().insertRow( dataToInsert );
static std::string versionParameterName()
coral::ISchema & m_schema
static std::string tableName()
static std::string parameterNameColumn()
void throwException(const std::string &message, const std::string &methodName)
static std::string version()
static std::string parameterValueColumn()
void ora::OraMainTable::drop |
( |
| ) |
|
|
virtual |
bool ora::OraMainTable::exists |
( |
| ) |
|
|
virtual |
bool ora::OraMainTable::getParameters |
( |
std::map< std::string, std::string > & |
destination | ) |
|
|
virtual |
Implements ora::IMainTable.
Definition at line 43 of file OraDatabaseSchema.cc.
References o2o::query, and runTheMatrix::ret.
46 std::auto_ptr<coral::IQuery>
query(mainTable.newQuery());
47 coral::ICursor& cursor =
query->execute();
48 while ( cursor.next() ) {
50 const coral::AttributeList& row = cursor.currentRow();
53 dest.insert( std::make_pair( paramName, paramValue ) );
coral::ISchema & m_schema
static std::string tableName()
static std::string parameterNameColumn()
static std::string parameterValueColumn()
std::string ora::OraMainTable::parameterNameColumn |
( |
| ) |
|
|
static |
std::string ora::OraMainTable::parameterValueColumn |
( |
| ) |
|
|
static |
std::string ora::OraMainTable::schemaVersion |
( |
| ) |
|
|
virtual |
std::string ora::OraMainTable::tableName |
( |
| ) |
|
|
static |
std::string ora::OraMainTable::version |
( |
| ) |
|
|
static |
coral::ISchema& ora::OraMainTable::m_schema |
|
private |