#include <DatabaseContainer.h>
Public Member Functions | |
const std::string & | className () |
void | create () |
DatabaseContainer (int contId, const std::string &containerName, const std::string &className, unsigned int containerSize, DatabaseSession &session) | |
DatabaseContainer (int contId, const std::string &containerName, const edm::TypeWithDict &containerType, DatabaseSession &session) | |
void | drop () |
void | erase (int itemId) |
void | extendSchema (const edm::TypeWithDict &dependentType) |
void * | fetchItem (int itemId) |
void * | fetchItemAsType (int itemId, const edm::TypeWithDict &asType) |
void | flush () |
bool | getNames (std::vector< std::string > &destination) |
int | id () |
int | insertItem (const void *data, const edm::TypeWithDict &type) |
bool | isLocked () |
Handle< IteratorBuffer > | iteratorBuffer () |
bool | lock () |
const std::string & | mappingVersion () |
const std::string & | name () |
void | setAccessPermission (const std::string &principal, bool forWrite) |
void | setItemName (const std::string &name, int itemId) |
size_t | size () |
const edm::TypeWithDict & | type () |
void | updateItem (int itemId, const void *data, const edm::TypeWithDict &type) |
virtual | ~DatabaseContainer () |
Private Attributes | |
ContainerUpdateTable & | m_containerUpdateTable |
IDatabaseSchema & | m_dbSchema |
std::auto_ptr< DeleteBuffer > | m_deleteBuffer |
Handle< IteratorBuffer > | m_iteratorBuffer |
bool | m_lock |
std::auto_ptr< ReadBuffer > | m_readBuffer |
std::auto_ptr< ContainerSchema > | m_schema |
size_t | m_size |
std::auto_ptr< UpdateBuffer > | m_updateBuffer |
std::auto_ptr< WriteBuffer > | m_writeBuffer |
Definition at line 51 of file DatabaseContainer.h.
ora::DatabaseContainer::DatabaseContainer | ( | int | contId, |
const std::string & | containerName, | ||
const std::string & | className, | ||
unsigned int | containerSize, | ||
DatabaseSession & | session | ||
) |
Definition at line 299 of file DatabaseContainer.cc.
ora::DatabaseContainer::DatabaseContainer | ( | int | contId, |
const std::string & | containerName, | ||
const edm::TypeWithDict & | containerType, | ||
DatabaseSession & | session | ||
) |
Definition at line 316 of file DatabaseContainer.cc.
|
virtual |
Definition at line 332 of file DatabaseContainer.cc.
const std::string & ora::DatabaseContainer::className | ( | ) |
Definition at line 344 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainerSchema().
void ora::DatabaseContainer::create | ( | ) |
Definition at line 386 of file DatabaseContainer.cc.
Referenced by ora::DatabaseSession::createContainer().
void ora::DatabaseContainer::drop | ( | ) |
Definition at line 390 of file DatabaseContainer.cc.
References ora::throwException().
Referenced by ora::DatabaseSession::dropContainer().
void ora::DatabaseContainer::erase | ( | int | itemId | ) |
Definition at line 463 of file DatabaseContainer.cc.
void ora::DatabaseContainer::extendSchema | ( | const edm::TypeWithDict & | dependentType | ) |
Definition at line 399 of file DatabaseContainer.cc.
void * ora::DatabaseContainer::fetchItem | ( | int | itemId | ) |
Definition at line 408 of file DatabaseContainer.cc.
Referenced by ora::DatabaseSession::fetchObjectByName().
void * ora::DatabaseContainer::fetchItemAsType | ( | int | itemId, |
const edm::TypeWithDict & | asType | ||
) |
Definition at line 416 of file DatabaseContainer.cc.
References edm::TypeWithDict::cppName(), ora::ClassUtils::isType(), and ora::throwException().
Referenced by ora::DatabaseSession::fetchTypedObjectByName().
void ora::DatabaseContainer::flush | ( | ) |
Definition at line 470 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::getNames | ( | std::vector< std::string > & | destination | ) |
Definition at line 486 of file DatabaseContainer.cc.
References cmsStageWithFailover::destination.
int ora::DatabaseContainer::id | ( | ) |
Definition at line 336 of file DatabaseContainer.cc.
Referenced by ora::DatabaseSession::dropContainer(), ora::DatabaseUtilitySession::importContainerSchema(), ora::DatabaseUtility::listMappings(), and ora::DatabaseUtility::listMappingVersions().
int ora::DatabaseContainer::insertItem | ( | const void * | data, |
const edm::TypeWithDict & | type | ||
) |
Definition at line 428 of file DatabaseContainer.cc.
References edm::TypeWithDict::hasBase(), edm::TypeWithDict::name(), ora::ClassUtils::resolvedType(), ora::MappingRules::sequenceNameForContainer(), and ora::throwException().
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::isLocked | ( | ) |
Definition at line 382 of file DatabaseContainer.cc.
ora::Handle< ora::IteratorBuffer > ora::DatabaseContainer::iteratorBuffer | ( | ) |
Definition at line 360 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::lock | ( | ) |
Definition at line 371 of file DatabaseContainer.cc.
References mergeVDriftHistosByStation::name, ora::ContainerHeaderData::numberOfObjects, and ora::throwException().
Referenced by ora::Database::lockContainer().
const std::string & ora::DatabaseContainer::mappingVersion | ( | ) |
Definition at line 352 of file DatabaseContainer.cc.
const std::string & ora::DatabaseContainer::name | ( | ) |
Definition at line 340 of file DatabaseContainer.cc.
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().
void ora::DatabaseContainer::setAccessPermission | ( | const std::string & | principal, |
bool | forWrite | ||
) |
Definition at line 403 of file DatabaseContainer.cc.
void ora::DatabaseContainer::setItemName | ( | const std::string & | name, |
int | itemId | ||
) |
Definition at line 481 of file DatabaseContainer.cc.
size_t ora::DatabaseContainer::size | ( | void | ) |
Definition at line 356 of file DatabaseContainer.cc.
const edm::TypeWithDict & ora::DatabaseContainer::type | ( | ) |
Definition at line 348 of file DatabaseContainer.cc.
Referenced by cuy.ValElement::__init__(), ora::DatabaseSession::fetchObjectByName(), ora::DatabaseSession::fetchTypedObjectByName(), ora::DatabaseUtilitySession::importContainer(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().
void ora::DatabaseContainer::updateItem | ( | int | itemId, |
const void * | data, | ||
const edm::TypeWithDict & | type | ||
) |
Definition at line 446 of file DatabaseContainer.cc.
References edm::TypeWithDict::hasBase(), edm::TypeWithDict::name(), ora::ClassUtils::resolvedType(), and ora::throwException().
|
private |
Definition at line 113 of file DatabaseContainer.h.
|
private |
Definition at line 105 of file DatabaseContainer.h.
|
private |
Definition at line 110 of file DatabaseContainer.h.
|
private |
Definition at line 111 of file DatabaseContainer.h.
|
private |
Definition at line 114 of file DatabaseContainer.h.
|
private |
Definition at line 109 of file DatabaseContainer.h.
|
private |
Definition at line 106 of file DatabaseContainer.h.
|
private |
Definition at line 112 of file DatabaseContainer.h.
|
private |
Definition at line 108 of file DatabaseContainer.h.
|
private |
Definition at line 107 of file DatabaseContainer.h.