CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::DatabaseContainer Class Reference

#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< IteratorBufferiteratorBuffer ()
 
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::TypeWithDicttype ()
 
void updateItem (int itemId, const void *data, const edm::TypeWithDict &type)
 
virtual ~DatabaseContainer ()
 

Private Attributes

ContainerUpdateTablem_containerUpdateTable
 
IDatabaseSchemam_dbSchema
 
std::auto_ptr< DeleteBufferm_deleteBuffer
 
Handle< IteratorBufferm_iteratorBuffer
 
bool m_lock
 
std::auto_ptr< ReadBufferm_readBuffer
 
std::auto_ptr< ContainerSchemam_schema
 
size_t m_size
 
std::auto_ptr< UpdateBufferm_updateBuffer
 
std::auto_ptr< WriteBufferm_writeBuffer
 

Detailed Description

Definition at line 51 of file DatabaseContainer.h.

Constructor & Destructor Documentation

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.

ora::DatabaseContainer::~DatabaseContainer ( )
virtual

Definition at line 332 of file DatabaseContainer.cc.

Member Function Documentation

const std::string & ora::DatabaseContainer::className ( )

Definition at line 344 of file DatabaseContainer.cc.

void ora::DatabaseContainer::create ( )

Definition at line 386 of file DatabaseContainer.cc.

void ora::DatabaseContainer::drop ( )

Definition at line 390 of file DatabaseContainer.cc.

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.

void * ora::DatabaseContainer::fetchItemAsType ( int  itemId,
const edm::TypeWithDict asType 
)

Definition at line 416 of file DatabaseContainer.cc.

void ora::DatabaseContainer::flush ( )

Definition at line 470 of file DatabaseContainer.cc.

bool ora::DatabaseContainer::getNames ( std::vector< std::string > &  destination)

Definition at line 486 of file DatabaseContainer.cc.

int ora::DatabaseContainer::id ( )
int ora::DatabaseContainer::insertItem ( const void *  data,
const edm::TypeWithDict type 
)

Definition at line 428 of file DatabaseContainer.cc.

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.

bool ora::DatabaseContainer::lock ( )

Definition at line 371 of file DatabaseContainer.cc.

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 VIDSelectorBase.VIDSelectorBase::initialize().

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.

void ora::DatabaseContainer::updateItem ( int  itemId,
const void *  data,
const edm::TypeWithDict type 
)

Definition at line 446 of file DatabaseContainer.cc.

Member Data Documentation

ContainerUpdateTable& ora::DatabaseContainer::m_containerUpdateTable
private

Definition at line 113 of file DatabaseContainer.h.

IDatabaseSchema& ora::DatabaseContainer::m_dbSchema
private

Definition at line 105 of file DatabaseContainer.h.

std::auto_ptr<DeleteBuffer> ora::DatabaseContainer::m_deleteBuffer
private

Definition at line 110 of file DatabaseContainer.h.

Handle<IteratorBuffer> ora::DatabaseContainer::m_iteratorBuffer
private

Definition at line 111 of file DatabaseContainer.h.

bool ora::DatabaseContainer::m_lock
private

Definition at line 114 of file DatabaseContainer.h.

std::auto_ptr<ReadBuffer> ora::DatabaseContainer::m_readBuffer
private

Definition at line 109 of file DatabaseContainer.h.

std::auto_ptr<ContainerSchema> ora::DatabaseContainer::m_schema
private

Definition at line 106 of file DatabaseContainer.h.

size_t ora::DatabaseContainer::m_size
private

Definition at line 112 of file DatabaseContainer.h.

std::auto_ptr<UpdateBuffer> ora::DatabaseContainer::m_updateBuffer
private

Definition at line 108 of file DatabaseContainer.h.

std::auto_ptr<WriteBuffer> ora::DatabaseContainer::m_writeBuffer
private

Definition at line 107 of file DatabaseContainer.h.