|
Public Member Functions |
|
virtual void | close () |
| | Close stream.
|
| virtual void | destroy () |
| | Destroy stream.
|
| const ConvSpec & | getConversionSpecs () const |
| | Get conversion specification used by this stream.
|
|
virtual bool | getNext (Storeable *pObject) |
| | Get next object from stream.
|
|
const std::string & | getQuery () const |
| | Get SQL query created by stream after open().
|
| virtual void | open (Storeable &pObject, const char *pMainTable=NULL) |
| | Open stream for Storeable object.
|
| void | openFromQuery (Storeable &pObject, const char *pQuery, const char *pMainTable=NULL) |
| | Open stream using SQL SELECT query instead of store tables.
|
|
SQLIStream & | operator= (const SQLIStream &) |
| | Assigment opearator increases internal DbConnection usage.
|
| DbResult * | sendQuery (const char *const pQuery) const |
| | Send SQL query to database and get results.
|
| virtual void | setWhereId (int pId) |
| | Set WHERE to load only one object with given id.
|
| virtual void | setWherePart (const std::string &pWhere) |
| | Set additional SQL WHERE to query that is sent to database.
|
|
| SQLIStream (const SQLIStream &pStream) |
| | Copy constructor increases internal DbConnection usage.
|
|
virtual bool | updateVars () |
| | Update binded vars but don't fill object passed to open() Must be called after open() and this method does not advance to next row in result.
|