- All Implemented Interfaces:
QtObjectInterface,Cloneable
Means of executing and manipulating SQL statements
Java wrapper for Qt class QSqlQuery
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enumQSqlQuery::BatchExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionOverloaded constructor forQSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)Overloaded constructor forQSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)withdb = new io.qt.sql.QSqlDatabase().QSqlQuery(String query, QSqlDatabase db) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddBindValue(Object val) Overloaded function foraddBindValue(java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1).final voidaddBindValue(Object val, QSql.ParamType type) final voidaddBindValue(Object val, QSql.ParamTypeFlag ... type) Overloaded function foraddBindValue(java.lang.Object, io.qt.sql.QSql.ParamType).final voidfinal intat()final voidOverloaded function forbindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1).final voidbindValue(int pos, Object val, QSql.ParamType type) final voidbindValue(int pos, Object val, QSql.ParamTypeFlag ... type) Overloaded function forbindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType).final voidOverloaded function forbindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1).final voidbindValue(String placeholder, Object val, QSql.ParamType type) final voidbindValue(String placeholder, Object val, QSql.ParamTypeFlag ... type) Overloaded function forbindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType).final ObjectboundValue(int pos) final ObjectboundValue(String placeholder) final voidclear()clone()Creates and returns a copy of this object.final QSqlDriverdriver()final booleanexec()final booleanfinal booleanOverloaded function forexecBatch(io.qt.sql.QSqlQuery.BatchExecutionMode)withmode = io.qt.sql.QSqlQuery.BatchExecutionMode.ValuesAsRows.final booleanfinal Stringfinal voidfinish()final booleanfirst()final booleanisActive()final booleanfinal booleanisNull(int field) final booleanfinal booleanisSelect()final booleanisValid()final booleanlast()final QSqlErrorfinal Objectfinal Stringfinal booleannext()final booleanfinal intfinal booleanfinal booleanprevious()final QSqlRecordrecord()final QSqlResultresult()final booleanseek(int i) Overloaded function forseek(int, boolean)withrelative = false.final booleanseek(int i, boolean relative) final voidsetForwardOnly(boolean forward) final voidsetNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy) final intsize()final Objectvalue(int i) final ObjectMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSqlQuery
- Parameters:
db-
-
QSqlQuery
- Parameters:
other-
-
QSqlQuery
- Parameters:
r-
-
QSqlQuery
- Parameters:
query-db-
-
QSqlQuery
Overloaded constructor for
QSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)withdb = new io.qt.sql.QSqlDatabase(). -
QSqlQuery
public QSqlQuery()Overloaded constructor for
QSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)with:
query = (String)nulldb = new io.qt.sql.QSqlDatabase()
-
-
Method Details
-
addBindValue
- Parameters:
val-type-
-
at
- Returns:
-
bindValue
- Parameters:
placeholder-val-type-
-
bindValue
- Parameters:
pos-val-type-
-
boundValue
- Parameters:
placeholder-- Returns:
-
boundValue
- Parameters:
pos-- Returns:
-
boundValues
- Returns:
-
clear
-
driver
- Returns:
-
exec
- Returns:
-
exec
- Parameters:
query-- Returns:
-
execBatch
- Parameters:
mode-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
executedQuery
- Returns:
-
finish
- Since:
- This function was introduced in Qt 4.3.2.
-
first
- Returns:
-
isActive
- Returns:
-
isForwardOnly
- Returns:
-
isNull
- Parameters:
name-- Returns:
-
isNull
- Parameters:
field-- Returns:
-
isSelect
- Returns:
-
isValid
- Returns:
-
last
- Returns:
-
lastError
- Returns:
-
lastInsertId
- Returns:
-
lastQuery
- Returns:
-
next
- Returns:
-
nextResult
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
numRowsAffected
- Returns:
-
numericalPrecisionPolicy
- Returns:
-
assign
- Parameters:
other-
-
prepare
- Parameters:
query-- Returns:
-
previous
- Returns:
-
record
- Returns:
-
result
- Returns:
-
seek
- Parameters:
i-relative-- Returns:
-
setForwardOnly
- Parameters:
forward-
-
setNumericalPrecisionPolicy
@QtUninvokable public final void setNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy) - Parameters:
precisionPolicy-
-
size
- Returns:
-
value
- Parameters:
name-- Returns:
-
value
- Parameters:
i-- Returns:
-
clone
Creates and returns a copy of this object.
-
addBindValue
Overloaded function for
addBindValue(java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1). -
addBindValue
Overloaded function for
addBindValue(java.lang.Object, io.qt.sql.QSql.ParamType). -
bindValue
Overloaded function for
bindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1). -
bindValue
@QtUninvokable public final void bindValue(String placeholder, Object val, QSql.ParamTypeFlag ... type) Overloaded function for
bindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType). -
bindValue
Overloaded function for
bindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1). -
bindValue
Overloaded function for
bindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType). -
execBatch
Overloaded function for
execBatch(io.qt.sql.QSqlQuery.BatchExecutionMode)withmode = io.qt.sql.QSqlQuery.BatchExecutionMode.ValuesAsRows. -
seek
Overloaded function for
seek(int, boolean)withrelative = false.
-