1 #ifndef INCLUDE_ORA_ORADATABASESCHEMA_H
2 #define INCLUDE_ORA_ORADATABASESCHEMA_H
6 #include "CoralBase/AttributeList.h"
151 int dependencyIndex,
int containerId,
const std::string& mappingVersion );
170 bool getNamesForObject(
int contId,
int itemId, std::vector<std::string>& destination );
172 bool getAllNames( std::vector<std::string>& destination );
static std::string classIdColumn()
void sinchronize(const std::string &sequenceName, int lastValue)
bool testDropPermission()
OraMappingElementTable m_mappingElementTable
OraContainerHeaderTable m_containerHeaderTable
void setMappingVersion(const std::string &classId, int containerId, const std::string &mappingVersion)
OraDatabaseSchema(coral::ISchema &dbSchema)
virtual ~OraNamingServiceTable()
void setParameter(const std::string ¶mName, const std::string ¶mValue)
static std::string objectNameColumn()
bool getMapping(const std::string &version, MappingRawData &destination)
OraMappingSchema m_mappingSchema
static std::string sequenceNameColumn()
bool getContainerTableMap(std::map< std::string, int > &destination)
void insertClassVersion(const std::string &className, const std::string &classVersion, const std::string &classId, int dependencyIndex, int containerId, const std::string &mappingVersion)
static std::string variableNameColumn()
void removeMapping(const std::string &version)
IDatabaseTable & mappingElementTable()
static std::string mappingVersionColumn()
virtual ~OraClassVersionTable()
virtual ~OraMappingElementTable()
static std::string mappingVersionColumn()
bool getLastId(const std::string &sequenceName, int &lastId)
OraSequenceTable(coral::ISchema &dbSchema)
IDatabaseTable & classVersionTable()
static std::string tableName()
bool getNamesForObject(int contId, int itemId, std::vector< std::string > &destination)
static std::string tableName()
bool getClassVersionListForContainer(int containerId, std::map< std::string, std::string > &versionMap)
IMappingSchema & mappingSchema()
OraMappingElementTable(coral::ISchema &dbSchema)
IContainerHeaderTable & containerHeaderTable()
static std::string classNameColumn()
OraClassVersionTable(coral::ISchema &dbSchema)
static std::string tableNameColumn()
static std::string containerIdColumn()
std::string schemaVersion()
virtual ~OraMappingSchema()
bool getNamesForContainer(int contId, std::vector< std::string > &destination)
bool getParameters(std::map< std::string, std::string > &destination)
static std::string elementTypeColumn()
bool getClassVersionListForMappingVersion(const std::string &mappingVersion, std::set< std::string > &destination)
bool getVersionList(std::set< std::string > &destination)
OraMappingVersionTable m_mappingVersionTable
OraMappingVersionTable(coral::ISchema &dbSchema)
static std::string tableName()
static std::string variableParIndexColumn()
static std::string tableName()
INamingServiceTable & namingServiceTable()
static std::string sequenceValueColumn()
static std::string tableName()
ISequenceTable & sequenceTable()
void erase(const std::string &sequenceName)
void setAccessPermission(const std::string &principal, bool forWrite)
static std::string itemIdColumn()
virtual ~OraSequenceTable()
static std::string tableName()
static std::string variableTypeColumn()
static std::string parameterNameColumn()
virtual ~OraMappingVersionTable()
static bool existsMainTable(coral::ISchema &dbSchema)
static std::string classVersionColumn()
OraNamingServiceTable(coral::ISchema &dbSchema)
OraSequenceTable m_sequenceTable
bool getAllNames(std::vector< std::string > &destination)
bool eraseObjectName(const std::string &name)
bool getObjectByName(const std::string &name, std::pair< int, int > &destination)
static std::string mappingVersionColumn()
bool getMappingVersionListForContainer(int containerId, std::set< std::string > &destination, bool onlyDependency=false)
static std::string dependencyIndexColumn()
coral::ISchema & m_schema
coral::ISchema & m_schema
bool getMappingVersionListForTable(const std::string &tableName, std::set< std::string > &destination)
void create(const std::string &userSchemaVersion)
OraNamingServiceTable m_namingServiceTable
bool containerForMappingVersion(const std::string &mappingVersion, int &destination)
virtual ~OraDatabaseSchema()
static std::string scopeNameColumn()
OraMappingSchema(coral::ISchema &dbSchema)
static std::string columnNameColumn()
bool add(const std::string &sequenceName)
OraClassVersionTable m_classVersionTable
IDatabaseTable & mappingVersionTable()
void setObjectName(const std::string &name, int contId, int itemId)
static std::string elementIdColumn()
bool selectMappingVersion(const std::string &classId, int containerId, std::string &destination)
void storeMapping(const MappingRawData &mapping)
static std::string version()
std::string className(const T &t)
bool getDependentClassesInContainerMapping(int containerId, std::set< std::string > &destination)
static std::string parameterValueColumn()
OraMainTable(coral::ISchema &dbSchema)
static std::string containerIdColumn()