- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
Means of executing and manipulating SQL statements
Java wrapper for Qt's class QSqlQuery
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enum QSqlQuery::BatchExecutionModeNested classes/interfaces inherited from class io.qt.QtObject
io.qt.QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionOverloaded constructor forQSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)protectedQSqlQuery(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.Deprecated.QSqlQuery is not meant to be copied.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 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 io.qt.core.QList<Object>final voidclear()clone()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 voidfinal Objectvalue(int i) final ObjectMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSqlQuery
-
QSqlQuery
-
QSqlQuery
Deprecated.QSqlQuery is not meant to be copied. Use move construction instead. -
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()
-
QSqlQuery
-
QSqlQuery
protected QSqlQuery(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
addBindValue
Overloaded function for
addBindValue(java.lang.Object, io.qt.sql.QSql.ParamType). -
addBindValue
Overloaded function for
addBindValue(java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1). -
addBindValue
-
at
@QtUninvokable public final int at() -
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(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType)withtype = new io.qt.sql.QSql.ParamType(1). -
bindValue
-
bindValue
Overloaded function for
bindValue(int, 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
-
boundValue
-
boundValue
-
boundValues
-
clear
@QtUninvokable public final void clear() -
driver
-
exec
@QtUninvokable public final boolean exec() -
exec
-
execBatch
@QtUninvokable public final boolean execBatch()Overloaded function for
execBatch(io.qt.sql.QSqlQuery.BatchExecutionMode)withmode = io.qt.sql.QSqlQuery.BatchExecutionMode.ValuesAsRows. -
execBatch
-
executedQuery
-
finish
@QtUninvokable public final void finish() -
first
@QtUninvokable public final boolean first() -
isActive
@QtUninvokable public final boolean isActive() -
isForwardOnly
@QtUninvokable public final boolean isForwardOnly() -
isNull
-
isNull
@QtUninvokable public final boolean isNull(int field) -
isSelect
@QtUninvokable public final boolean isSelect() -
isValid
@QtUninvokable public final boolean isValid() -
last
@QtUninvokable public final boolean last() -
lastError
-
lastInsertId
-
lastQuery
-
next
@QtUninvokable public final boolean next() -
nextResult
@QtUninvokable public final boolean nextResult() -
numRowsAffected
@QtUninvokable public final int numRowsAffected() -
numericalPrecisionPolicy
-
prepare
-
previous
@QtUninvokable public final boolean previous() -
record
-
result
-
seek
@QtUninvokable public final boolean seek(int i) Overloaded function for
seek(int, boolean)withrelative = false. -
seek
@QtUninvokable public final boolean seek(int i, boolean relative) -
setForwardOnly
@QtUninvokable public final void setForwardOnly(boolean forward) -
setNumericalPrecisionPolicy
@QtUninvokable public final void setNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy) -
size
@QtUninvokable public final int size() -
swap
-
value
-
value
-
clone
-