CMS 3D CMS Logo

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

#include <MappingRules.h>

Classes

struct  ToUpper
 

Static Public Member Functions

static std::string baseClassVersion ()
 
static std::string baseIdForClass (const std::string &className)
 
static std::string classId (const std::string &className, const std::string &classVersion)
 
static std::pair< bool,
std::string > 
classNameFromBaseId (const std::string &classId)
 
static std::string classVersionFromId (const std::string &classId)
 
static std::string classVersionPropertyNameInDictionary ()
 
static std::string columnNameForBlobMetadata (const std::string &dataColumnName)
 
static std::string columnNameForId ()
 
static std::string columnNameForNamedReference (const std::string &variableName, const std::string &scope)
 
static std::string columnNameForOID (const std::string &variableName, const std::string &scope, unsigned int index)
 
static std::string columnNameForPosition ()
 
static std::string columnNameForRefColumn ()
 
static std::string columnNameForRefId (const std::string &variableName, const std::string &scope)
 
static std::string columnNameForRefMetadata (const std::string &variableName, const std::string &scope)
 
static std::string columnNameForVariable (const std::string &variableName, const std::string &scope, bool forData=true)
 
static std::string defaultClassVersion (const std::string &className)
 
static std::string fkNameForIdentity (const std::string &tableName, int index=0)
 
static std::string formatName (const std::string &variableName, size_t maxLength)
 formatting for variable names to schema object names More...
 
static bool isLooseOnReading (const std::string &persistencyProperty)
 
static bool isLooseOnWriting (const std::string &persistencyProperty)
 
static bool isMappedToBlob (const std::string &mappingProperty)
 
static std::string mappingPropertyNameInDictionary ()
 class related parameters More...
 
static std::string newMappingVersionForContainer (const std::string &containerName, int iteration)
 mapping versions More...
 
static std::string newMappingVersionForDependentClass (const std::string &containerName, const std::string &className, int iteration)
 
static std::string newNameForArraySchemaObject (const std::string &initialName, unsigned int index, size_t maxLength)
 
static std::string newNameForDepSchemaObject (const std::string &initialName, unsigned int index, size_t maxLength)
 
static std::string newNameForSchemaObject (const std::string &initialName, unsigned int index, size_t maxLength, char indexTrailer=0)
 functions for new schema object name generation More...
 
static std::string persistencyPropertyNameInDictionary ()
 
static std::string scopedVariableForSchemaObjects (const std::string &variableName, const std::string &scope)
 
static std::string scopedVariableName (const std::string &variableName, const std::string &scope)
 variable name manipulation More...
 
static std::string sequenceNameForContainer (const std::string &containerName)
 
static std::string sequenceNameForContainerId ()
 sequence names More...
 
static std::string sequenceNameForDependentClass (const std::string &containerName, const std::string &className)
 
static std::string sequenceNameForMapping ()
 
static std::string tableNameForItem (const std::string &itemName)
 schema object naming More...
 
static std::string variableNameForArrayColumn (unsigned int arrayIndex)
 
static std::string variableNameForArrayColumn (const edm::TypeWithDict &array)
 
static std::string variableNameForArrayIndex (const std::string &arrayVariable, unsigned int index)
 
static std::string variableNameForContainerKey ()
 
static std::string variableNameForContainerValue ()
 

Static Public Attributes

static const size_t ClassNameLengthForSchema = 7
 size parameters for table creation More...
 
static const size_t MaxColumnNameLength = 30
 
static const size_t MaxColumnsForInlineCArray = 13
 
static const size_t MaxColumnsPerTable = 100
 
static const size_t MaxTableNameLength = 20
 

Static Private Member Functions

static std::string nameForSchema (const std::string &variableName)
 
static std::string nameFromTemplate (const std::string &templateClassName, size_t maxLength)
 
static std::string newMappingVersion (const std::string &itemName, int iteration, char versionTrailer)
 
static std::string shortNameByUpperCase (const std::string &className, size_t maxLength)
 
static std::string shortScopedName (const std::string &scopedClassName, size_t maxLength)
 

Detailed Description

Definition at line 15 of file MappingRules.h.

Member Function Documentation

std::string ora::MappingRules::baseClassVersion ( )
static

Definition at line 84 of file MappingRules.cc.

std::string ora::MappingRules::baseIdForClass ( const std::string &  className)
static

Definition at line 79 of file MappingRules.cc.

std::string ora::MappingRules::classId ( const std::string &  className,
const std::string &  classVersion 
)
static

Definition at line 64 of file MappingRules.cc.

std::pair< bool, std::string > ora::MappingRules::classNameFromBaseId ( const std::string &  classId)
static

Definition at line 90 of file MappingRules.cc.

std::string ora::MappingRules::classVersionFromId ( const std::string &  classId)
static

Definition at line 69 of file MappingRules.cc.

std::string ora::MappingRules::classVersionPropertyNameInDictionary ( )
static

Definition at line 109 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForBlobMetadata ( const std::string &  dataColumnName)
static

Definition at line 512 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForId ( )
static
std::string ora::MappingRules::columnNameForNamedReference ( const std::string &  variableName,
const std::string &  scope 
)
static

Definition at line 479 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForOID ( const std::string &  variableName,
const std::string &  scope,
unsigned int  index 
)
static

Definition at line 469 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForPosition ( )
static

Definition at line 506 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForRefColumn ( )
static

Definition at line 415 of file MappingRules.cc.

Referenced by ora::MappingGenerator::createNewDependentMapping().

std::string ora::MappingRules::columnNameForRefId ( const std::string &  variableName,
const std::string &  scope 
)
static

Definition at line 497 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForRefMetadata ( const std::string &  variableName,
const std::string &  scope 
)
static

Definition at line 488 of file MappingRules.cc.

std::string ora::MappingRules::columnNameForVariable ( const std::string &  variableName,
const std::string &  scope,
bool  forData = true 
)
static

Definition at line 421 of file MappingRules.cc.

std::string ora::MappingRules::defaultClassVersion ( const std::string &  className)
static

Definition at line 101 of file MappingRules.cc.

std::string ora::MappingRules::fkNameForIdentity ( const std::string &  tableName,
int  index = 0 
)
static

Definition at line 518 of file MappingRules.cc.

std::string ora::MappingRules::formatName ( const std::string &  variableName,
size_t  maxLength 
)
static

formatting for variable names to schema object names

Definition at line 526 of file MappingRules.cc.

Referenced by ora::MappingGenerator::createNewDependentMapping(), and ora::MappingGenerator::createNewMapping().

bool ora::MappingRules::isLooseOnReading ( const std::string &  persistencyProperty)
static

Definition at line 54 of file MappingRules.cc.

bool ora::MappingRules::isLooseOnWriting ( const std::string &  persistencyProperty)
static

Definition at line 59 of file MappingRules.cc.

bool ora::MappingRules::isMappedToBlob ( const std::string &  mappingProperty)
static

Definition at line 43 of file MappingRules.cc.

std::string ora::MappingRules::mappingPropertyNameInDictionary ( )
static

class related parameters

Definition at line 36 of file MappingRules.cc.

std::string ora::MappingRules::nameForSchema ( const std::string &  variableName)
staticprivate

Definition at line 252 of file MappingRules.cc.

std::string ora::MappingRules::nameFromTemplate ( const std::string &  templateClassName,
size_t  maxLength 
)
staticprivate

Definition at line 362 of file MappingRules.cc.

std::string ora::MappingRules::newMappingVersion ( const std::string &  itemName,
int  iteration,
char  versionTrailer 
)
staticprivate

Definition at line 117 of file MappingRules.cc.

std::string ora::MappingRules::newMappingVersionForContainer ( const std::string &  containerName,
int  iteration 
)
static

mapping versions

Definition at line 134 of file MappingRules.cc.

std::string ora::MappingRules::newMappingVersionForDependentClass ( const std::string &  containerName,
const std::string &  className,
int  iteration 
)
static

Definition at line 140 of file MappingRules.cc.

std::string ora::MappingRules::newNameForArraySchemaObject ( const std::string &  initialName,
unsigned int  index,
size_t  maxLength 
)
static

Definition at line 244 of file MappingRules.cc.

std::string ora::MappingRules::newNameForDepSchemaObject ( const std::string &  initialName,
unsigned int  index,
size_t  maxLength 
)
static

Definition at line 236 of file MappingRules.cc.

Referenced by ora::MappingGenerator::createNewDependentMapping().

std::string ora::MappingRules::newNameForSchemaObject ( const std::string &  initialName,
unsigned int  index,
size_t  maxLength,
char  indexTrailer = 0 
)
static

functions for new schema object name generation

Definition at line 216 of file MappingRules.cc.

std::string ora::MappingRules::persistencyPropertyNameInDictionary ( )
static

Definition at line 48 of file MappingRules.cc.

std::string ora::MappingRules::scopedVariableForSchemaObjects ( const std::string &  variableName,
const std::string &  scope 
)
static

Definition at line 191 of file MappingRules.cc.

std::string ora::MappingRules::scopedVariableName ( const std::string &  variableName,
const std::string &  scope 
)
static

variable name manipulation

Definition at line 149 of file MappingRules.cc.

std::string ora::MappingRules::sequenceNameForContainer ( const std::string &  containerName)
static

Definition at line 15 of file MappingRules.cc.

std::string ora::MappingRules::sequenceNameForContainerId ( )
static

sequence names

Definition at line 10 of file MappingRules.cc.

std::string ora::MappingRules::sequenceNameForDependentClass ( const std::string &  containerName,
const std::string &  className 
)
static

Definition at line 21 of file MappingRules.cc.

std::string ora::MappingRules::sequenceNameForMapping ( )
static

Definition at line 30 of file MappingRules.cc.

std::string ora::MappingRules::shortNameByUpperCase ( const std::string &  className,
size_t  maxLength 
)
staticprivate

Definition at line 265 of file MappingRules.cc.

std::string ora::MappingRules::shortScopedName ( const std::string &  scopedClassName,
size_t  maxLength 
)
staticprivate

Definition at line 311 of file MappingRules.cc.

std::string ora::MappingRules::tableNameForItem ( const std::string &  itemName)
static

schema object naming

Definition at line 403 of file MappingRules.cc.

Referenced by ora::MappingGenerator::createNewMapping().

std::string ora::MappingRules::variableNameForArrayColumn ( unsigned int  arrayIndex)
static

Definition at line 166 of file MappingRules.cc.

std::string ora::MappingRules::variableNameForArrayColumn ( const edm::TypeWithDict array)
static

Definition at line 173 of file MappingRules.cc.

std::string ora::MappingRules::variableNameForArrayIndex ( const std::string &  arrayVariable,
unsigned int  index 
)
static

Definition at line 158 of file MappingRules.cc.

std::string ora::MappingRules::variableNameForContainerKey ( )
static

Definition at line 185 of file MappingRules.cc.

std::string ora::MappingRules::variableNameForContainerValue ( )
static

Definition at line 180 of file MappingRules.cc.

Member Data Documentation

const size_t ora::MappingRules::ClassNameLengthForSchema = 7
static

size parameters for table creation

Definition at line 18 of file MappingRules.h.

Referenced by ora::MappingGenerator::createNewDependentMapping(), and ora::MappingGenerator::createNewMapping().

const size_t ora::MappingRules::MaxColumnNameLength = 30
static

Definition at line 20 of file MappingRules.h.

const size_t ora::MappingRules::MaxColumnsForInlineCArray = 13
static

Definition at line 22 of file MappingRules.h.

const size_t ora::MappingRules::MaxColumnsPerTable = 100
static
const size_t ora::MappingRules::MaxTableNameLength = 20
static

Definition at line 19 of file MappingRules.h.

Referenced by ora::MappingGenerator::createNewDependentMapping().