qsql: add missing Q_DECL_OVERRIDE
Change-Id: Ic562ee9e287f21d73b94f6dc3c4884a2ed33b9fe Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>bb10
parent
51089a5742
commit
d8aac3313c
|
|
@ -80,24 +80,24 @@ class QDB2Result: public QSqlResult
|
|||
public:
|
||||
QDB2Result(const QDB2Driver *dr, const QDB2DriverPrivate *dp);
|
||||
~QDB2Result();
|
||||
bool prepare(const QString &query);
|
||||
bool exec();
|
||||
QVariant handle() const;
|
||||
bool prepare(const QString &query) Q_DECL_OVERRIDE;
|
||||
bool exec() Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
QVariant data(int field);
|
||||
bool reset (const QString &query);
|
||||
bool fetch(int i);
|
||||
bool fetchNext();
|
||||
bool fetchFirst();
|
||||
bool fetchLast();
|
||||
bool isNull(int i);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
QSqlRecord record() const;
|
||||
void virtual_hook(int id, void *data);
|
||||
void detachFromResultSet();
|
||||
bool nextResult();
|
||||
QVariant data(int field) Q_DECL_OVERRIDE;
|
||||
bool reset(const QString &query) Q_DECL_OVERRIDE;
|
||||
bool fetch(int i) Q_DECL_OVERRIDE;
|
||||
bool fetchNext() Q_DECL_OVERRIDE;
|
||||
bool fetchFirst() Q_DECL_OVERRIDE;
|
||||
bool fetchLast() Q_DECL_OVERRIDE;
|
||||
bool isNull(int i) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
void detachFromResultSet() Q_DECL_OVERRIDE;
|
||||
bool nextResult() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QDB2ResultPrivate *d;
|
||||
|
|
|
|||
|
|
@ -67,24 +67,24 @@ public:
|
|||
explicit QDB2Driver(QObject* parent = 0);
|
||||
QDB2Driver(Qt::HANDLE env, Qt::HANDLE con, QObject* parent = 0);
|
||||
~QDB2Driver();
|
||||
bool hasFeature(DriverFeature) const;
|
||||
void close();
|
||||
QSqlRecord record(const QString& tableName) const;
|
||||
QStringList tables(QSql::TableType type) const;
|
||||
QSqlResult *createResult() const;
|
||||
QSqlIndex primaryIndex(const QString& tablename) const;
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
QString formatValue(const QSqlField &field, bool trimStrings) const;
|
||||
QVariant handle() const;
|
||||
bool open(const QString& db,
|
||||
const QString& user,
|
||||
const QString& password,
|
||||
const QString& host,
|
||||
bool hasFeature(DriverFeature) const Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record(const QString &tableName) const Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType type) const Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
QString formatValue(const QSqlField &field, bool trimStrings) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port,
|
||||
const QString& connOpts);
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const;
|
||||
const QString& connOpts) Q_DECL_OVERRIDE;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
bool setAutoCommit(bool autoCommit);
|
||||
|
|
|
|||
|
|
@ -351,16 +351,16 @@ public:
|
|||
explicit QIBaseResult(const QIBaseDriver* db);
|
||||
virtual ~QIBaseResult();
|
||||
|
||||
bool prepare(const QString& query);
|
||||
bool exec();
|
||||
QVariant handle() const;
|
||||
bool prepare(const QString &query) Q_DECL_OVERRIDE;
|
||||
bool exec() Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool gotoNext(QSqlCachedResult::ValueCache& row, int rowIdx);
|
||||
bool reset (const QString& query);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
QSqlRecord record() const;
|
||||
bool gotoNext(QSqlCachedResult::ValueCache& row, int rowIdx) Q_DECL_OVERRIDE;
|
||||
bool reset (const QString &query) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QIBaseResultPrivate* d;
|
||||
|
|
|
|||
|
|
@ -68,36 +68,36 @@ public:
|
|||
explicit QIBaseDriver(QObject *parent = 0);
|
||||
explicit QIBaseDriver(isc_db_handle connection, QObject *parent = 0);
|
||||
virtual ~QIBaseDriver();
|
||||
bool hasFeature(DriverFeature f) const;
|
||||
bool open(const QString & db,
|
||||
const QString & user,
|
||||
const QString & password,
|
||||
const QString & host,
|
||||
bool hasFeature(DriverFeature f) const Q_DECL_OVERRIDE;
|
||||
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) { return open (db, user, password, host, port, QString()); }
|
||||
void close();
|
||||
QSqlResult *createResult() const;
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
QStringList tables(QSql::TableType) const;
|
||||
const QString &connOpts) Q_DECL_OVERRIDE;
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port) { return open(db, user, password, host, port, QString()); }
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType) const Q_DECL_OVERRIDE;
|
||||
|
||||
QSqlRecord record(const QString& tablename) const;
|
||||
QSqlIndex primaryIndex(const QString &table) const;
|
||||
QSqlRecord record(const QString& tablename) const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString &table) const Q_DECL_OVERRIDE;
|
||||
|
||||
QString formatValue(const QSqlField &field, bool trimStrings) const;
|
||||
QVariant handle() const;
|
||||
QString formatValue(const QSqlField &field, bool trimStrings) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const Q_DECL_OVERRIDE;
|
||||
|
||||
bool subscribeToNotification(const QString &name);
|
||||
bool unsubscribeFromNotification(const QString &name);
|
||||
QStringList subscribedToNotifications() const;
|
||||
bool subscribeToNotification(const QString &name) Q_DECL_OVERRIDE;
|
||||
bool unsubscribeFromNotification(const QString &name) Q_DECL_OVERRIDE;
|
||||
QStringList subscribedToNotifications() const Q_DECL_OVERRIDE;
|
||||
|
||||
private Q_SLOTS:
|
||||
void qHandleEventNotification(void* updatedResultBuffer);
|
||||
|
|
|
|||
|
|
@ -166,19 +166,19 @@ class QOCIResult: public QSqlCachedResult
|
|||
public:
|
||||
QOCIResult(const QOCIDriver * db, const QOCIDriverPrivate* p);
|
||||
~QOCIResult();
|
||||
bool prepare(const QString& query);
|
||||
bool exec();
|
||||
QVariant handle() const;
|
||||
bool prepare(const QString &query) Q_DECL_OVERRIDE;
|
||||
bool exec() Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool gotoNext(ValueCache &values, int index);
|
||||
bool reset (const QString& query);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
QSqlRecord record() const;
|
||||
QVariant lastInsertId() const;
|
||||
bool execBatch(bool arrayBind = false);
|
||||
void virtual_hook(int id, void *data);
|
||||
bool gotoNext(ValueCache &values, int index) Q_DECL_OVERRIDE;
|
||||
bool reset(const QString &query) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
QVariant lastInsertId() const Q_DECL_OVERRIDE;
|
||||
bool execBatch(bool arrayBind = false) Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QOCIResultPrivate *d;
|
||||
|
|
|
|||
|
|
@ -72,26 +72,26 @@ public:
|
|||
QOCIDriver(OCIEnv* env, OCISvcCtx* ctx, QObject* parent = 0);
|
||||
~QOCIDriver();
|
||||
bool hasFeature(DriverFeature f) const;
|
||||
bool open(const QString & db,
|
||||
const QString & user,
|
||||
const QString & password,
|
||||
const QString & host,
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port,
|
||||
const QString& connOpts);
|
||||
void close();
|
||||
QSqlResult *createResult() const;
|
||||
QStringList tables(QSql::TableType) const;
|
||||
QSqlRecord record(const QString& tablename) const;
|
||||
QSqlIndex primaryIndex(const QString& tablename) const;
|
||||
const QString &connOpts) Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType) const Q_DECL_OVERRIDE;
|
||||
QSqlRecord record(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString& tablename) const Q_DECL_OVERRIDE;
|
||||
QString formatValue(const QSqlField &field,
|
||||
bool trimStrings) const;
|
||||
QVariant handle() const;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType) const;
|
||||
bool trimStrings) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType) const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -152,28 +152,28 @@ public:
|
|||
QODBCResult(const QODBCDriver *db, QODBCDriverPrivate *p);
|
||||
virtual ~QODBCResult();
|
||||
|
||||
bool prepare(const QString &query);
|
||||
bool exec();
|
||||
bool prepare(const QString &query) Q_DECL_OVERRIDE;
|
||||
bool exec() Q_DECL_OVERRIDE;
|
||||
|
||||
QVariant lastInsertId() const;
|
||||
QVariant handle() const;
|
||||
virtual void setForwardOnly(bool forward);
|
||||
QVariant lastInsertId() const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
void setForwardOnly(bool forward) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool fetchNext();
|
||||
bool fetchFirst();
|
||||
bool fetchLast();
|
||||
bool fetchPrevious();
|
||||
bool fetch(int i);
|
||||
bool reset (const QString &query);
|
||||
QVariant data(int field);
|
||||
bool isNull(int field);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
QSqlRecord record() const;
|
||||
void virtual_hook(int id, void *data);
|
||||
void detachFromResultSet();
|
||||
bool nextResult();
|
||||
bool fetchNext() Q_DECL_OVERRIDE;
|
||||
bool fetchFirst() Q_DECL_OVERRIDE;
|
||||
bool fetchLast() Q_DECL_OVERRIDE;
|
||||
bool fetchPrevious() Q_DECL_OVERRIDE;
|
||||
bool fetch(int i) Q_DECL_OVERRIDE;
|
||||
bool reset(const QString &query) Q_DECL_OVERRIDE;
|
||||
QVariant data(int field) Q_DECL_OVERRIDE;
|
||||
bool isNull(int field) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
void detachFromResultSet() Q_DECL_OVERRIDE;
|
||||
bool nextResult() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QODBCResultPrivate *d;
|
||||
|
|
|
|||
|
|
@ -84,30 +84,30 @@ public:
|
|||
explicit QODBCDriver(QObject *parent=0);
|
||||
QODBCDriver(SQLHANDLE env, SQLHANDLE con, QObject * parent=0);
|
||||
virtual ~QODBCDriver();
|
||||
bool hasFeature(DriverFeature f) const;
|
||||
void close();
|
||||
QSqlResult *createResult() const;
|
||||
QStringList tables(QSql::TableType) const;
|
||||
QSqlRecord record(const QString& tablename) const;
|
||||
QSqlIndex primaryIndex(const QString& tablename) const;
|
||||
QVariant handle() const;
|
||||
bool hasFeature(DriverFeature f) const Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType) const Q_DECL_OVERRIDE;
|
||||
QSqlRecord record(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
QString formatValue(const QSqlField &field,
|
||||
bool trimStrings) const;
|
||||
bool open(const QString& db,
|
||||
const QString& user,
|
||||
const QString& password,
|
||||
const QString& host,
|
||||
bool trimStrings) const Q_DECL_OVERRIDE;
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port,
|
||||
const QString& connOpts);
|
||||
const QString &connOpts) Q_DECL_OVERRIDE;
|
||||
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const Q_DECL_OVERRIDE;
|
||||
|
||||
bool isIdentifierEscaped(const QString &identifier, IdentifierType type) const;
|
||||
bool isIdentifierEscaped(const QString &identifier, IdentifierType type) const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
bool endTrans();
|
||||
|
|
|
|||
|
|
@ -98,16 +98,16 @@ class QSQLite2Result : public QSqlCachedResult
|
|||
public:
|
||||
explicit QSQLite2Result(const QSQLite2Driver* db);
|
||||
~QSQLite2Result();
|
||||
QVariant handle() const;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool gotoNext(QSqlCachedResult::ValueCache& row, int idx);
|
||||
bool reset (const QString& query);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
QSqlRecord record() const;
|
||||
void detachFromResultSet();
|
||||
void virtual_hook(int id, void *data);
|
||||
bool gotoNext(QSqlCachedResult::ValueCache &row, int idx) Q_DECL_OVERRIDE;
|
||||
bool reset(const QString &query) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
void detachFromResultSet() Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QSQLite2ResultPrivate* d;
|
||||
|
|
|
|||
|
|
@ -73,29 +73,29 @@ public:
|
|||
explicit QSQLite2Driver(QObject *parent = 0);
|
||||
explicit QSQLite2Driver(sqlite *connection, QObject *parent = 0);
|
||||
~QSQLite2Driver();
|
||||
bool hasFeature(DriverFeature f) const;
|
||||
bool open(const QString & db,
|
||||
const QString & user,
|
||||
const QString & password,
|
||||
const QString & host,
|
||||
bool hasFeature(DriverFeature f) const Q_DECL_OVERRIDE;
|
||||
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) { return open (db, user, password, host, port, QString()); }
|
||||
void close();
|
||||
QSqlResult *createResult() const;
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
QStringList tables(QSql::TableType) const;
|
||||
const QString &connOpts) Q_DECL_OVERRIDE;
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port) { return open(db, user, password, host, port, QString()); }
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType) const Q_DECL_OVERRIDE;
|
||||
|
||||
QSqlRecord record(const QString& tablename) const;
|
||||
QSqlIndex primaryIndex(const QString &table) const;
|
||||
QVariant handle() const;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType) const;
|
||||
QSqlRecord record(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString &table) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType) const Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -157,11 +157,11 @@ public:
|
|||
|
||||
protected:
|
||||
void cleanup();
|
||||
bool reset (const QString& query);
|
||||
int size();
|
||||
int numRowsAffected();
|
||||
bool gotoNext(QSqlCachedResult::ValueCache &values, int index);
|
||||
QSqlRecord record() const;
|
||||
bool reset(const QString &query) Q_DECL_OVERRIDE;
|
||||
int size() Q_DECL_OVERRIDE;
|
||||
int numRowsAffected() Q_DECL_OVERRIDE;
|
||||
bool gotoNext(QSqlCachedResult::ValueCache &values, int index) Q_DECL_OVERRIDE;
|
||||
QSqlRecord record() const Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QTDSResultPrivate* d;
|
||||
|
|
|
|||
|
|
@ -82,29 +82,29 @@ public:
|
|||
explicit QTDSDriver(QObject* parent = 0);
|
||||
QTDSDriver(LOGINREC* rec, const QString& host, const QString &db, QObject* parent = 0);
|
||||
~QTDSDriver();
|
||||
bool hasFeature(DriverFeature f) const;
|
||||
bool open(const QString & db,
|
||||
const QString & user,
|
||||
const QString & password,
|
||||
const QString & host,
|
||||
bool hasFeature(DriverFeature f) const Q_DECL_OVERRIDE;
|
||||
bool open(const QString &db,
|
||||
const QString &user,
|
||||
const QString &password,
|
||||
const QString &host,
|
||||
int port,
|
||||
const QString& connOpts);
|
||||
void close();
|
||||
QStringList tables(QSql::TableType) const;
|
||||
QSqlResult *createResult() const;
|
||||
QSqlRecord record(const QString& tablename) const;
|
||||
QSqlIndex primaryIndex(const QString& tablename) const;
|
||||
const QString &connOpts) Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
QStringList tables(QSql::TableType) const Q_DECL_OVERRIDE;
|
||||
QSqlResult *createResult() const Q_DECL_OVERRIDE;
|
||||
QSqlRecord record(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
QSqlIndex primaryIndex(const QString &tablename) const Q_DECL_OVERRIDE;
|
||||
|
||||
QString formatValue(const QSqlField &field,
|
||||
bool trimStrings) const;
|
||||
QVariant handle() const;
|
||||
bool trimStrings) const Q_DECL_OVERRIDE;
|
||||
QVariant handle() const Q_DECL_OVERRIDE;
|
||||
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const;
|
||||
QString escapeIdentifier(const QString &identifier, IdentifierType type) const Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
bool beginTransaction();
|
||||
bool commitTransaction();
|
||||
bool rollbackTransaction();
|
||||
bool beginTransaction() Q_DECL_OVERRIDE;
|
||||
bool commitTransaction() Q_DECL_OVERRIDE;
|
||||
bool rollbackTransaction() Q_DECL_OVERRIDE;
|
||||
private:
|
||||
void init();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -70,20 +70,20 @@ protected:
|
|||
|
||||
virtual bool gotoNext(ValueCache &values, int index) = 0;
|
||||
|
||||
QVariant data(int i);
|
||||
bool isNull(int i);
|
||||
bool fetch(int i);
|
||||
bool fetchNext();
|
||||
bool fetchPrevious();
|
||||
bool fetchFirst();
|
||||
bool fetchLast();
|
||||
QVariant data(int i) Q_DECL_OVERRIDE;
|
||||
bool isNull(int i) Q_DECL_OVERRIDE;
|
||||
bool fetch(int i) Q_DECL_OVERRIDE;
|
||||
bool fetchNext() Q_DECL_OVERRIDE;
|
||||
bool fetchPrevious() Q_DECL_OVERRIDE;
|
||||
bool fetchFirst() Q_DECL_OVERRIDE;
|
||||
bool fetchLast() Q_DECL_OVERRIDE;
|
||||
|
||||
int colCount() const;
|
||||
ValueCache &cache();
|
||||
|
||||
void virtual_hook(int id, void *data);
|
||||
void detachFromResultSet();
|
||||
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy);
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
void detachFromResultSet() Q_DECL_OVERRIDE;
|
||||
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy) Q_DECL_OVERRIDE;
|
||||
private:
|
||||
bool cacheNext();
|
||||
QSqlCachedResultPrivate *d;
|
||||
|
|
|
|||
|
|
@ -59,27 +59,27 @@ public:
|
|||
{ QSqlResult::setLastError(
|
||||
QSqlError(QLatin1String("Driver not loaded"), QLatin1String("Driver not loaded"), QSqlError::ConnectionError)); }
|
||||
protected:
|
||||
inline QVariant data(int) { return QVariant(); }
|
||||
inline bool reset (const QString&) { return false; }
|
||||
inline bool fetch(int) { return false; }
|
||||
inline bool fetchFirst() { return false; }
|
||||
inline bool fetchLast() { return false; }
|
||||
inline bool isNull(int) { return false; }
|
||||
inline int size() { return -1; }
|
||||
inline int numRowsAffected() { return 0; }
|
||||
inline QVariant data(int) Q_DECL_OVERRIDE { return QVariant(); }
|
||||
inline bool reset (const QString&) Q_DECL_OVERRIDE { return false; }
|
||||
inline bool fetch(int) Q_DECL_OVERRIDE { return false; }
|
||||
inline bool fetchFirst() Q_DECL_OVERRIDE { return false; }
|
||||
inline bool fetchLast() Q_DECL_OVERRIDE { return false; }
|
||||
inline bool isNull(int) Q_DECL_OVERRIDE { return false; }
|
||||
inline int size() Q_DECL_OVERRIDE { return -1; }
|
||||
inline int numRowsAffected() Q_DECL_OVERRIDE { return 0; }
|
||||
|
||||
inline void setAt(int) {}
|
||||
inline void setActive(bool) {}
|
||||
inline void setLastError(const QSqlError&) {}
|
||||
inline void setQuery(const QString&) {}
|
||||
inline void setSelect(bool) {}
|
||||
inline void setForwardOnly(bool) {}
|
||||
inline void setAt(int) Q_DECL_OVERRIDE {}
|
||||
inline void setActive(bool) Q_DECL_OVERRIDE {}
|
||||
inline void setLastError(const QSqlError&) Q_DECL_OVERRIDE {}
|
||||
inline void setQuery(const QString&) Q_DECL_OVERRIDE {}
|
||||
inline void setSelect(bool) Q_DECL_OVERRIDE {}
|
||||
inline void setForwardOnly(bool) Q_DECL_OVERRIDE {}
|
||||
|
||||
inline bool exec() { return false; }
|
||||
inline bool prepare(const QString&) { return false; }
|
||||
inline bool savePrepare(const QString&) { return false; }
|
||||
inline void bindValue(int, const QVariant&, QSql::ParamType) {}
|
||||
inline void bindValue(const QString&, const QVariant&, QSql::ParamType) {}
|
||||
inline bool exec() Q_DECL_OVERRIDE { return false; }
|
||||
inline bool prepare(const QString&) Q_DECL_OVERRIDE { return false; }
|
||||
inline bool savePrepare(const QString&) Q_DECL_OVERRIDE { return false; }
|
||||
inline void bindValue(int, const QVariant&, QSql::ParamType) Q_DECL_OVERRIDE {}
|
||||
inline void bindValue(const QString&, const QVariant&, QSql::ParamType) Q_DECL_OVERRIDE {}
|
||||
};
|
||||
|
||||
class QSqlNullDriver : public QSqlDriver
|
||||
|
|
@ -88,17 +88,16 @@ public:
|
|||
inline QSqlNullDriver(): QSqlDriver()
|
||||
{ QSqlDriver::setLastError(
|
||||
QSqlError(QLatin1String("Driver not loaded"), QLatin1String("Driver not loaded"), QSqlError::ConnectionError)); }
|
||||
inline bool hasFeature(DriverFeature) const { return false; }
|
||||
inline bool open(const QString &, const QString & , const QString & ,
|
||||
const QString &, int, const QString&)
|
||||
inline bool hasFeature(DriverFeature) const Q_DECL_OVERRIDE { return false; }
|
||||
inline bool open(const QString &, const QString &, const QString &, const QString &, int, const QString&) Q_DECL_OVERRIDE
|
||||
{ return false; }
|
||||
inline void close() {}
|
||||
inline QSqlResult *createResult() const { return new QSqlNullResult(this); }
|
||||
inline void close() Q_DECL_OVERRIDE {}
|
||||
inline QSqlResult *createResult() const Q_DECL_OVERRIDE { return new QSqlNullResult(this); }
|
||||
|
||||
protected:
|
||||
inline void setOpen(bool) {}
|
||||
inline void setOpenError(bool) {}
|
||||
inline void setLastError(const QSqlError&) {}
|
||||
inline void setOpen(bool) Q_DECL_OVERRIDE {}
|
||||
inline void setOpenError(bool) Q_DECL_OVERRIDE {}
|
||||
inline void setLastError(const QSqlError&) Q_DECL_OVERRIDE {}
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue