UserSession is an implementation of the ISession interface.
More...
#include <UserSession.h>
UserSession is an implementation of the ISession interface.
Definition at line 29 of file UserSession.h.
◆ UserSession() [1/2]
| pool::PersistencySvc::UserSession::UserSession |
( |
IFileCatalog & | fileCatalog | ) |
|
|
explicit |
◆ ~UserSession()
| virtual pool::PersistencySvc::UserSession::~UserSession |
( |
| ) |
|
|
virtual |
◆ UserSession() [2/2]
| pool::PersistencySvc::UserSession::UserSession |
( |
const UserSession & | | ) |
|
|
delete |
◆ create()
◆ databaseHandle()
Creates and returns a new database handle object.
Implements pool::ISession.
◆ defaultConnectionPolicy()
◆ disconnectAll()
| virtual bool pool::PersistencySvc::UserSession::disconnectAll |
( |
| ) |
|
|
finaloverridevirtual |
Explicitly disconnects all the databases.
If a transaction is active, then all the changes since the last commit are aborted.
Implements pool::ISession.
◆ fileCatalog()
| virtual IFileCatalog & pool::PersistencySvc::UserSession::fileCatalog |
( |
| ) |
|
|
finaloverridevirtual |
◆ globalTransaction()
| ITransaction & pool::PersistencySvc::UserSession::globalTransaction |
( |
| ) |
|
Returns the global transaction object.
◆ microSessionManager()
| MicroSessionManager & pool::PersistencySvc::UserSession::microSessionManager |
( |
long | technology | ) |
|
Returns the technology given a technology type.
◆ operator=()
◆ readObject()
| void * pool::PersistencySvc::UserSession::readObject |
( |
const Token & | token, |
|
|
void * | object = 0 ) |
|
virtual |
Retrieves an object from persistent store and return with type information The handle to the reflection class is necessary to later delete the object.
The Guid of the transient class is assumed to be the classID of the token
- Parameters
-
| token | [IN] reference to the token for the object |
| object | [IN] pointer to memory for the object (created if 0) |
- Returns
- void* The data.
In case of failure zero is returned.
Implements pool::IPersistencySvc.
◆ registerForWrite()
| Token * pool::PersistencySvc::UserSession::registerForWrite |
( |
const Placement & | place, |
|
|
const void * | object, |
|
|
const RootType & | type ) |
|
virtual |
registerForWrite registers an object for writing to the persistent medium higher level interactions with the framework are necessary.
- Parameters
-
| place | [IN] the placement hint |
| object | [IN] pointer to transient object which will be written |
| type | [IN] reflection class description with the layout of transient object |
- Returns
- Token* the token address of the persistent object. I case of failure 0 is returned.
Implements pool::IPersistencySvc.
◆ registry()
◆ setDefaultConnectionPolicy()
Sets the default policy when databases are opened/connected.
Implements pool::ISession.
◆ setFileCatalog()
| void pool::PersistencySvc::UserSession::setFileCatalog |
( |
IFileCatalog & | catalog | ) |
|
Set the file catalog to be used.
◆ technologySpecificAttributes() [1/2]
Returns the object holding the technology specific attributes for a given technology domain.
Implements pool::ISession.
◆ technologySpecificAttributes() [2/2]
◆ transaction() [1/2]
| virtual const ITransaction & pool::PersistencySvc::UserSession::transaction |
( |
| ) |
const |
|
finaloverridevirtual |
◆ transaction() [2/2]
| virtual ITransaction & pool::PersistencySvc::UserSession::transaction |
( |
| ) |
|
|
finaloverridevirtual |
◆ m_catalog
◆ m_policy
◆ m_registry
◆ m_technologies
| std::map< long, std::unique_ptr<MicroSessionManager> > pool::PersistencySvc::UserSession::m_technologies |
|
private |
◆ m_transaction
The documentation for this class was generated from the following file: