1 #ifndef INCLUDE_ORA_DATABASESESSION_H
2 #define INCLUDE_ORA_DATABASESESSION_H
26 class MappingDatabase;
27 class IDatabaseSchema;
28 class TransactionCache;
29 class DatabaseContainer;
30 class DatabaseUtilitySession;
31 class SessionMonitoringData;
38 void remove(
int contId );
39 const std::map<int, unsigned int>&
table();
96 const std::map<int, Handle<DatabaseContainer> >&
containers();
112 bool getNamesForObject(
int containerId,
int itemId, std::vector<std::string>& destination );
Handle< DatabaseContainer > containerHandle(const std::string &name)
const std::string & connectionString()
SessionMonitoringData * m_monitoring
Object fetchObjectByName(const std::string &name)
bool listObjectNames(std::vector< std::string > &destination)
std::auto_ptr< TransactionCache > m_transactionCache
void takeNote(int contId, unsigned int size)
SharedSession & storageAccessSession()
boost::shared_ptr< ConnectionPool > & connectionPool()
bool getItemId(const std::string &name, OId &destination)
void dropContainer(const std::string &name)
const std::map< int, unsigned int > & table()
SharedSession m_dbSession
std::string schemaVersion(bool userSchema)
bool eraseObjectName(const std::string &name)
Configuration m_configuration
void setAccessPermission(const std::string &principal, bool forWrite)
bool testDropPermission()
bool connect(const std::string &connectionString, bool readOnly)
IDatabaseSchema & schema()
bool getNamesForContainer(int containerId, std::vector< std::string > &destination)
Handle< DatabaseUtilitySession > utility()
std::auto_ptr< IDatabaseSchema > m_schema
ContainerUpdateTable & containerUpdateTable()
ContainerUpdateTable m_containerUpdateTable
std::string m_connectionString
void setObjectName(const std::string &name, int containerId, int itemId)
bool getNamesForObject(int containerId, int itemId, std::vector< std::string > &destination)
const std::map< int, Handle< DatabaseContainer > > & containers()
void startTransaction(bool readOnly)
virtual ~DatabaseSession()
NamedSequence & containerIdSequence()
MappingDatabase & mappingDatabase()
void create(const std::string &userSchemaVersion=std::string(""))
std::map< int, unsigned int > m_table
bool isTransactionActive(bool checkIfReadOnly=false)
std::auto_ptr< MappingDatabase > m_mappingDb
Handle< DatabaseContainer > createContainer(const std::string &containerName, const edm::TypeWithDict &type)
std::auto_ptr< NamedSequence > m_contIdSequence
Configuration & configuration()
void rollbackTransaction()
boost::shared_ptr< void > fetchTypedObjectByName(const std::string &name, const edm::TypeWithDict &asType)
tuple size
Write out results.
std::string className(const T &t)
boost::shared_ptr< ConnectionPool > m_connectionPool
Handle< ora::DatabaseContainer > addContainer(const std::string &containerName, const std::string &className)