1 #ifndef INCLUDE_ORA_POOLDATABASESCHEMA_H
2 #define INCLUDE_ORA_POOLDATABASESCHEMA_H
6 #include "CoralBase/AttributeList.h"
14 const std::string& mappingVersion,
unsigned int nobjWritten );
37 void remove(
int id );
38 std::map<std::string,PoolDbCacheData* >&
sequences();
194 int dependencyIndex,
int containerId,
const std::string& mappingVersion );
214 bool getNamesForObject(
int contId,
int itemId, std::vector<std::string>& destination );
216 bool getAllNames( std::vector<std::string>& destination );
IDatabaseTable & mappingElementTable()
IMappingSchema & mappingSchema()
coral::ISchema & m_schema
static std::string tableName()
static std::string tableNameColumn()
static std::string tableName()
static std::string variableTypeColumn()
PoolDbCacheData m_mappingData
PoolMappingSchema m_mappingSchema
std::map< std::string, PoolDbCacheData * > & sequences()
PoolSequenceTable(coral::ISchema &dbSchema)
PoolDbCacheData m_databaseData
static std::string tableName()
static std::string columnNameColumn()
PoolClassVersionTable m_classVersionTable
PoolMappingSchema(coral::ISchema &dbSchema)
int idByName(const std::string &name)
static std::string mappingVersionColumn()
void init(PoolDbCache &dbCache)
std::map< std::string, PoolDbCacheData * > m_sequences
void setAccessPermission(const std::string &principal, bool forWrite)
INamingServiceTable & namingServiceTable()
void removeMapping(const std::string &version)
PoolMappingElementTable m_mappingElementTable
void sinchronize(const std::string &sequenceName, int lastValue)
bool getClassVersionListForContainer(int containerId, std::map< std::string, std::string > &versionMap)
PoolMainTable m_mainTable
void add(int id, const PoolDbCacheData &data)
PoolSequenceTable m_sequenceTable
bool getContainerTableMap(std::map< std::string, int > &destination)
static std::string variableParIndexColumn()
CondMetadataTable m_metadataTable
static std::string emptyScope()
std::map< int, PoolDbCacheData > m_idMap
static std::string classVersionColumn()
IDatabaseTable & mappingVersionTable()
void create(const std::string &userSchemaVersion)
bool selectMappingVersion(const std::string &classId, int containerId, std::string &destination)
PoolMappingElementTable(coral::ISchema &dbSchema)
void setMappingVersion(const std::string &classId, int containerId, const std::string &mappingVersion)
static std::string elementIdColumn()
virtual ~PoolMappingVersionTable()
bool getMappingVersionListForContainer(int containerId, std::set< std::string > &destination, bool onlyDependency=false)
bool getMapping(const std::string &version, MappingRawData &destination)
void setParameter(const std::string ¶mName, const std::string ¶mValue)
bool containerForMappingVersion(const std::string &mappingVersion, int &destination)
bool testDropPermission()
static bool existsMainTable(coral::ISchema &dbSchema)
static std::string version()
PoolDbCacheData & find(int id)
bool getParameters(std::map< std::string, std::string > &destination)
PoolClassVersionTable(coral::ISchema &dbSchema)
bool getLastId(const std::string &sequenceName, int &lastId)
static std::string sequenceNameColumn()
PoolDbCacheData & operator=(const PoolDbCacheData &rhs)
static std::string sequenceValueColumn()
virtual ~PoolMappingSchema()
IContainerHeaderTable & containerHeaderTable()
void init(PoolDbCache &dbCache)
PoolMappingVersionTable(coral::ISchema &dbSchema)
virtual ~PoolSequenceTable()
bool getClassVersionListForMappingVersion(const std::string &mappingVersion, std::set< std::string > &destination)
const std::string & nameById(int id)
PoolDatabaseSchema(coral::ISchema &dbSchema)
static std::string mappingVersionColumn()
PoolMainTable(coral::ISchema &dbSchema)
PoolMappingVersionTable m_mappingVersionTable
static std::string containerNameColumn()
std::string m_mappingVersion
char data[epos_bytes_allocation]
static std::string scopeNameColumn()
PoolContainerHeaderTable m_containerHeaderTable
void storeMapping(const MappingRawData &mapping)
coral::ISchema & m_schema
static std::string variableNameColumn()
bool getMappingVersionListForTable(const std::string &tableName, std::set< std::string > &destination)
void insertClassVersion(const std::string &className, const std::string &classVersion, const std::string &classId, int dependencyIndex, int containerId, const std::string &mappingVersion)
bool getVersionList(std::set< std::string > &destination)
static std::string tableName()
bool add(const std::string &sequenceName)
static std::string mappingVersionColumn()
static std::string containerNameColumn()
virtual ~PoolDatabaseSchema()
IDatabaseTable & classVersionTable()
virtual ~PoolClassVersionTable()
virtual ~PoolMappingElementTable()
ISequenceTable & sequenceTable()
static std::string elementTypeColumn()
std::string className(const T &t)
std::string schemaVersion()
bool getDependentClassesInContainerMapping(int containerId, std::set< std::string > &destination)
void erase(const std::string &sequenceName)
static std::string tableName()