test
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::IDatabaseTable Class Referenceabstract

#include <IDatabaseSchema.h>

Inheritance diagram for ora::IDatabaseTable:
ora::IContainerHeaderTable ora::IMainTable ora::INamingServiceTable ora::ISequenceTable ora::OraClassVersionTable ora::OraMappingElementTable ora::OraMappingVersionTable ora::PoolClassVersionTable ora::PoolMappingElementTable ora::PoolMappingVersionTable

Public Member Functions

virtual void create ()=0
 
virtual void drop ()=0
 
virtual bool exists ()=0
 
 IDatabaseTable (coral::ISchema &schema)
 
virtual std::string name ()=0
 
coral::ISchema & schema ()
 
virtual void setAccessPermission (const std::string &principal, bool forWrite)
 
virtual ~IDatabaseTable ()
 

Private Attributes

coral::ISchema & m_schema
 

Detailed Description

Definition at line 21 of file IDatabaseSchema.h.

Constructor & Destructor Documentation

ora::IDatabaseTable::IDatabaseTable ( coral::ISchema &  schema)
explicit

Definition at line 25 of file IDatabaseSchema.cc.

25  :
26  m_schema( schema ){
27 }
coral::ISchema & m_schema
coral::ISchema & schema()
virtual ora::IDatabaseTable::~IDatabaseTable ( )
inlinevirtual

Definition at line 24 of file IDatabaseSchema.h.

24 {}

Member Function Documentation

virtual void ora::IDatabaseTable::create ( )
pure virtual
virtual void ora::IDatabaseTable::drop ( )
pure virtual
virtual bool ora::IDatabaseTable::exists ( )
pure virtual
virtual std::string ora::IDatabaseTable::name ( )
pure virtual
coral::ISchema & ora::IDatabaseTable::schema ( )

Definition at line 29 of file IDatabaseSchema.cc.

29  {
30  return m_schema;
31 }
coral::ISchema & m_schema
void ora::IDatabaseTable::setAccessPermission ( const std::string &  principal,
bool  forWrite 
)
virtual

Definition at line 33 of file IDatabaseSchema.cc.

References mergeVDriftHistosByStation::name, and ora::setTableAccessPermission().

34  {
35  coral::ITable& coralHandle = m_schema.tableHandle( name() );
36  setTableAccessPermission( coralHandle, principal, forWrite );
37 }
virtual std::string name()=0
void setTableAccessPermission(coral::ITable &table, const std::string &principal, bool forWrite)
coral::ISchema & m_schema

Member Data Documentation

coral::ISchema& ora::IDatabaseTable::m_schema
private

Definition at line 33 of file IDatabaseSchema.h.