#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 Reflex::Type &containerType, DatabaseSession &session) | |
void | drop () |
void | erase (int itemId) |
void | extendSchema (const Reflex::Type &dependentType) |
void * | fetchItem (int itemId) |
void * | fetchItemAsType (int itemId, const Reflex::Type &asType) |
void | flush () |
bool | getNames (std::vector< std::string > &destination) |
int | id () |
int | insertItem (const void *data, const Reflex::Type &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 Reflex::Type & | type () |
void | updateItem (int itemId, const void *data, const Reflex::Type &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 294 of file DatabaseContainer.cc.
ora::DatabaseContainer::DatabaseContainer | ( | int | contId, |
const std::string & | containerName, | ||
const Reflex::Type & | containerType, | ||
DatabaseSession & | session | ||
) |
Definition at line 311 of file DatabaseContainer.cc.
|
virtual |
Definition at line 327 of file DatabaseContainer.cc.
const std::string & ora::DatabaseContainer::className | ( | ) |
Definition at line 339 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainerSchema().
void ora::DatabaseContainer::create | ( | ) |
Definition at line 381 of file DatabaseContainer.cc.
Referenced by ora::DatabaseSession::createContainer().
void ora::DatabaseContainer::drop | ( | ) |
Definition at line 385 of file DatabaseContainer.cc.
References ora::throwException().
Referenced by ora::DatabaseSession::dropContainer().
void ora::DatabaseContainer::erase | ( | int | itemId | ) |
Definition at line 458 of file DatabaseContainer.cc.
void ora::DatabaseContainer::extendSchema | ( | const Reflex::Type & | dependentType | ) |
Definition at line 394 of file DatabaseContainer.cc.
void * ora::DatabaseContainer::fetchItem | ( | int | itemId | ) |
Definition at line 403 of file DatabaseContainer.cc.
Referenced by ora::DatabaseSession::fetchObjectByName().
void * ora::DatabaseContainer::fetchItemAsType | ( | int | itemId, |
const Reflex::Type & | asType | ||
) |
Definition at line 411 of file DatabaseContainer.cc.
References ora::ClassUtils::isType(), and ora::throwException().
Referenced by ora::DatabaseSession::fetchTypedObjectByName().
void ora::DatabaseContainer::flush | ( | ) |
Definition at line 465 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::getNames | ( | std::vector< std::string > & | destination | ) |
Definition at line 481 of file DatabaseContainer.cc.
int ora::DatabaseContainer::id | ( | void | ) |
Definition at line 331 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 Reflex::Type & | type | ||
) |
Definition at line 423 of file DatabaseContainer.cc.
References ora::ClassUtils::resolvedType(), ora::MappingRules::sequenceNameForContainer(), and ora::throwException().
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::isLocked | ( | ) |
Definition at line 377 of file DatabaseContainer.cc.
ora::Handle< ora::IteratorBuffer > ora::DatabaseContainer::iteratorBuffer | ( | ) |
Definition at line 355 of file DatabaseContainer.cc.
Referenced by ora::DatabaseUtilitySession::importContainer().
bool ora::DatabaseContainer::lock | ( | ) |
Definition at line 366 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 347 of file DatabaseContainer.cc.
const std::string & ora::DatabaseContainer::name | ( | ) |
Definition at line 335 of file DatabaseContainer.cc.
Referenced by Vispa.Views.PropertyView.Property::valueChanged().
void ora::DatabaseContainer::setAccessPermission | ( | const std::string & | principal, |
bool | forWrite | ||
) |
Definition at line 398 of file DatabaseContainer.cc.
void ora::DatabaseContainer::setItemName | ( | const std::string & | name, |
int | itemId | ||
) |
Definition at line 476 of file DatabaseContainer.cc.
size_t ora::DatabaseContainer::size | ( | void | ) |
Definition at line 351 of file DatabaseContainer.cc.
const Reflex::Type & ora::DatabaseContainer::type | ( | ) |
Definition at line 343 of file DatabaseContainer.cc.
Referenced by 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 Reflex::Type & | type | ||
) |
Definition at line 441 of file DatabaseContainer.cc.
References 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.