<class name="QSqlResult" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSqlResult.html#QSqlResult(com.trolltech.qt.sql.QSqlDriver)&quot;&gt;&lt;tt&gt;QSqlResult&lt;/tt&gt;&lt;/a&gt; class provides an abstract interface for accessing data from specific SQL databases.&lt;/p&gt;
&lt;p&gt;Normally, you would use &lt;a href=&quot;QSqlQuery.html&quot;&gt;&lt;tt&gt;QSqlQuery&lt;/tt&gt;&lt;/a&gt; instead of &lt;a href=&quot;QSqlResult.html#QSqlResult(com.trolltech.qt.sql.QSqlDriver)&quot;&gt;&lt;tt&gt;QSqlResult&lt;/tt&gt;&lt;/a&gt;, since &lt;a href=&quot;QSqlQuery.html&quot;&gt;&lt;tt&gt;QSqlQuery&lt;/tt&gt;&lt;/a&gt; provides a generic wrapper for database-specific implementations of &lt;a href=&quot;QSqlResult.html#QSqlResult(com.trolltech.qt.sql.QSqlDriver)&quot;&gt;&lt;tt&gt;QSqlResult&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are implementing your own SQL driver (by subclassing &lt;a href=&quot;QSqlDriver.html&quot;&gt;&lt;tt&gt;QSqlDriver&lt;/tt&gt;&lt;/a&gt;), you will need to provide your own &lt;a href=&quot;QSqlResult.html#QSqlResult(com.trolltech.qt.sql.QSqlDriver)&quot;&gt;&lt;tt&gt;QSqlResult&lt;/tt&gt;&lt;/a&gt; subclass that implements all the pure virtual functions and other virtual functions that you need.&lt;/p&gt;

@see &lt;a href=&quot;QSqlDriver.html&quot;&gt;&lt;tt&gt;QSqlDriver&lt;/tt&gt;&lt;/a&gt; */">
    <method name="protected QSqlResult(com.trolltech.qt.sql.QSqlDriver db)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QSqlResult.html#QSqlResult(com.trolltech.qt.sql.QSqlDriver)&quot;&gt;&lt;tt&gt;QSqlResult&lt;/tt&gt;&lt;/a&gt; using database driver &lt;tt&gt;db&lt;/tt&gt;. The object is initialized to an inactive state.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#driver()&quot;&gt;&lt;tt&gt;driver&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void addBindValue(java.lang.Object val, com.trolltech.qt.sql.QSql.ParamType type)" doc="/**
&lt;p&gt;Binds the value &lt;tt&gt;val&lt;/tt&gt; of parameter type &lt;tt&gt;type&lt;/tt&gt; to the next available position in the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#bindValue(java.lang.String, java.lang.Object, com.trolltech.qt.sql.QSql.ParamType)&quot;&gt;&lt;tt&gt;bindValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final int at()" doc="/**
&lt;p&gt;Returns the current (zero-based) row position of the result. May return the special values QSql::BeforeFirstRow or QSql::AfterLastRow.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.sql.QSql.ParamType bindValueType(int pos)" doc="/**
&lt;p&gt;Returns the parameter type for the value bound at position &lt;tt&gt;pos&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#boundValue(java.lang.String)&quot;&gt;&lt;tt&gt;boundValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.sql.QSql.ParamType bindValueType(java.lang.String placeholder)" doc="/**
&lt;p&gt;Returns the parameter type for the value bound with the given &lt;tt&gt;placeholder&lt;/tt&gt; name.&lt;/p&gt;
 */"/>
    <method name="protected final com.trolltech.qt.sql.QSqlResult.BindingSyntax bindingSyntax()" doc="/**
&lt;p&gt;Returns the binding syntax used by prepared queries.&lt;/p&gt;
 */"/>
    <method name="protected final java.lang.Object boundValue(int pos)" doc="/**
&lt;p&gt;Returns the value bound at position &lt;tt&gt;pos&lt;/tt&gt; in the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#bindValue(java.lang.String, java.lang.Object, com.trolltech.qt.sql.QSql.ParamType)&quot;&gt;&lt;tt&gt;bindValue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#boundValues()&quot;&gt;&lt;tt&gt;boundValues&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final java.lang.Object boundValue(java.lang.String placeholder)" doc="/**
&lt;p&gt;Returns the value bound by the given &lt;tt&gt;placeholder&lt;/tt&gt; name in the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#bindValueType(java.lang.String)&quot;&gt;&lt;tt&gt;bindValueType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final int boundValueCount()" doc="/**
&lt;p&gt;Returns the number of bound values in the result.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#boundValues()&quot;&gt;&lt;tt&gt;boundValues&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final java.lang.String boundValueName(int pos)" doc="/**
&lt;p&gt;Returns the name of the bound value at position &lt;tt&gt;pos&lt;/tt&gt; in the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#boundValue(java.lang.String)&quot;&gt;&lt;tt&gt;boundValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final java.util.List&lt;java.lang.Object&gt; boundValues()" doc="/**
&lt;p&gt;Returns a vector of the result's bound values for the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#boundValueCount()&quot;&gt;&lt;tt&gt;boundValueCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void clear()" doc="/**
&lt;p&gt;Clears the entire result set and releases any associated resources.&lt;/p&gt;
 */"/>
    <method name="protected final void detachFromResultSet()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="protected final com.trolltech.qt.sql.QSqlDriver driver()" doc="/**
&lt;p&gt;Returns the driver associated with the result. This is the object that was passed to the constructor.&lt;/p&gt;
 */"/>
    <method name="protected final boolean execBatch(boolean arrayBind)" doc="/**
&lt;p&gt;&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSqlDriver::hasFeature&lt;/tt&gt; */"/>
    <method name="protected final boolean execBatch()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlResult.html#execBatch(boolean)&quot;&gt;&lt;tt&gt;execBatch&lt;/tt&gt;&lt;/a&gt;(false). */"/>
    <method name="protected final java.lang.String executedQuery()" doc="/**
&lt;p&gt;Returns the query that was actually executed. This may differ from the query that was passed, for example if bound values were used with a prepared query and the underlying database doesn't support prepared queries.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#setQuery(java.lang.String)&quot;&gt;&lt;tt&gt;setQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final boolean hasOutValues()" doc="/**
&lt;p&gt;Returns true if at least one of the query's bound values is a &lt;tt&gt;QSql::Out&lt;/tt&gt; or a QSql::InOut; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#bindValueType(java.lang.String)&quot;&gt;&lt;tt&gt;bindValueType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final boolean isActive()" doc="/**
&lt;p&gt;Returns true if the result has records to be retrieved; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="protected final boolean isForwardOnly()" doc="/**
&lt;p&gt;Returns true if you can only scroll forward through the result set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setForwardOnly(boolean)&quot;&gt;&lt;tt&gt;setForwardOnly&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final boolean isSelect()" doc="/**
&lt;p&gt;Returns true if the current result is from a &lt;tt&gt;SELECT&lt;/tt&gt; statement; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setSelect(boolean)&quot;&gt;&lt;tt&gt;setSelect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the result is positioned on a valid record (that is, the result is not positioned before the first or after the last record); otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#at()&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.sql.QSqlError lastError()" doc="/**
&lt;p&gt;Returns the last error associated with the result.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setLastError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;setLastError&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final java.lang.String lastQuery()" doc="/**
&lt;p&gt;Returns the current SQL query text, or an empty string if there isn't one.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setQuery(java.lang.String)&quot;&gt;&lt;tt&gt;setQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void setNumericalPrecisionPolicy(com.trolltech.qt.sql.QSql.NumericalPrecisionPolicy policy)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="protected void bindValue(int pos, java.lang.Object val, com.trolltech.qt.sql.QSql.ParamType type)" doc="/**
&lt;p&gt;Binds the value &lt;tt&gt;val&lt;/tt&gt; of parameter type &lt;tt&gt;type&lt;/tt&gt; to position &lt;tt&gt;pos&lt;/tt&gt; in the current record (row).&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#addBindValue(java.lang.Object, com.trolltech.qt.sql.QSql.ParamType)&quot;&gt;&lt;tt&gt;addBindValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void bindValue(java.lang.String placeholder, java.lang.Object val, com.trolltech.qt.sql.QSql.ParamType type)" doc="/**
&lt;p&gt;Binds the value &lt;tt&gt;val&lt;/tt&gt; of parameter type &lt;tt&gt;type&lt;/tt&gt; to the &lt;tt&gt;placeholder&lt;/tt&gt; name in the current record (row).&lt;/p&gt;
&lt;p&gt;Note that binding an undefined placeholder will result in undefined behavior.&lt;/p&gt;
 */"/>
    <method name="protected abstract java.lang.Object data(int i)" doc="/**
&lt;p&gt;Returns the data for field &lt;tt&gt;i&lt;/tt&gt; in the current row as a &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt;. This function is only called if the result is in an active state and is positioned on a valid record and &lt;tt&gt;i&lt;/tt&gt; is non-negative. Derived classes must reimplement this function and return the value of field &lt;tt&gt;i&lt;/tt&gt;, or &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; if it cannot be determined.&lt;/p&gt;
 */"/>
    <method name="protected boolean exec()" doc="/**
&lt;p&gt;Executes the query, returning true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#prepare(java.lang.String)&quot;&gt;&lt;tt&gt;prepare&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected abstract boolean fetch(int i)" doc="/**
&lt;p&gt;Positions the result to an arbitrary (zero-based) row &lt;tt&gt;i&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the row &lt;tt&gt;i&lt;/tt&gt;, and call &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt; with an appropriate value. Return true to indicate success, or false to signify failure.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchFirst()&quot;&gt;&lt;tt&gt;fetchFirst&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchLast()&quot;&gt;&lt;tt&gt;fetchLast&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchNext()&quot;&gt;&lt;tt&gt;fetchNext&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchPrevious()&quot;&gt;&lt;tt&gt;fetchPrevious&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected abstract boolean fetchFirst()" doc="/**
&lt;p&gt;Positions the result to the first record (row 0) in the result.&lt;/p&gt;
&lt;p&gt;This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the first record, and call &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt; with an appropriate value. Return true to indicate success, or false to signify failure.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#fetch(int)&quot;&gt;&lt;tt&gt;fetch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchLast()&quot;&gt;&lt;tt&gt;fetchLast&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected abstract boolean fetchLast()" doc="/**
&lt;p&gt;Positions the result to the last record (last row) in the result.&lt;/p&gt;
&lt;p&gt;This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the last record, and call &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt; with an appropriate value. Return true to indicate success, or false to signify failure.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#fetch(int)&quot;&gt;&lt;tt&gt;fetch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchFirst()&quot;&gt;&lt;tt&gt;fetchFirst&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean fetchNext()" doc="/**
&lt;p&gt;Positions the result to the next available record (row) in the result.&lt;/p&gt;
&lt;p&gt;This function is only called if the result is in an active state. The default implementation calls &lt;a href=&quot;QSqlResult.html#fetch(int)&quot;&gt;&lt;tt&gt;fetch&lt;/tt&gt;&lt;/a&gt; with the next index. Derived classes can reimplement this function and position the result to the next record in some other way, and call &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt; with an appropriate value. Return true to indicate success, or false to signify failure.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#fetch(int)&quot;&gt;&lt;tt&gt;fetch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchPrevious()&quot;&gt;&lt;tt&gt;fetchPrevious&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean fetchPrevious()" doc="/**
&lt;p&gt;Positions the result to the previous record (row) in the result.&lt;/p&gt;
&lt;p&gt;This function is only called if the result is in an active state. The default implementation calls &lt;a href=&quot;QSqlResult.html#fetch(int)&quot;&gt;&lt;tt&gt;fetch&lt;/tt&gt;&lt;/a&gt; with the previous index. Derived classes can reimplement this function and position the result to the next record in some other way, and call &lt;a href=&quot;QSqlResult.html#setAt(int)&quot;&gt;&lt;tt&gt;setAt&lt;/tt&gt;&lt;/a&gt; with an appropriate value. Return true to indicate success, or false to signify failure.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object handle()" doc="/**
&lt;p&gt;Returns the low-level database handle for this result set wrapped in a &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; or an invalid &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; if there is no handle.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Use this with uttermost care and only if you know what you're doing.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The handle returned here can become a stale pointer if the result is modified (for example, if you clear it).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The handle can be NULL if the result was not executed yet.&lt;/p&gt;
&lt;p&gt;The handle returned here is database-dependent, you should query the type name of the variant before accessing it.&lt;/p&gt;
&lt;p&gt;This example retrieves the handle for a sqlite result:&lt;/p&gt;
&lt;pre&gt;    QSqlQuery query = ...
    QVariant v = query.result()-&amp;gt;handle();
    if (v.isValid() &amp;amp;&amp;amp; qstrcmp(v.typeName(), &amp;quot;sqlite3_stmt*&amp;quot;)) {
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; v.data() returns a pointer to the handle
        sqlite3_stmt *handle = *static_cast&amp;lt;sqlite3_stmt **&amp;gt;(v.data());
        if (handle != 0) { &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; check that it is not NULL
            ...
        }
    }&lt;/pre&gt;
&lt;p&gt;This snippet returns the handle for PostgreSQL or MySQL:&lt;/p&gt;
&lt;pre&gt;    if (v.typeName() == &amp;quot;PGresult*&amp;quot;) {
        PGresult *handle = *static_cast&amp;lt;PGresult **&amp;gt;(v.data());
        if (handle != 0) ...
    }

    if (v.typeName() == &amp;quot;MYSQL_STMT*&amp;quot;) {
        MYSQL_STMT *handle = *static_cast&amp;lt;MYSQL_STMT **&amp;gt;(v.data());
        if (handle != 0) ...
    }&lt;/pre&gt;

@see &lt;tt&gt;QSqlDriver::handle&lt;/tt&gt; */"/>
    <method name="protected abstract boolean isNull(int i)" doc="/**
&lt;p&gt;Returns true if the field at position &lt;tt&gt;i&lt;/tt&gt; in the current row is null; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="protected java.lang.Object lastInsertId()" doc="/**
&lt;p&gt;Returns the object ID of the most recent inserted row if the database supports it. An invalid &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; will be returned if the query did not insert any value or if the database does not report the id back. If more than one row was touched by the insert, the behavior is undefined.&lt;/p&gt;
&lt;p&gt;Note that for Oracle databases the row's ROWID will be returned, while for MySQL databases the row's auto-increment field will be returned.&lt;/p&gt;

@see &lt;tt&gt;QSqlDriver::hasFeature&lt;/tt&gt; */"/>
    <method name="protected abstract int numRowsAffected()" doc="/**
&lt;p&gt;Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or if the query is a &lt;tt&gt;SELECT&lt;/tt&gt; statement.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean prepare(java.lang.String query)" doc="/**
&lt;p&gt;Prepares the given &lt;tt&gt;query&lt;/tt&gt; for execution; the query will normally use placeholders so that it can be executed repeatedly. Returns true if the query is prepared successfully; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected com.trolltech.qt.sql.QSqlRecord record()" doc="/**
&lt;p&gt;Returns the current record if the query is active; otherwise returns an empty &lt;a href=&quot;QSqlRecord.html&quot;&gt;&lt;tt&gt;QSqlRecord&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default implementation always returns an empty &lt;a href=&quot;QSqlRecord.html&quot;&gt;&lt;tt&gt;QSqlRecord&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected abstract boolean reset(java.lang.String sqlquery)" doc="/**
&lt;p&gt;Sets the result to use the SQL statement &lt;tt&gt;sqlquery&lt;/tt&gt; for subsequent data retrieval.&lt;/p&gt;
&lt;p&gt;Derived classes must reimplement this function and apply the &lt;tt&gt;sqlquery&lt;/tt&gt; to the database. This function is only called after the result is set to an inactive state and is positioned before the first record of the new result. Derived classes should return true if the query was successful and ready to be used, or false otherwise.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#setQuery(java.lang.String)&quot;&gt;&lt;tt&gt;setQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean savePrepare(java.lang.String sqlquery)" doc="/**
&lt;p&gt;Prepares the given &lt;tt&gt;sqlquery&lt;/tt&gt;, using the underlying database functionality where possible. Returns true if the query is prepared successfully; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#prepare(java.lang.String)&quot;&gt;&lt;tt&gt;prepare&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setActive(boolean a)" doc="/**
&lt;p&gt;This function is provided for derived classes to set the internal active state to &lt;tt&gt;a&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setAt(int at)" doc="/**
&lt;p&gt;This function is provided for derived classes to set the internal (zero-based) row position to &lt;tt&gt;at&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#at()&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setForwardOnly(boolean forward)" doc="/**
&lt;p&gt;Sets forward only mode to &lt;tt&gt;forward&lt;/tt&gt;. If &lt;tt&gt;forward&lt;/tt&gt; is true, only &lt;a href=&quot;QSqlResult.html#fetchNext()&quot;&gt;&lt;tt&gt;fetchNext&lt;/tt&gt;&lt;/a&gt; is allowed for navigating the results. Forward only mode needs much less memory since results do not have to be cached. By default, this feature is disabled.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isForwardOnly()&quot;&gt;&lt;tt&gt;isForwardOnly&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#fetchNext()&quot;&gt;&lt;tt&gt;fetchNext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setLastError(com.trolltech.qt.sql.QSqlError e)" doc="/**
&lt;p&gt;This function is provided for derived classes to set the last error to &lt;tt&gt;e&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#lastError()&quot;&gt;&lt;tt&gt;lastError&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setQuery(java.lang.String query)" doc="/**
&lt;p&gt;Sets the current query for the result to &lt;tt&gt;query&lt;/tt&gt;. You must call &lt;a href=&quot;QSqlResult.html#reset(java.lang.String)&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; to execute the query on the database.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#reset(java.lang.String)&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlResult.html#lastQuery()&quot;&gt;&lt;tt&gt;lastQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void setSelect(boolean s)" doc="/**
&lt;p&gt;This function is provided for derived classes to indicate whether or not the current statement is a SQL &lt;tt&gt;SELECT&lt;/tt&gt; statement. The &lt;tt&gt;s&lt;/tt&gt; parameter should be true if the statement is a &lt;tt&gt;SELECT&lt;/tt&gt; statement; otherwise it should be false.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#isSelect()&quot;&gt;&lt;tt&gt;isSelect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected abstract int size()" doc="/**
&lt;p&gt;Returns the size of the &lt;tt&gt;SELECT&lt;/tt&gt; result, or -1 if it cannot be determined or if the query is not a &lt;tt&gt;SELECT&lt;/tt&gt; statement.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#numRowsAffected()&quot;&gt;&lt;tt&gt;numRowsAffected&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="BindingSyntax" doc="/**
&lt;p&gt;This enum type specifies the different syntaxes for specifying placeholders in prepared queries.&lt;/p&gt;

@see &lt;a href=&quot;QSqlResult.html#bindingSyntax()&quot;&gt;&lt;tt&gt;bindingSyntax&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="PositionalBinding" doc="/**
&lt;p&gt;Use the ODBC-style positional syntax, with &amp;quot;?&amp;quot; as placeholders.&lt;/p&gt;
 */"/>
        <enum-value name="NamedBinding" doc="/**
&lt;p&gt;Use the Oracle-style syntax with named placeholders (e.g&amp;#x2e;, &amp;quot;:id&amp;quot;)&lt;/p&gt;
 */"/>
</enum>
    <enum name="VirtualHookOperation">
        <enum-value name="BatchOperation" doc="/**
Internal. */"/>
        <enum-value name="DetachFromResultSet" doc="/**
Internal. */"/>
        <enum-value name="SetNumericalPrecision" doc="/**
Internal. */"/>
</enum>
</class>
