diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-28 10:17:01 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-28 10:17:01 +0900 |
commit | 5fffa30386502b5423e45c2ed5e6af756b11c7b4 (patch) | |
tree | fa17e10b048e8e13433b861cbe98cf895b2324c7 /doc/man/man3/tqsqlrecord.3qt | |
parent | 04913ce7a46fd027856e83a96205fdc388742a19 (diff) | |
download | tqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.tar.gz tqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.zip |
Rename nt* sql related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqsqlrecord.3qt')
-rw-r--r-- | doc/man/man3/tqsqlrecord.3qt | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/doc/man/man3/tqsqlrecord.3qt b/doc/man/man3/tqsqlrecord.3qt index 241b7de35..fa095195f 100644 --- a/doc/man/man3/tqsqlrecord.3qt +++ b/doc/man/man3/tqsqlrecord.3qt @@ -1,5 +1,5 @@ '\" t -.TH QSqlRecord 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQSqlRecord 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,11 +7,11 @@ .ad l .nh .SH NAME -QSqlRecord \- Encapsulates a database record, i.e. a set of database fields +TQSqlRecord \- Encapsulates a database record, i.e. a set of database fields .SH SYNOPSIS -\fC#include <ntqsqlrecord.h>\fR +\fC#include <tqsqlrecord.h>\fR .PP -Inherited by QSqlCursor and QSqlIndex. +Inherited by TQSqlCursor and TQSqlIndex. .PP .SS "Public Members" .in +1c @@ -19,13 +19,13 @@ Inherited by QSqlCursor and QSqlIndex. .BI "\fBQSqlRecord\fR ()" .br .ti -1c -.BI "\fBQSqlRecord\fR ( const QSqlRecord & other )" +.BI "\fBQSqlRecord\fR ( const TQSqlRecord & other )" .br .ti -1c -.BI "QSqlRecord & \fBoperator=\fR ( const QSqlRecord & other )" +.BI "TQSqlRecord & \fBoperator=\fR ( const TQSqlRecord & other )" .br .ti -1c -.BI "virtual \fB~QSqlRecord\fR ()" +.BI "virtual \fB~TQSqlRecord\fR ()" .br .ti -1c .BI "virtual QVariant \fBvalue\fR ( int i ) const" @@ -70,22 +70,22 @@ Inherited by QSqlCursor and QSqlIndex. .BI "TQString \fBfieldName\fR ( int i ) const" .br .ti -1c -.BI "QSqlField * \fBfield\fR ( int i )" +.BI "TQSqlField * \fBfield\fR ( int i )" .br .ti -1c -.BI "QSqlField * \fBfield\fR ( const TQString & name )" +.BI "TQSqlField * \fBfield\fR ( const TQString & name )" .br .ti -1c -.BI "const QSqlField * \fBfield\fR ( int i ) const" +.BI "const TQSqlField * \fBfield\fR ( int i ) const" .br .ti -1c -.BI "const QSqlField * \fBfield\fR ( const TQString & name ) const" +.BI "const TQSqlField * \fBfield\fR ( const TQString & name ) const" .br .ti -1c -.BI "virtual void \fBappend\fR ( const QSqlField & field )" +.BI "virtual void \fBappend\fR ( const TQSqlField & field )" .br .ti -1c -.BI "virtual void \fBinsert\fR ( int pos, const QSqlField & field )" +.BI "virtual void \fBinsert\fR ( int pos, const TQSqlField & field )" .br .ti -1c .BI "virtual void \fBremove\fR ( int pos )" @@ -113,137 +113,137 @@ Inherited by QSqlCursor and QSqlIndex. .br .in -1c .SH DESCRIPTION -The QSqlRecord class encapsulates a database record, i.e. a set of database fields. +The TQSqlRecord class encapsulates a database record, i.e. a set of database fields. .PP -The QSqlRecord class encapsulates the functionality and characteristics of a database record (usually a table or view within the database). QSqlRecords support adding and removing fields as well as setting and retrieving field values. +The TQSqlRecord class encapsulates the functionality and characteristics of a database record (usually a table or view within the database). TQSqlRecords support adding and removing fields as well as setting and retrieving field values. .PP -QSqlRecord is implicitly shared. This means you can make copies of the record in time O(1). If multiple QSqlRecord instances share the same data and one is modifying the record's data then this modifying instance makes a copy and modifies its private copy - thus it does not affect other instances. +TQSqlRecord is implicitly shared. This means you can make copies of the record in time O(1). If multiple TQSqlRecord instances share the same data and one is modifying the record's data then this modifying instance makes a copy and modifies its private copy - thus it does not affect other instances. .PP -See also QSqlRecordInfo and Database Classes. +See also TQSqlRecordInfo and Database Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QSqlRecord::QSqlRecord ()" +.SH "TQSqlRecord::TQSqlRecord ()" Constructs an empty record. -.SH "QSqlRecord::QSqlRecord ( const QSqlRecord & other )" +.SH "TQSqlRecord::TQSqlRecord ( const TQSqlRecord & other )" Constructs a copy of \fIother\fR. -.SH "QSqlRecord::~QSqlRecord ()\fC [virtual]\fR" +.SH "TQSqlRecord::~TQSqlRecord ()\fC [virtual]\fR" Destroys the object and frees any allocated resources. -.SH "void QSqlRecord::append ( const QSqlField & field )\fC [virtual]\fR" +.SH "void TQSqlRecord::append ( const TQSqlField & field )\fC [virtual]\fR" Append a copy of field \fIfield\fR to the end of the record. .PP -Reimplemented in QSqlIndex. -.SH "void QSqlRecord::clear ()\fC [virtual]\fR" +Reimplemented in TQSqlIndex. +.SH "void TQSqlRecord::clear ()\fC [virtual]\fR" Removes all the record's fields. .PP See also clearValues(). .PP -Reimplemented in QSqlCursor. -.SH "void QSqlRecord::clearValues ( bool nullify = FALSE )\fC [virtual]\fR" +Reimplemented in TQSqlCursor. +.SH "void TQSqlRecord::clearValues ( bool nullify = FALSE )\fC [virtual]\fR" Clears the value of all fields in the record. If \fInullify\fR is TRUE, (the default is FALSE), each field is set to NULL. -.SH "bool QSqlRecord::contains ( const TQString & name ) const" +.SH "bool TQSqlRecord::contains ( const TQString & name ) const" Returns TRUE if there is a field in the record called \fIname\fR; otherwise returns FALSE. -.SH "uint QSqlRecord::count () const" +.SH "uint TQSqlRecord::count () const" Returns the number of fields in the record. -.SH "QSqlField * QSqlRecord::field ( int i )" +.SH "TQSqlField * TQSqlRecord::field ( int i )" Returns the field at position \fIi\fR within the record, or 0 if it cannot be found. -.SH "QSqlField * QSqlRecord::field ( const TQString & name )" +.SH "TQSqlField * TQSqlRecord::field ( const TQString & name )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the field called \fIname\fR within the record, or 0 if it cannot be found. Field names are not case-sensitive. -.SH "const QSqlField * QSqlRecord::field ( int i ) const" +.SH "const TQSqlField * TQSqlRecord::field ( int i ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "const QSqlField * QSqlRecord::field ( const TQString & name ) const" +.SH "const TQSqlField * TQSqlRecord::field ( const TQString & name ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the field called \fIname\fR within the record, or 0 if it cannot be found. Field names are not case-sensitive. -.SH "TQString QSqlRecord::fieldName ( int i ) const" +.SH "TQString TQSqlRecord::fieldName ( int i ) const" Returns the name of the field at position \fIi\fR. If the field does not exist, TQString::null is returned. -.SH "void QSqlRecord::insert ( int pos, const QSqlField & field )\fC [virtual]\fR" +.SH "void TQSqlRecord::insert ( int pos, const TQSqlField & field )\fC [virtual]\fR" Insert a copy of \fIfield\fR at position \fIpos\fR. If a field already exists at \fIpos\fR, it is removed. -.SH "bool QSqlRecord::isEmpty () const" +.SH "bool TQSqlRecord::isEmpty () const" Returns TRUE if there are no fields in the record; otherwise returns FALSE. -.SH "bool QSqlRecord::isGenerated ( const TQString & name ) const" +.SH "bool TQSqlRecord::isGenerated ( const TQString & name ) const" Returns TRUE if the record has a field called \fIname\fR and this field is to be generated (the default); otherwise returns FALSE. .PP See also setGenerated(). -.SH "bool QSqlRecord::isGenerated ( int i ) const" +.SH "bool TQSqlRecord::isGenerated ( int i ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the record has a field at position \fIi\fR and this field is to be generated (the default); otherwise returns FALSE. .PP See also setGenerated(). -.SH "bool QSqlRecord::isNull ( const TQString & name ) const" +.SH "bool TQSqlRecord::isNull ( const TQString & name ) const" Returns TRUE if the field called \fIname\fR is NULL or if there is no field called \fIname\fR; otherwise returns FALSE. .PP See also position(). -.SH "bool QSqlRecord::isNull ( int i ) const" +.SH "bool TQSqlRecord::isNull ( int i ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the field \fIi\fR is NULL or if there is no field at position \fIi\fR; otherwise returns FALSE. .PP See also fieldName(). -.SH "QSqlRecord & QSqlRecord::operator= ( const QSqlRecord & other )" +.SH "TQSqlRecord & TQSqlRecord::operator= ( const TQSqlRecord & other )" Sets the record equal to \fIother\fR. -.SH "int QSqlRecord::position ( const TQString & name ) const" +.SH "int TQSqlRecord::position ( const TQString & name ) const" Returns the position of the field called \fIname\fR within the record, or -1 if it cannot be found. Field names are not case-sensitive. If more than one field matches, the first one is returned. -.SH "void QSqlRecord::remove ( int pos )\fC [virtual]\fR" +.SH "void TQSqlRecord::remove ( int pos )\fC [virtual]\fR" Removes the field at \fIpos\fR. If \fIpos\fR does not exist, nothing happens. .PP -Reimplemented in QSqlCursor. -.SH "void QSqlRecord::setGenerated ( const TQString & name, bool generated )\fC [virtual]\fR" -Sets the generated flag for the field called \fIname\fR to \fIgenerated\fR. If the field does not exist, nothing happens. Only fields that have \fIgenerated\fR set to TRUE are included in the SQL that is generated, e.g. by QSqlCursor. +Reimplemented in TQSqlCursor. +.SH "void TQSqlRecord::setGenerated ( const TQString & name, bool generated )\fC [virtual]\fR" +Sets the generated flag for the field called \fIname\fR to \fIgenerated\fR. If the field does not exist, nothing happens. Only fields that have \fIgenerated\fR set to TRUE are included in the SQL that is generated, e.g. by TQSqlCursor. .PP See also isGenerated(). .PP -Reimplemented in QSqlCursor. -.SH "void QSqlRecord::setGenerated ( int i, bool generated )\fC [virtual]\fR" +Reimplemented in TQSqlCursor. +.SH "void TQSqlRecord::setGenerated ( int i, bool generated )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the generated flag for the field \fIi\fR to \fIgenerated\fR. .PP See also isGenerated(). .PP -Reimplemented in QSqlCursor. -.SH "void QSqlRecord::setNull ( int i )\fC [virtual]\fR" +Reimplemented in TQSqlCursor. +.SH "void TQSqlRecord::setNull ( int i )\fC [virtual]\fR" Sets the value of field \fIi\fR to NULL. If the field does not exist, nothing happens. -.SH "void QSqlRecord::setNull ( const TQString & name )\fC [virtual]\fR" +.SH "void TQSqlRecord::setNull ( const TQString & name )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the value of the field called \fIname\fR to NULL. If the field does not exist, nothing happens. -.SH "void QSqlRecord::setValue ( int i, const QVariant & val )\fC [virtual]\fR" +.SH "void TQSqlRecord::setValue ( int i, const QVariant & val )\fC [virtual]\fR" Sets the value of the field at position \fIi\fR to \fIval\fR. If the field does not exist, nothing happens. .PP Examples: .)l sql/overview/insert/main.cpp, sql/overview/insert2/main.cpp, sql/overview/subclass5/main.cpp, sql/overview/update/main.cpp, and sql/sqltable/main.cpp. -.SH "void QSqlRecord::setValue ( const TQString & name, const QVariant & val )\fC [virtual]\fR" +.SH "void TQSqlRecord::setValue ( const TQString & name, const QVariant & val )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the value of the field called \fIname\fR to \fIval\fR. If the field does not exist, nothing happens. -.SH "TQString QSqlRecord::toString ( const TQString & prefix = TQString::null, const TQString & sep = "," ) const\fC [virtual]\fR" +.SH "TQString TQSqlRecord::toString ( const TQString & prefix = TQString::null, const TQString & sep = "," ) const\fC [virtual]\fR" Returns a list of all the record's field names as a string separated by \fIsep\fR. .PP Note that fields which are not generated are \fInot\fR included (see isGenerated()). The returned string is suitable, for example, for generating SQL SELECT statements. If a \fIprefix\fR is specified, e.g. a table name, all fields are prefixed in the form: .PP" \fIprefix\fR.<fieldname>" -.SH "QStringList QSqlRecord::toStringList ( const TQString & prefix = TQString::null ) const\fC [virtual]\fR" +.SH "QStringList TQSqlRecord::toStringList ( const TQString & prefix = TQString::null ) const\fC [virtual]\fR" Returns a list of all the record's field names, each having the prefix \fIprefix\fR. .PP Note that fields which have generated set to FALSE are \fInot\fR included. (See isGenerated()). If \fIprefix\fR is supplied, e.g. a table name, all fields are prefixed in the form: .PP" \fIprefix\fR.<fieldname>" -.SH "QVariant QSqlRecord::value ( int i ) const\fC [virtual]\fR" +.SH "QVariant TQSqlRecord::value ( int i ) const\fC [virtual]\fR" Returns the value of the field located at position \fIi\fR in the record. If field \fIi\fR does not exist the resultant behaviour is undefined. .PP -This function should be used with QSqlQuerys. When working with a QSqlCursor the value(const TQString&) overload which uses field names is more appropriate. +This function should be used with TQSqlQuerys. When working with a TQSqlCursor the value(const TQString&) overload which uses field names is more appropriate. .PP Example: sql/overview/update/main.cpp. -.SH "QVariant QSqlRecord::value ( const TQString & name ) const\fC [virtual]\fR" +.SH "QVariant TQSqlRecord::value ( const TQString & name ) const\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the value of the field called \fIname\fR in the record. If field \fIname\fR does not exist the resultant behaviour is undefined. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqsqlrecord.html +.BR http://doc.trolltech.com/tqsqlrecord.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |