OStream Class ReferenceOStream represents Object Stream to Archive.
More...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| virtual void | assignId (Storeable *pObject)=0 throw (Exception) |
| Assign object identifier. | |
| virtual void | begin ()=0 |
| Create transaction on stream. | |
| virtual void | commit ()=0 |
| Commit all changes made to stream from point where begin() was called. | |
| virtual void | open (const char *pRootTable=NULL)=0 |
| Prepare stream to put Storeable objects in it. | |
| OStream () | |
| Constructor. | |
| bool | put (Storeable *pObject) |
| Put object into stream and update all data from binded variables that are binded to rows in database that are affected by putting pObject. | |
| virtual void | rollback ()=0 |
| Cancel all changes to stream from point where begin() was called. | |
| virtual | ~OStream () |
| Destructor. | |
You can put any class that inherits from Storeable class into OStream.
|
|
Assign object identifier.
|
|
|
Create transaction on stream. Changes in database will be all commited only after calling close(). Implemented in CSVOStream, and SQLOStream. |
|
|
Commit all changes made to stream from point where begin() was called.
Implemented in CSVOStream, and SQLOStream. |
|
|
Prepare stream to put Storeable objects in it. If there is problem with object store then dba::DataException is thrown. If there is problem with database connection then dba::DatabaseExcption is thrown.
Implemented in CSVOStream, and SQLOStream. |
|
|
Put object into stream and update all data from binded variables that are binded to rows in database that are affected by putting pObject. Depending on state of pObject store, erase or update is called.
|
|
|
Cancel all changes to stream from point where begin() was called.
Implemented in CSVOStream, and SQLOStream. |
| Documentation |
|---|
| Quick start |
| Examples |
| Search |
| API Documentation |
|---|
| Class hierarchy |
| Member index |
| API Reference |
| Store filters |
| Store table macros |