#include <Container.h>
Public Member Functions | |
const std::string & | className () |
Container () | |
Container (Handle< DatabaseContainer > &dbContainer) | |
Container (const Container &rhs) | |
void | erase (int itemId) |
void | extendSchema (const std::type_info &typeInfo) |
template<typename T > | |
void | extendSchema () |
template<typename T > | |
boost::shared_ptr< T > | fetch (int itemId) |
Object | fetchItem (int itemId) |
void | flush () |
bool | getNames (std::vector< std::string > &destination) |
int | id () |
template<typename T > | |
int | insert (const T &data) |
int | insertItem (const Object &data) |
bool | isLocked () |
ContainerIterator | iterator () |
bool | lock () |
const std::string & | mappingVersion () |
const std::string & | name () |
Container & | operator= (const Container &rhs) |
void | setAccessPermission (const std::string &principal, bool forWrite) |
void | setItemName (const std::string &name, int itemId) |
size_t | size () |
template<typename T > | |
void | update (int itemId, const T &data) |
void | updateItem (int itemId, const Object &data) |
virtual | ~Container () |
Private Member Functions | |
boost::shared_ptr< void > | fetchItemAsType (int itemId, const std::type_info &asTypeInfo) |
int | insertItem (const void *data, const std::type_info &typeInfo) |
void | updateItem (int itemId, const void *data, const std::type_info &typeInfo) |
Private Attributes | |
Handle< DatabaseContainer > | m_dbContainer |
Definition at line 45 of file Container.h.
ora::Container::Container | ( | ) |
Definition at line 47 of file Container.cc.
|
explicit |
Definition at line 51 of file Container.cc.
ora::Container::Container | ( | const Container & | rhs | ) |
Definition at line 55 of file Container.cc.
|
virtual |
Definition at line 59 of file Container.cc.
const std::string & ora::Container::className | ( | ) |
Definition at line 75 of file Container.cc.
Referenced by cond::PoolTokenParser::className(), cond::DbSession::classNameForItem(), cond::IOVImportIterator::importMoreElements(), and cond::PoolTokenWriter::write().
void ora::Container::erase | ( | int | itemId | ) |
void ora::Container::extendSchema | ( | const std::type_info & | typeInfo | ) |
Definition at line 92 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
|
inline |
Definition at line 121 of file Container.h.
|
inline |
Definition at line 127 of file Container.h.
Referenced by ora::Database::fetch().
ora::Object ora::Container::fetchItem | ( | int | itemId | ) |
|
private |
Definition at line 106 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
void ora::Container::flush | ( | ) |
Definition at line 158 of file Container.cc.
bool ora::Container::getNames | ( | std::vector< std::string > & | destination | ) |
Definition at line 167 of file Container.cc.
int ora::Container::id | ( | void | ) |
Definition at line 67 of file Container.cc.
Referenced by ora::Database::insert(), ora::Database::insertItem(), and cond::PoolTokenParser::parse().
|
inline |
Definition at line 133 of file Container.h.
Referenced by BeautifulSoup.PageElement::_invert(), and ora::Database::insert().
int ora::Container::insertItem | ( | const Object & | data | ) |
Definition at line 122 of file Container.cc.
References ora::Object::address(), ora::throwException(), and ora::Object::type().
Referenced by ora::Database::insertItem().
|
private |
Definition at line 131 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
bool ora::Container::isLocked | ( | ) |
Definition at line 118 of file Container.cc.
ora::ContainerIterator ora::Container::iterator | ( | ) |
Definition at line 87 of file Container.cc.
bool ora::Container::lock | ( | ) |
Definition at line 114 of file Container.cc.
const std::string & ora::Container::mappingVersion | ( | ) |
Definition at line 79 of file Container.cc.
const std::string & ora::Container::name | ( | ) |
Definition at line 71 of file Container.cc.
Referenced by cond::DbSession::importObject(), Vispa.Views.PropertyView.Property::valueChanged(), and cond::PoolTokenWriter::write().
ora::Container & ora::Container::operator= | ( | const Container & | rhs | ) |
void ora::Container::setAccessPermission | ( | const std::string & | principal, |
bool | forWrite | ||
) |
Definition at line 97 of file Container.cc.
void ora::Container::setItemName | ( | const std::string & | name, |
int | itemId | ||
) |
Definition at line 162 of file Container.cc.
size_t ora::Container::size | ( | void | ) |
Definition at line 83 of file Container.cc.
|
inline |
Definition at line 139 of file Container.h.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), ora::Database::update(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
void ora::Container::updateItem | ( | int | itemId, |
const Object & | data | ||
) |
Definition at line 137 of file Container.cc.
References ora::Object::address(), ora::throwException(), and ora::Object::type().
Referenced by ora::Database::updateItem().
|
private |
Definition at line 147 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
|
private |
Definition at line 108 of file Container.h.
Referenced by operator=().