Debea Library 1.4.2

SharedSQLArchive Class Reference
[Public API]

SQLArchive that supports transactions on object level. More...

#include <sharedsqlarchive.h>

Inheritance diagram for SharedSQLArchive:
Collaboration diagram for SharedSQLArchive:

List of all members.


Public Member Functions

Transaction createTransaction (Transaction::creationType pType=Transaction::TRANS_USE_LAST)
 Creates Transaction object.
 SharedSQLArchive (Database *pDatabase=NULL)
 Constructor.
virtual ~SharedSQLArchive () throw ()
 Destructor.

Detailed Description

SQLArchive that supports transactions on object level.

Constructor & Destructor Documentation

SharedSQLArchive ( Database pDatabase = NULL  ) 

Constructor.

See also:
SQLArchive constructor for explanations
Parameters:
pDatabase Database object describing SQL database.


Member Function Documentation

Transaction createTransaction ( Transaction::creationType  pType = Transaction::TRANS_USE_LAST  ) 

Creates Transaction object.

When this object will be deleted all changes to database will be commited if there was no error or rolled back if sql error occurs on streams that belong to Transaction. For one instance of SQLArchive, first created Transaction object will open SQL transaction on single database connection. Last destructed transaction object will commit or rollback SQL transaction.

Parameters:
pType of transaction. See Transaction::creationType for explanations


The documentation for this class was generated from the following file:

Documentation
Quick start
Examples

API Documentation
Class hierarchy
Member index
API Reference
Store filters
Store table macros
Back

Generated by doxygen at Fri Oct 22 23:15:45 2010