1 #ifndef INCLUDE_ORA_IDATABASESCHEMA_H
2 #define INCLUDE_ORA_IDATABASESCHEMA_H
28 virtual void create( ) = 0;
29 virtual void drop() = 0;
45 virtual bool getParameters( std::map<std::string,std::string>& destination ) = 0;
87 unsigned int numberObj );
100 virtual bool getContainerData( std::map<std::string, ContainerHeaderData>& destination ) = 0;
106 virtual void updateNumberOfObjects(
const std::map<int,unsigned int>& numberOfObjectsForContainerIds ) = 0;
113 virtual bool getVersionList( std::set<std::string>& destination ) = 0;
126 int dependencyIndex,
int containerId,
const std::string& mappingVersion )= 0;
139 virtual bool getNamesForObject(
int contId,
int itemId, std::vector<std::string>& destination ) = 0;
141 virtual bool getAllNames( std::vector<std::string>& destination ) = 0;
154 virtual bool exists() = 0;
156 virtual void drop() = 0;
static std::string versionParameterName()
virtual bool getAllNames(std::vector< std::string > &destination)=0
static std::string userSchemaVersionParameterName()
virtual bool getNamesForContainer(int contId, std::vector< std::string > &destination)=0
MappingRawElement & addElement(int elementId)
virtual ~IMappingSchema()
virtual ~ISequenceTable()
std::vector< std::string > columns
virtual std::string schemaVersion()=0
virtual std::string name()=0
virtual bool getMapping(const std::string &version, MappingRawData &destination)=0
virtual bool getVersionList(std::set< std::string > &destination)=0
virtual bool eraseAllNames()=0
virtual void sinchronize(const std::string &sequenceName, int lastValue)=0
virtual bool selectMappingVersion(const std::string &classId, int containerId, std::string &destination)=0
virtual bool getLastId(const std::string &sequenceName, int &lastId)=0
std::map< int, MappingRawElement > elements
void setTableAccessPermission(coral::ITable &table, const std::string &principal, bool forWrite)
virtual void setParameter(const std::string ¶mName, const std::string ¶mValue)=0
virtual void erase(const std::string &sequenceName)=0
virtual bool getObjectByName(const std::string &name, std::pair< int, int > &destination)=0
INamingServiceTable(coral::ISchema &schema)
virtual bool testDropPermission()=0
virtual void setMappingVersion(const std::string &classId, int containerId, const std::string &mappingVersion)=0
virtual IDatabaseTable & classVersionTable()=0
std::string poolSchemaVersion()
virtual bool getMappingVersionListForTable(const std::string &tableName, std::set< std::string > &destination)=0
virtual void setAccessPermission(const std::string &userName, bool forWrite)=0
virtual INamingServiceTable & namingServiceTable()=0
static IDatabaseSchema * createSchemaHandle(coral::ISchema &schema)
static std::string emptyScope()
virtual bool getContainerTableMap(std::map< std::string, int > &destination)=0
virtual IDatabaseTable & mappingVersionTable()=0
coral::ISchema & m_schema
virtual void storeMapping(const MappingRawData &data)=0
coral::ISchema & storageSchema()
virtual bool eraseObjectName(const std::string &name)=0
virtual bool add(const std::string &sequenceName)=0
IDatabaseSchema(coral::ISchema &schema)
IMainTable(coral::ISchema &schema)
virtual bool getClassVersionListForContainer(int containerId, std::map< std::string, std::string > &versionMap)=0
coral::ISchema & m_schema
virtual void create(const std::string &userSchemaVersion)=0
IDatabaseTable(coral::ISchema &schema)
coral::ISchema & schema()
virtual ~IDatabaseTable()
virtual IMappingSchema & mappingSchema()=0
virtual void insertClassVersion(const std::string &className, const std::string &classVersion, const std::string &classId, int dependencyIndex, int containerId, const std::string &mappingVersion)=0
ISequenceTable(coral::ISchema &schema)
char data[epos_bytes_allocation]
virtual bool getClassVersionListForMappingVersion(const std::string &mappingVersion, std::set< std::string > &destination)=0
virtual ~IDatabaseSchema()
virtual ISequenceTable & sequenceTable()=0
MappingRawElement & operator==(const MappingRawElement &rhs)
virtual bool containerForMappingVersion(const std::string &mappingVersion, int &destination)=0
virtual void setAccessPermission(const std::string &principal, bool forWrite)
virtual bool getParameters(std::map< std::string, std::string > &destination)=0
virtual IContainerHeaderTable & containerHeaderTable()=0
virtual bool getNamesForObject(int contId, int itemId, std::vector< std::string > &destination)=0
virtual void setObjectName(const std::string &name, int contId, int itemId)=0
virtual bool getDependentClassesInContainerMapping(int containerId, std::set< std::string > &destination)=0
virtual IDatabaseTable & mappingElementTable()=0
virtual void removeMapping(const std::string &version)=0
std::string className(const T &t)
virtual bool getMappingVersionListForContainer(int containerId, std::set< std::string > &destination, bool onlyDependency=false)=0
virtual IMainTable & mainTable()=0
virtual ~INamingServiceTable()