Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers. More...
Public Types |
|
| enum | ExecutionMethod { AsyncExec = 1, SyncExec = 2 } |
| enum | Priority { HighPriority = -10, NormalPriority = 0, LowPriority = 10 } |
Public Member Functions |
|
| QSparqlQueryOptions (const QSparqlQueryOptions &other) | |
| QSparqlQueryOptions & | operator= (const QSparqlQueryOptions &other) |
| bool | operator== (const QSparqlQueryOptions &other) const |
| Returns true if the QSparqlQueryOptions objects are equal. |
|
| void | setExecutionMethod (ExecutionMethod em) |
| void | setForwardOnly (bool value) |
| bool | isForwardOnly () const |
| void | setFireAndForget (bool value) |
| bool | isFireAndForget () const |
| ExecutionMethod | executionMethod () const |
| void | setPriority (Priority p) |
| Priority | priority () const |
Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers.
Execution method of the query.
| AsyncExec |
Query is to be executed asynchronously. This is the default value of QSparqlQueryOptions. |
| SyncExec |
Query is to be executed synchronously.
|
Priority of the query.
| NormalPriority |
Query is to be executed with normal priority. This is the default value of QSparqlQueryOptions. |
| LowPriority |
Query is to be executed with low priority. Support for this option is driver-specfifc.
|
| QSparqlQueryOptions::QSparqlQueryOptions | ( | const QSparqlQueryOptions & | other | ) |
Creates a QSparqlQueryOptions object based on other, copying all option values from it.
| QSparqlQueryOptions::ExecutionMethod QSparqlQueryOptions::executionMethod | ( | ) | const |
Returns the execution method of the query.
| bool QSparqlQueryOptions::isFireAndForget | ( | ) | const |
Returns whether or not the query is to be executed in a "fire and forget" manner.
| bool QSparqlQueryOptions::isForwardOnly | ( | ) | const |
Returns whether or not an asynchronous query will be executed in a forward only manner.
| QSparqlQueryOptions & QSparqlQueryOptions::operator= | ( | const QSparqlQueryOptions & | other | ) |
Assigns the QSparqlQueryOptions object. Copies all option values from other.
| QSparqlQueryOptions::Priority QSparqlQueryOptions::priority | ( | ) | const |
Returns the priority of the query.
| void QSparqlQueryOptions::setExecutionMethod | ( | ExecutionMethod | em | ) |
Sets the exeuction method of the query. The default execution method is QSparqlQueryOptions::AsyncExec.
| void QSparqlQueryOptions::setFireAndForget | ( | bool | fireAndForget | ) |
Sets whether or not to execute an QSparqlQuery::InsertStatment or QSparqlQuery::DeleteStatement in a "fire and forget" manner, where there is no requirement to wait on the result to finish. When using this option, no QSparqlResult::finished() signal will be emitted, and QSparqlResult::isFinished() will return true after the query is executed.
Support for this option is currently limited to the QTRACKER driver, and setting this for other statement types will have no effect.
| void QSparqlQueryOptions::setForwardOnly | ( | bool | forward | ) |
Sets whether or not to execute asynchronous queries in a ForwardOnly manner. Support for this option is currently limited to the QTRACKER_DIRECT driver.
| void QSparqlQueryOptions::setPriority | ( | Priority | p | ) |
Sets the priority of the query. The default priority is QSparqlQueryOptions::NormalPriority.
| Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies). Commercial Qt/LGPL 2.1 with Nokia exception/GPL 3.0 |
MeeGo 1.2 Harmattan API
|





