1 #ifndef INCLUDE_ORA_DATABASESESSION_H
2 #define INCLUDE_ORA_DATABASESESSION_H
23 class MappingDatabase;
24 class IDatabaseSchema;
25 class TransactionCache;
26 class DatabaseContainer;
27 class DatabaseUtilitySession;
34 const std::map<int, unsigned int>&
table();
83 const std::map<int, Handle<DatabaseContainer> >&
containers();
85 void setObjectName(
const std::string& name,
int containerId,
int itemId );
91 bool getItemId(
const std::string& name,
OId& destination );
99 bool getNamesForObject(
int containerId,
int itemId, std::vector<std::string>& destination );
Handle< DatabaseContainer > containerHandle(const std::string &name)
const std::string & connectionString()
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)
boost::shared_ptr< void > fetchTypedObjectByName(const std::string &name, const Reflex::Type &asType)
const std::map< int, unsigned int > & table()
SharedSession m_dbSession
bool eraseObjectName(const std::string &name)
Configuration m_configuration
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()
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 Reflex::Type &type)
std::auto_ptr< NamedSequence > m_contIdSequence
Configuration & configuration()
void rollbackTransaction()
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)