QtSparql  0.2.6
Public Types | Public Member Functions | List of all members
QSparqlQueryOptions Class Reference

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)
 
QSparqlQueryOptionsoperator= (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
 

Detailed Description

Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers.

See also
QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&)

Member Enumeration Documentation

◆ ExecutionMethod

Execution method of the query.

Enumerator
AsyncExec 

Query is to be executed asynchronously. This is the default value of QSparqlQueryOptions.

SyncExec 

Query is to be executed synchronously.

See also
setExecutionMethod, executionMethod

◆ Priority

Priority of the query.

Enumerator
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.

See also
setPriority, priority

Constructor & Destructor Documentation

◆ QSparqlQueryOptions()

QSparqlQueryOptions::QSparqlQueryOptions ( const QSparqlQueryOptions other)

Creates a QSparqlQueryOptions object based on other, copying all option values from it.

Member Function Documentation

◆ executionMethod()

QSparqlQueryOptions::ExecutionMethod QSparqlQueryOptions::executionMethod ( ) const

Returns the execution method of the query.

See also
setExecutionMethod

◆ isFireAndForget()

bool QSparqlQueryOptions::isFireAndForget ( ) const

Returns whether or not the query is to be executed in a "fire and forget" manner.

◆ isForwardOnly()

bool QSparqlQueryOptions::isForwardOnly ( ) const

Returns whether or not an asynchronous query will be executed in a forward only manner.

◆ operator=()

QSparqlQueryOptions & QSparqlQueryOptions::operator= ( const QSparqlQueryOptions other)

Assigns the QSparqlQueryOptions object. Copies all option values from other.

◆ priority()

QSparqlQueryOptions::Priority QSparqlQueryOptions::priority ( ) const

Returns the priority of the query.

See also
setPriority

◆ setExecutionMethod()

void QSparqlQueryOptions::setExecutionMethod ( ExecutionMethod  em)

Sets the exeuction method of the query. The default execution method is QSparqlQueryOptions::AsyncExec.

See also
executionMethod

◆ setFireAndForget()

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.

◆ setForwardOnly()

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.

See also
QTRACKER_DIRECT specific usage

◆ setPriority()

void QSparqlQueryOptions::setPriority ( Priority  p)

Sets the priority of the query. The default priority is QSparqlQueryOptions::NormalPriority.

See also
priority

The documentation for this class was generated from the following files: