summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqlquery.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqsqlquery.3qt')
-rw-r--r--doc/man/man3/tqsqlquery.3qt54
1 files changed, 27 insertions, 27 deletions
diff --git a/doc/man/man3/tqsqlquery.3qt b/doc/man/man3/tqsqlquery.3qt
index 731c8243a..d842ee412 100644
--- a/doc/man/man3/tqsqlquery.3qt
+++ b/doc/man/man3/tqsqlquery.3qt
@@ -76,7 +76,7 @@ Inherited by TQSqlCursor.
.BI "virtual bool \fBexec\fR ( const TQString & query )"
.br
.ti -1c
-.BI "virtual QVariant \fBvalue\fR ( int i ) const"
+.BI "virtual TQVariant \fBvalue\fR ( int i ) const"
.br
.ti -1c
.BI "virtual bool \fBseek\fR ( int i, bool relative = FALSE )"
@@ -100,31 +100,31 @@ Inherited by TQSqlCursor.
.BI "bool \fBprepare\fR ( const TQString & query )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( const TQString & placeholder, const QVariant & val )"
+.BI "void \fBbindValue\fR ( const TQString & placeholder, const TQVariant & val )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( int pos, const QVariant & val )"
+.BI "void \fBbindValue\fR ( int pos, const TQVariant & val )"
.br
.ti -1c
-.BI "void \fBaddBindValue\fR ( const QVariant & val )"
+.BI "void \fBaddBindValue\fR ( const TQVariant & val )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( const TQString & placeholder, const QVariant & val, TQSql::ParameterType type )"
+.BI "void \fBbindValue\fR ( const TQString & placeholder, const TQVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( int pos, const QVariant & val, TQSql::ParameterType type )"
+.BI "void \fBbindValue\fR ( int pos, const TQVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
-.BI "void \fBaddBindValue\fR ( const QVariant & val, TQSql::ParameterType type )"
+.BI "void \fBaddBindValue\fR ( const TQVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
-.BI "QVariant \fBboundValue\fR ( const TQString & placeholder ) const"
+.BI "TQVariant \fBboundValue\fR ( const TQString & placeholder ) const"
.br
.ti -1c
-.BI "QVariant \fBboundValue\fR ( int pos ) const"
+.BI "TQVariant \fBboundValue\fR ( int pos ) const"
.br
.ti -1c
-.BI "TQMap<TQString, QVariant> \fBboundValues\fR () const"
+.BI "TQMap<TQString, TQVariant> \fBboundValues\fR () const"
.br
.ti -1c
.BI "TQString \fBexecutedQuery\fR () const"
@@ -158,7 +158,7 @@ last()
.TP
\fC\fRseek(int)
.PP
-These functions allow the programmer to move forward, backward or arbitrarily through the records returned by the query. If you only need to move forward through the results, e.g. using next() or using seek() with a positive offset, you can use setForwardOnly() and save a significant amount of memory overhead. Once an active query is positioned on a valid record, data can be retrieved using value(). All data is transferred from the SQL backend using QVariants.
+These functions allow the programmer to move forward, backward or arbitrarily through the records returned by the query. If you only need to move forward through the results, e.g. using next() or using seek() with a positive offset, you can use setForwardOnly() and save a significant amount of memory overhead. Once an active query is positioned on a valid record, data can be retrieved using value(). All data is transferred from the SQL backend using TQVariants.
.PP
For example:
.PP
@@ -281,7 +281,7 @@ Below we present the same example using each of the four different binding appro
.br
.fi
.PP
-See also TQSqlDatabase, TQSqlCursor, QVariant, and Database Classes.
+See also TQSqlDatabase, TQSqlCursor, TQVariant, and Database Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQSqlQuery::TQSqlQuery ( TQSqlResult * r )"
Creates a TQSqlQuery object which uses the TQSqlResult \fIr\fR to communicate with a database.
@@ -297,11 +297,11 @@ See also TQSqlDatabase.
Constructs a copy of \fIother\fR.
.SH "TQSqlQuery::~TQSqlQuery ()\fC [virtual]\fR"
Destroys the object and frees any allocated resources.
-.SH "void TQSqlQuery::addBindValue ( const QVariant & val, TQSql::ParameterType type )"
+.SH "void TQSqlQuery::addBindValue ( const TQVariant & val, TQSql::ParameterType type )"
Adds the value \fIval\fR to the list of values when using positional value binding. The order of the addBindValue() calls determines which placeholder a value will be bound to in the prepared query. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also bindValue(), prepare(), and exec().
-.SH "void TQSqlQuery::addBindValue ( const QVariant & val )"
+.SH "void TQSqlQuery::addBindValue ( const TQVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Binds the placeholder with type TQSql::In.
@@ -315,31 +315,31 @@ See also prev(), next(), first(), last(), seek(), isActive(), and isValid().
Example: sql/overview/navigating/main.cpp.
.SH "void TQSqlQuery::beforeSeek ()\fC [virtual protected]\fR"
Protected virtual function called before the internal record pointer is moved to a new record. The default implementation does nothing.
-.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val, TQSql::ParameterType type )"
+.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const TQVariant & val, TQSql::ParameterType type )"
Set the placeholder \fIplaceholder\fR to be bound to value \fIval\fR in the prepared statement. Note that the placeholder mark (e.g \fC:\fR) must be included when specifying the placeholder name. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also addBindValue(), prepare(), and exec().
-.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val )"
+.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const TQVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Binds the placeholder with type TQSql::In.
-.SH "void TQSqlQuery::bindValue ( int pos, const QVariant & val )"
+.SH "void TQSqlQuery::bindValue ( int pos, const TQVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Binds the placeholder at position \fIpos\fR with type TQSql::In.
-.SH "void TQSqlQuery::bindValue ( int pos, const QVariant & val, TQSql::ParameterType type )"
+.SH "void TQSqlQuery::bindValue ( int pos, const TQVariant & val, TQSql::ParameterType type )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Set the placeholder in position \fIpos\fR to be bound to value \fIval\fR in the prepared statement. Field numbering starts at 0. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also addBindValue(), prepare(), and exec().
-.SH "QVariant TQSqlQuery::boundValue ( const TQString & placeholder ) const"
+.SH "TQVariant TQSqlQuery::boundValue ( const TQString & placeholder ) const"
Returns the value for the \fIplaceholder\fR.
-.SH "QVariant TQSqlQuery::boundValue ( int pos ) const"
+.SH "TQVariant TQSqlQuery::boundValue ( int pos ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the value for the placeholder at position \fIpos\fR.
-.SH "TQMap<TQString, QVariant> TQSqlQuery::boundValues () const"
+.SH "TQMap<TQString, TQVariant> TQSqlQuery::boundValues () const"
Returns a map of the bound values.
.PP
The bound values can be examined in the following way:
@@ -352,9 +352,9 @@ The bound values can be examined in the following way:
.br
// Examine the bound values - bound using named binding
.br
- TQMap<TQString, QVariant>::ConstIterator it;
+ TQMap<TQString, TQVariant>::ConstIterator it;
.br
- TQMap<TQString, QVariant> vals = query.boundValues();
+ TQMap<TQString, TQVariant> vals = query.boundValues();
.br
for ( it = vals.begin(); it != vals.end(); ++it )
.br
@@ -365,9 +365,9 @@ The bound values can be examined in the following way:
.br
// Examine the bound values - bound using positional binding
.br
- TQValueList<QVariant>::ConstIterator it;
+ TQValueList<TQVariant>::ConstIterator it;
.br
- TQValueList<QVariant> list = query.boundValues().values();
+ TQValueList<TQVariant> list = query.boundValues().values();
.br
int i = 0;
.br
@@ -529,12 +529,12 @@ To determine the number of rows affected by a non-SELECT statement, use numRowsA
See also isActive(), numRowsAffected(), and TQSqlDriver::hasFeature().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "QVariant TQSqlQuery::value ( int i ) const\fC [virtual]\fR"
+.SH "TQVariant TQSqlQuery::value ( int i ) const\fC [virtual]\fR"
Returns the value of the \fIi\fR-th field in the query (zero based).
.PP
The fields are numbered from left to right using the text of the \fCSELECT\fR statement, e.g. in \fCSELECT forename, surname FROM people\fR, field 0 is \fCforename\fR and field 1 is \fCsurname\fR. Using \fCSELECT *\fR is not recommended because the order of the fields in the query is undefined.
.PP
-An invalid QVariant is returned if field \fIi\fR does not exist, if the query is inactive, or if the query is positioned on an invalid record.
+An invalid TQVariant is returned if field \fIi\fR does not exist, if the query is inactive, or if the query is positioned on an invalid record.
.PP
See also prev(), next(), first(), last(), seek(), isActive(), and isValid().
.PP