88 void bind(
const QVariantList& aValues);
196 bool seek(
int aIndex,
bool aRelative =
false);
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
BPS datastore class.
Definition: bpsdatastore.h:61
BPS query class.
Definition: bpsquery.h:23
QSqlRecord record() const
QVariantMap valuesAsMap() const
QVariantList valuesAsList() const
void bind(const QVariantList &aValues)
Bind a list of value to a SQL parameter.
void execute(const QVariantList &aValues)
Execute a query.
BpsQuery(BpsDatastore *aDatastore)
Constructor for BpsQuery objects.
bool isNull(int aField) const
Check if a value of the current cursor row is NULL.
bool previous()
Retrieves the previous record in the result, if available, and positions the query on the retrieved r...
bool next()
Retrieves the next record in the result, if available, and positions the query on the retrieved recor...
QSqlQuery * query() const
bool last()
Retrieves the last record in the result, if available, and positions the query on the retrieved recor...
bool seek(int aIndex, bool aRelative=false)
Retrieves the record at position index, if available, and positions the query on the retrieved record...
void execute(const QString &aSql=QString())
Execute a query.
bool isForwardOnly() const
int numRowsAffected() const
QVariant value(int aField) const
Get a field value from the current cursor row.
void execute(const QVariant &aValue)
Execute a query.
BpsSqlValues values() const
void bind(const QVariant &aValue)
Bind a value to a SQL parameter.
void setForwardOnly(bool aForward=true)
Enable or disable forward only mode.
BpsDatastore * datastore() const
void clear()
Clears the result set and releases any local or database resources held by the query.
void prepare(const QString &aSql)
Prepare a SQL statement.
bool first()
Retrieves the first record in the result, if available, and positions the query on the retrieved reco...
Convenience class to help composing select, insert and update statements.
Definition: bpssqlvalues.h:54