CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Enumerations | Functions
ora Namespace Reference

TO BE REMOVED. More...

Namespaces

 ClassUtils
 
 RelationalMapping
 
 SchemaUtils
 

Classes

struct  AllKnowTypeHandlers
 
union  AnyData
 
struct  AnyTypeHandler
 
class  ArrayHandlerFactory
 
class  ArrayMapping
 
class  BlobMapping
 
class  BlobReader
 
class  BlobStreamer
 
class  BlobUpdater
 
class  BlobWriter
 
class  BlobWriterBase
 
class  BulkInsertOperation
 
class  CArrayHandler
 
class  CArrayIteratorHandler
 
class  CArrayMapping
 
class  CArrayReader
 
class  CArrayStreamer
 
class  CArrayUpdater
 
class  CArrayWriter
 
struct  CompareTypeHandler
 
class  CondMetadataTable
 
class  Configuration
 
class  ConnectionPool
 To be moved in DBCommon, has to serve also the pure coral use case. More...
 
class  Container
 
struct  ContainerHeaderData
 
class  ContainerIterator
 
class  ContainerSchema
 
class  ContainerUpdateTable
 
class  Database
 
class  DatabaseContainer
 
class  DatabaseImpl
 
class  DatabaseSession
 
class  DatabaseUtility
 
class  DatabaseUtilitySession
 
class  DataElement
 
class  DeleteBuffer
 
class  DeleteOperation
 
class  DependentClassReader
 
class  DependentClassWriter
 
class  EmptyMapping
 
class  Exception
 Base exception class for the object to relational access. More...
 
struct  Guid
 
class  Handle
 
class  Holder
 
class  IArrayHandler
 
class  IArrayIteratorHandler
 
class  IBlobStreamingService
 Interface for a Streaming Service. More...
 
class  IContainerHeaderTable
 
class  IDatabaseSchema
 
class  IDatabaseTable
 
class  IMainTable
 
class  IMappingSchema
 
class  INamingServiceTable
 
class  InlineCArrayReader
 
class  InlineCArrayStreamer
 
class  InlineCArrayStreamerBase
 
class  InlineCArrayUpdater
 
class  InlineCArrayWriter
 
class  InputRelationalData
 
class  InsertCache
 
class  InsertOperation
 
class  IPtrLoader
 
class  IReferenceHandler
 
class  IRelationalData
 
class  IRelationalMapping
 
class  IRelationalOperation
 
class  IRelationalReader
 
class  IRelationalStreamer
 
class  IRelationalUpdater
 
class  IRelationalWriter
 
class  ISequenceTable
 
class  IteratorBuffer
 
class  ITokenParser
 
class  ITokenWriter
 
class  IVectorLoader
 
class  MappingDatabase
 
class  MappingElement
 
class  MappingGenerator
 
struct  MappingRawData
 
struct  MappingRawElement
 
class  MappingRules
 
class  MappingToSchema
 
class  MappingTree
 
class  Monitoring
 
class  MultiIndexDataTrie
 
class  MultiRecordInsertOperation
 
class  MultiRecordSelectOperation
 
class  NamedRef
 
class  NamedReference
 
class  NamedReferenceStreamerBase
 
class  NamedRefMapping
 
class  NamedRefReader
 
class  NamedRefStreamer
 
class  NamedRefUpdater
 
class  NamedRefWriter
 
class  NamedSequence
 
struct  NullTypeHandler
 
class  Object
 
class  ObjectMapping
 
class  ObjectReader
 
class  ObjectStreamer
 
class  ObjectStreamerBase
 
class  ObjectUpdater
 
class  ObjectWriter
 
class  OId
 
class  OraClassVersionTable
 
class  OraContainerHeaderTable
 
class  OraDatabaseSchema
 
class  OraMainTable
 
class  OraMappingElementTable
 
class  OraMappingSchema
 
class  OraMappingVersionTable
 
class  OraNamingServiceTable
 
class  OraPtrMapping
 
class  OraPtrReadBuffer
 
class  OraPtrReader
 
class  OraPtrStreamer
 
class  OraPtrUpdater
 
class  OraPtrWriter
 
class  OraReferenceMapping
 
class  OraReferenceReader
 
class  OraReferenceStreamer
 
class  OraReferenceStreamerBase
 
class  OraReferenceUpdater
 
class  OraReferenceWriter
 
class  OraSequenceTable
 
class  PoolClassVersionTable
 
class  PoolContainerHeaderTable
 
class  PoolDatabaseSchema
 
class  PoolDbCache
 
struct  PoolDbCacheData
 
class  PoolMainTable
 
class  PoolMappingElementTable
 
class  PoolMappingSchema
 
class  PoolMappingVersionTable
 
class  PoolSequenceTable
 
class  PrimitiveMapping
 
class  PrimitiveReader
 
class  PrimitiveStreamer
 
class  PrimitiveStreamerBase
 
class  PrimitiveUpdater
 
class  PrimitiveWriter
 
class  Properties
 
class  Ptr
 
class  PVector
 
class  PVectorHandler
 
class  PVectorIteratorHandler
 
class  PVectorReader
 
class  PVectorStreamer
 
class  PVectorUpdater
 
class  PVectorWriter
 
class  Query
 
class  QueryableVector
 
class  QueryableVectorLoader
 
class  QueryableVectorReader
 
class  QueryableVectorStreamer
 
class  QueryableVectorUpdater
 
class  QueryableVectorWriter
 
class  QVQueryMaker
 
class  QVReader
 
class  Range
 
class  RangeIterator
 
class  RangeReverseIterator
 
class  ReadBuffer
 
class  Record
 
class  RecordSpec
 
struct  RecordSpecImpl
 
class  Reference
 
class  RelationalBuffer
 
class  RelationalDeleter
 
class  RelationalMappingFactory
 
class  RelationalPtrLoader
 
class  RelationalRefLoader
 
class  RelationalStreamerFactory
 
class  RflxDeleter
 
class  ScopedTransaction
 
class  Selection
 
class  SelectOperation
 
class  SequenceManager
 
class  Sequences
 
class  Serializer
 
class  SessionMonitoringData
 
struct  SharedLibraryName
 
class  SharedSession
 
struct  SimpleTypeHandler
 
class  SpecialSTLContainerHandler
 
class  STLContainerHandler
 
class  STLContainerIteratorHandler
 
class  STLContainerReader
 
class  STLContainerStreamer
 
class  STLContainerUpdater
 
class  STLContainerWriter
 
struct  TableInfo
 
class  TableRegister
 
class  Transaction
 
class  TransactionCache
 
struct  TransactionMonitoringData
 
struct  TypeHandler
 
union  U_Primitives
 
class  UniqueRef
 
class  UniqueReferenceMapping
 
class  UniqueRefReader
 
class  UniqueRefStreamer
 
class  UniqueRefUpdater
 
class  UniqueRefWriter
 
class  UpdateBuffer
 
class  UpdateOperation
 
class  Version
 
struct  VoidStarHandler
 
class  WriteBuffer
 

Enumerations

enum  ConditionType {
  Eq, Gt, Lt, Ge,
  Le
}
 
enum  SelectionItemType {
  EQ, NE, GT, GE,
  LT, LE
}
 

Functions

void addFromTableHierarchy (const std::string &tableName, std::map< std::string, std::set< std::string > > &tableList, std::vector< std::string > &orderedList)
 
void checkString (const std::string &s, int code, bool thro=true)
 
const char * conditionOfType (ConditionType condType)
 
void deleteArrayElements (MappingElement &mapping, int oid, int fromIndex, RelationalBuffer &buffer)
 
int existAttribute (const std::string &attributeName, const coral::AttributeList &data)
 
Container getContainerFromSession (const std::string &name, const edm::TypeWithDict &contType, DatabaseSession &session)
 
void getTableHierarchyFromMappingElement (const MappingElement &source, std::map< std::string, std::set< std::string > > &tableList)
 
std::string guidFromTime ()
 
bool isLoosePersistencyDataMember (const edm::MemberWithDict &dataMember)
 
bool isLoosePersistencyOnWriting (const edm::MemberWithDict &dataMember)
 
bool isMappedToBlob (const edm::MemberWithDict &dataMember)
 
std::string mappingTypeFromPool (const std::string &mappingType)
 
std::string namedRefNullLabel ()
 
std::string nameFromClass (const edm::TypeWithDict &contType)
 
std::string poolSchemaVersion ()
 
void processBaseClasses (MappingElement &mappingElement, const edm::TypeWithDict &objType, const std::string &scopeNameForSchema, TableRegister &tableRegister)
 
void processLeafElement (MappingElement &parentElement, const std::string &elementType, const std::string &typeName, const std::string &attributeName, const std::string &attributeNameForSchema, const std::string &scopeNameForSchema, TableRegister &tableRegister)
 
void processTableHierarchy (const MappingElement &element, std::set< std::string > &tableRegister, std::vector< std::pair< std::string, std::string > > &tableList)
 
void rebuildPoolMapping (const std::string &scope, const std::string &extraScope, const std::map< std::string, std::vector< MappingRawElement > > &elementsByScope, ora::MappingRawData &dest, int &counter)
 
void scanElement (const MappingElement &element, const TableInfo &currentTable, bool isDependency, std::vector< std::string > &tableHierarchy, std::map< std::string, TableInfo > &tableMap)
 
void setTableAccessPermission (coral::ITable &table, const std::string &principal, bool forWrite)
 
void throwException (const std::string &message, const std::string &methodName) __attribute__((noreturn))
 
void throwException (const std::string &message, const std::type_info &sourceType, const std::string &methodName) __attribute__((noreturn))
 
std::string uniqueRefNullLabel ()
 
static const std::string validChars ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-0123456789")
 
std::string variableNameFromPool (const std::string &variableName)
 

Detailed Description

TO BE REMOVED.

Enumeration Type Documentation

Enumerator
Eq 
Gt 
Lt 
Ge 
Le 

Definition at line 33 of file RelationalOperation.h.

Enumerator
EQ 
NE 
GT 
GE 
LT 
LE 

Definition at line 16 of file Selection.h.

16 { EQ, NE, GT, GE, LT, LE } SelectionItemType;
SelectionItemType
Definition: Selection.h:16

Function Documentation

void ora::addFromTableHierarchy ( const std::string &  tableName,
std::map< std::string, std::set< std::string > > &  tableList,
std::vector< std::string > &  orderedList 
)

Definition at line 35 of file ContainerSchema.cc.

void ora::checkString ( const std::string &  s,
int  code,
bool  thro = true 
)

Definition at line 203 of file MappingRules.cc.

const char* ora::conditionOfType ( ConditionType  condType)

Definition at line 27 of file RelationalOperation.cc.

void ora::deleteArrayElements ( MappingElement &  mapping,
int  oid,
int  fromIndex,
RelationalBuffer &  buffer 
)

Definition at line 8 of file ArrayCommonImpl.cc.

References ora::InputRelationalData::addWhereId(), ora::MappingElement::begin(), ora::MappingElement::columnNames(), ora::MappingElement::elementType(), ora::MappingElement::end(), Ge, ora::RelationalBuffer::newDelete(), AlCaHLTBitMon_QueryRunRegistry::string, ora::MappingElement::tableName(), and ora::InputRelationalData::whereData().

Referenced by ora::PVectorUpdater::update().

11  {
12  for ( MappingElement::iterator iMe = mapping.begin();
13  iMe != mapping.end(); ++iMe ) {
14  MappingElement::ElementType elementType = iMe->second.elementType();
15  // add the InlineCArray (or change the algorithm...
16  if ( elementType == MappingElement::Object ||
17  elementType == MappingElement::Array ||
18  elementType == MappingElement::OraArray ||
19  elementType == MappingElement::CArray ) {
20  deleteArrayElements( iMe->second, oid, fromIndex, buffer );
21  }
22  }
23  if ( mapping.elementType() == MappingElement::Object) return;
24 
25  std::string oidColumn = mapping.columnNames()[ 0 ];
26  std::string indexColumn = mapping.columnNames()[ 1 ];
27  DeleteOperation& deleteOperation = buffer.newDelete( mapping.tableName() );
28  deleteOperation.addWhereId( oidColumn );
29  deleteOperation.addWhereId( indexColumn, Ge );
30  coral::AttributeList::iterator condDataIter = deleteOperation.whereData().begin();
31  condDataIter->data<int>() = oid;
32  ++condDataIter;
33  condDataIter->data<int>() = fromIndex;
34 }
void deleteArrayElements(MappingElement &mapping, int oid, int fromIndex, RelationalBuffer &buffer)
int ora::existAttribute ( const std::string &  attributeName,
const coral::AttributeList &  data 
)

Definition at line 15 of file RelationalOperation.cc.

Container ora::getContainerFromSession ( const std::string &  name,
const edm::TypeWithDict contType,
DatabaseSession &  session 
)

Definition at line 41 of file Database.cc.

void ora::getTableHierarchyFromMappingElement ( const MappingElement &  source,
std::map< std::string, std::set< std::string > > &  tableList 
)

Definition at line 16 of file ContainerSchema.cc.

std::string ora::guidFromTime ( )

Definition at line 37 of file Guid.cc.

References ora::Guid::fromTime(), tmp, and ora::Guid::toString().

Referenced by ora::SessionMonitoringData::newTransaction(), and ora::Monitoring::startSession().

37  {
38  Guid tmp;
39  tmp.fromTime();
40  return tmp.toString();
41 }
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
ora::Guid Guid
Definition: Guid.h:26
bool ora::isLoosePersistencyDataMember ( const edm::MemberWithDict dataMember)

Definition at line 13 of file ObjectStreamer.cc.

bool ora::isLoosePersistencyOnWriting ( const edm::MemberWithDict dataMember)

Definition at line 541 of file RelationalMapping.cc.

bool ora::isMappedToBlob ( const edm::MemberWithDict dataMember)

Definition at line 545 of file RelationalMapping.cc.

std::string ora::mappingTypeFromPool ( const std::string &  mappingType)

Definition at line 731 of file PoolDatabaseSchema.cc.

std::string ora::namedRefNullLabel ( )

Definition at line 14 of file NamedRefStreamer.cc.

std::string ora::nameFromClass ( const edm::TypeWithDict contType)

Definition at line 37 of file Database.cc.

std::string ora::poolSchemaVersion ( )

Definition at line 9 of file IDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::Version::fromString().

9  {
10  static const std::string s_version("POOL");
11  return s_version;
12 }
void ora::processBaseClasses ( MappingElement &  mappingElement,
const edm::TypeWithDict objType,
const std::string &  scopeNameForSchema,
TableRegister &  tableRegister 
)

Definition at line 549 of file RelationalMapping.cc.

void ora::processLeafElement ( MappingElement &  parentElement,
const std::string &  elementType,
const std::string &  typeName,
const std::string &  attributeName,
const std::string &  attributeNameForSchema,
const std::string &  scopeNameForSchema,
TableRegister &  tableRegister 
)

Definition at line 144 of file RelationalMapping.cc.

void ora::processTableHierarchy ( const MappingElement &  element,
std::set< std::string > &  tableRegister,
std::vector< std::pair< std::string, std::string > > &  tableList 
)

Definition at line 277 of file MappingElement.cc.

void ora::rebuildPoolMapping ( const std::string &  scope,
const std::string &  extraScope,
const std::map< std::string, std::vector< MappingRawElement > > &  elementsByScope,
ora::MappingRawData dest,
int &  counter 
)

Definition at line 778 of file PoolDatabaseSchema.cc.

void ora::scanElement ( const MappingElement &  element,
const TableInfo &  currentTable,
bool  isDependency,
std::vector< std::string > &  tableHierarchy,
std::map< std::string, TableInfo > &  tableMap 
)

Definition at line 64 of file MappingTree.cc.

void ora::setTableAccessPermission ( coral::ITable &  table,
const std::string &  principal,
bool  forWrite 
)

Definition at line 14 of file IDatabaseSchema.cc.

Referenced by ora::IDatabaseTable::setAccessPermission().

16  {
17  table.privilegeManager().grantToUser( principal, coral::ITablePrivilegeManager::Select );
18  if(forWrite){
19  table.privilegeManager().grantToUser( principal, coral::ITablePrivilegeManager::Update );
20  table.privilegeManager().grantToUser( principal, coral::ITablePrivilegeManager::Insert );
21  table.privilegeManager().grantToUser( principal, coral::ITablePrivilegeManager::Delete );
22  }
23 }
void ora::throwException ( const std::string &  message,
const std::string &  methodName 
)
void ora::throwException ( const std::string &  message,
const std::type_info &  sourceType,
const std::string &  methodName 
)

Definition at line 15 of file Exception.cc.

References className(), ora::ClassUtils::demangledName(), Exception, and AlCaHLTBitMon_QueryRunRegistry::string.

17  {
19  throw Exception( message, className+"::"+methodName );
20  }
std::string demangledName(const std::type_info &typeInfo)
Definition: ClassUtils.cc:159
std::string className(const T &t)
Definition: ClassName.h:30
std::string ora::uniqueRefNullLabel ( )

Definition at line 184 of file UniqueRefStreamer.cc.

static const std::string ora::validChars ( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-0123456789"  )
static
std::string ora::variableNameFromPool ( const std::string &  variableName)

Definition at line 736 of file PoolDatabaseSchema.cc.