Eneboo - Documentación para desarrolladores
Métodos públicos | Amigas
Referencia de la Clase QIBaseDriver

#include <qsql_ibase.h>

Diagrama de herencias de QIBaseDriver
QSqlDriver QObject QObject Qt Qt Qt Qt

Lista de todos los miembros.

Métodos públicos

 QIBaseDriver (QObject *parent=0, const char *name=0)
 QIBaseDriver (void *connection, QObject *parent=0, const char *name=0)
virtual ~QIBaseDriver ()
bool hasFeature (DriverFeature f) const
bool open (const QString &db, const QString &user, const QString &password, const QString &host, int port, const QString &connOpts)
bool open (const QString &db, const QString &user, const QString &password, const QString &host, int port)
void close ()
QSqlQuery createQuery () const
bool beginTransaction ()
bool commitTransaction ()
bool rollbackTransaction ()
QStringList tables (const QString &typeName) const
QSqlRecord record (const QString &tablename) const
QSqlRecordInfo recordInfo (const QString &tablename) const
QSqlIndex primaryIndex (const QString &table) const
QSqlRecord record (const QSqlQuery &query) const
QSqlRecordInfo recordInfo (const QSqlQuery &query) const
QString formatValue (const QSqlField *field, bool trimStrings) const

Amigas

class QIBaseDriverPrivate
class QIBaseResultPrivate
class QIBaseResult

Documentación del constructor y destructor

QIBaseDriver::QIBaseDriver ( QObject parent = 0,
const char *  name = 0 
)
QIBaseDriver::QIBaseDriver ( void *  connection,
QObject parent = 0,
const char *  name = 0 
)
QIBaseDriver::~QIBaseDriver ( ) [virtual]

Documentación de las funciones miembro

bool QIBaseDriver::beginTransaction ( ) [virtual]

Protected function which derived classes can reimplement to begin a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.

Ver también:
commitTransaction(), rollbackTransaction()

Reimplementado de QSqlDriver.

void QIBaseDriver::close ( void  ) [virtual]

Derived classes must reimplement this abstract virtual function in order to close the database connection. Return TRUE on success, FALSE on failure.

Ver también:
setOpen()

Implementa QSqlDriver.

bool QIBaseDriver::commitTransaction ( ) [virtual]

Protected function which derived classes can reimplement to commit a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.

Ver también:
beginTransaction(), rollbackTransaction()

Reimplementado de QSqlDriver.

QSqlQuery QIBaseDriver::createQuery ( ) const [virtual]

Creates an empty SQL result on the database. Derived classes must reimplement this function and return a QSqlQuery object appropriate for their database to the caller.

Implementa QSqlDriver.

QString QIBaseDriver::formatValue ( const QSqlField field,
bool  trimStrings 
) const [virtual]

Returns a string representation of the field value for the database. This is used, for example, when constructing INSERT and UPDATE statements.

The default implementation returns the value formatted as a string according to the following rules:

If field is NULL, nullText() is returned.

If field is character data, the value is returned enclosed in single quotation marks, which is appropriate for many SQL databases. Any embedded single-quote characters are escaped (replaced with two single-quote characters). If trimStrings is TRUE (the default is FALSE), all trailing whitespace is trimmed from the field.

If field is date/time data, the value is formatted in ISO format and enclosed in single quotation marks. If the date/time data is invalid, nullText() is returned.

If field is bytearray data, and the driver can edit binary fields, the value is formatted as a hexadecimal string.

For any other field type toString() will be called on its value and the result returned.

Ver también:
QVariant::toString().

Reimplementado de QSqlDriver.

bool QIBaseDriver::hasFeature ( DriverFeature  f) const [virtual]

Returns TRUE if the driver supports feature f; otherwise returns FALSE.

Note that some databases need to be open() before this can be determined.

Ver también:
DriverFeature

Implementa QSqlDriver.

bool QIBaseDriver::open ( const QString db,
const QString user,
const QString password,
const QString host,
int  port,
const QString connOpts 
)

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Open a database connection on database db, using user name user, password password, host host, port port and connection options connOpts.

Returns TRUE on success and FALSE on failure.

Ver también:
setOpen()

Reimplementado de QSqlDriver.

bool QIBaseDriver::open ( const QString db,
const QString user,
const QString password,
const QString host,
int  port 
) [inline, virtual]

Derived classes must reimplement this abstract virtual function in order to open a database connection on database db, using user name user, password password, host host and port port.

The function must return TRUE on success and FALSE on failure.

Ver también:
setOpen()

Implementa QSqlDriver.

QSqlIndex QIBaseDriver::primaryIndex ( const QString tableName) const [virtual]

Returns the primary index for table tableName. Returns an empty QSqlIndex if the table doesn't have a primary index. The default implementation returns an empty index.

Reimplementado de QSqlDriver.

QSqlRecord QIBaseDriver::record ( const QString tableName) const [virtual]

Returns a QSqlRecord populated with the names of the fields in table tableName. If no such table exists, an empty record is returned. The default implementation returns an empty record.

Reimplementado de QSqlDriver.

QSqlRecord QIBaseDriver::record ( const QSqlQuery query) const [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns a QSqlRecord populated with the names of the fields in the SQL query. The default implementation returns an empty record.

Reimplementado de QSqlDriver.

QSqlRecordInfo QIBaseDriver::recordInfo ( const QString tablename) const [virtual]

Returns a QSqlRecordInfo object with meta data about the table tablename.

Reimplementado de QSqlDriver.

QSqlRecordInfo QIBaseDriver::recordInfo ( const QSqlQuery query) const [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns a QSqlRecordInfo object with meta data for the QSqlQuery query. Note that this overloaded function may return less information than the recordInfo() function which takes the name of a table as parameter.

Reimplementado de QSqlDriver.

bool QIBaseDriver::rollbackTransaction ( ) [virtual]

Protected function which derived classes can reimplement to rollback a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.

Ver también:
beginTransaction(), commitTransaction()

Reimplementado de QSqlDriver.

QStringList QIBaseDriver::tables ( const QString tableType) const [virtual]

Returns a list of tables in the database. The default implementation returns an empty list.

The tableType argument describes what types of tables should be returned. Due to binary compatibility, the string contains the value of the enum QSql::TableTypes as text. An empty string should be treated as QSql::Tables for downward compatibility.

Ver también:
QSql::TableType

Reimplementado de QSqlDriver.


Documentación de las funciones relacionadas y clases amigas

friend class QIBaseDriverPrivate [friend]
friend class QIBaseResult [friend]
friend class QIBaseResultPrivate [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'