SQLOStream Class ReferenceOStream implementation for SQL based archives.
More...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| virtual void | begin () |
| Create transaction on stream. | |
| virtual void | close () |
| Close stream. | |
| virtual void | commit () |
| Commit all changes made to stream from point where begin() was called. | |
| virtual void | destroy () |
| Destroy stream. | |
| const ConvSpec & | getConversionSpecs () const |
| Get conversion specification used by this stream. | |
| virtual bool | isOpen () const |
| Check if stream is open. | |
| virtual void | open (const char *pMainTable=NULL) |
| Open stream and prepare it to object store. | |
| SQLOStream & | operator= (const SQLOStream &) |
| Assigment opearator increases internal DbConnection usage. | |
| virtual void | rollback () |
| Cancel all changes to stream from point where begin() was called. | |
| int | sendUpdate (const char *const pQuery) |
| Send SQL update query to database and get results. | |
| SQLOStream (const SQLOStream &pStream) | |
| Copy constructor increases internal DbConnection usage. | |
Protected Attributes | |
| DbConnection * | mConn |
| used connection | |
| SQLIdFetcher * | mFetcher |
| object responsible for assigning id for newly created Storeable | |
|
|
Create transaction on stream. Changes in database will be all commited only after calling close(). Implements OStream. |
|
|
Commit all changes made to stream from point where begin() was called.
Implements OStream. |
|
|
Destroy stream. After call to this function stream is destroyed and cannot be opened any more. It usually means that connection to database that this stream represents is closed after this method was called Implements Stream. |
|
|
Get conversion specification used by this stream.
|
|
|
Check if stream is open.
Reimplemented from Stream. |
|
|
Open stream and prepare it to object store.
Implements OStream. |
|
|
Cancel all changes to stream from point where begin() was called.
Implements OStream. |
|
|
Send SQL update query to database and get results.
|
| Documentation |
|---|
| Quick start |
| Examples |
| Search |
| API Documentation |
|---|
| Class hierarchy |
| Member index |
| API Reference |
| Store filters |
| Store table macros |