◆ QueryStatementManagement()
sptk::QueryStatementManagement::QueryStatementManagement |
( |
bool |
autoPrepare | ) |
|
|
inlineexplicit |
Constructor
- Parameters
-
autoPrepare | If true the auto-prepare statement |
◆ active()
bool sptk::QueryStatementManagement::active |
( |
| ) |
const |
|
inline |
Reports if the query is opened
◆ autoPrepare()
bool sptk::QueryStatementManagement::autoPrepare |
( |
| ) |
const |
|
inline |
Returns the value for auto-prepare flag.
If the flag is set the query would automatically call prepare() when needed.
◆ bulkMode()
bool sptk::QueryStatementManagement::bulkMode |
( |
| ) |
const |
Return bulk mode flag
- Returns
- true for bulk mode
◆ closeQuery()
void sptk::QueryStatementManagement::closeQuery |
( |
bool |
releaseStatement = false | ) |
|
|
protected |
Closes query by closing the statement.
If the statement isn't released it may be re-used later.
- Parameters
-
releaseStatement | True if we need to release the query's ODBC statement |
◆ closeStmt()
void sptk::QueryStatementManagement::closeStmt |
( |
bool |
freeStatement = false | ) |
|
|
protected |
Closes a statement. Prepared statement stay prepared but closed.
- Parameters
-
freeStatement | If true then statement is freed. |
◆ connect()
Connects a query to a database
If the query was connected to another database, releases all the allocated resources in it.
◆ database() [1/2]
Returns the database the query is connected to
◆ database() [2/2]
Connects the query to the database different database.
◆ disconnect()
void sptk::QueryStatementManagement::disconnect |
( |
| ) |
|
Disconnects query from the database and releases all the allocated resourses.
◆ eof()
bool sptk::QueryStatementManagement::eof |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns true if there is no more rows in the recordset
Reimplemented from sptk::DataSource.
◆ messages()
Strings & sptk::QueryStatementManagement::messages |
( |
| ) |
|
|
inlineprotected |
Optional diagnostic messages populated after exec() or open()
◆ notImplemented()
void sptk::QueryStatementManagement::notImplemented |
( |
const String & |
functionName | ) |
const |
|
protected |
Internal function to throw 'Not implemented' exception
◆ prepared()
bool sptk::QueryStatementManagement::prepared |
( |
| ) |
const |
|
inline |
True if the statement is prepared
◆ setBulkMode()
void sptk::QueryStatementManagement::setBulkMode |
( |
bool |
_bulkMode | ) |
|
|
protected |
Set bulk mode flag
- Parameters
-
_bulkMode | True for bulk mode |
◆ setDatabase()
◆ setStatement()
void sptk::QueryStatementManagement::setStatement |
( |
StmtHandle |
statement | ) |
|
|
inlineprotected |
Returns query statement handle
◆ statement()
StmtHandle sptk::QueryStatementManagement::statement |
( |
| ) |
const |
|
inline |
Returns query statement handle
The documentation for this class was generated from the following file: