- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Means of executing and manipulating SQL statements
Java wrapper for Qt class QSqlQuery
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQSqlQuery::BatchExecutionMode
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQSqlQuery(java.lang.String, io.qt.sql.QSqlDatabase)
SeeQSqlQuery::
QSqlQuery(QSqlQuery) 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 void
addBindValue
(Object val) Overloaded function foraddBindValue(java.lang.Object, io.qt.sql.QSql.ParamType)
withtype = new io.qt.sql.QSql.ParamType(1)
.final void
addBindValue
(Object val, QSql.ParamType type) final void
addBindValue
(Object val, QSql.ParamTypeFlag ... type) Overloaded function foraddBindValue(java.lang.Object, io.qt.sql.QSql.ParamType)
.final void
final int
at()
final void
Overloaded function forbindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType)
withtype = new io.qt.sql.QSql.ParamType(1)
.final void
bindValue
(int pos, Object val, QSql.ParamType type) final void
bindValue
(int pos, Object val, QSql.ParamTypeFlag ... type) Overloaded function forbindValue(int, java.lang.Object, io.qt.sql.QSql.ParamType)
.final void
Overloaded function forbindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType)
withtype = new io.qt.sql.QSql.ParamType(1)
.final void
bindValue
(String placeholder, Object val, QSql.ParamType type) final void
bindValue
(String placeholder, Object val, QSql.ParamTypeFlag ... type) Overloaded function forbindValue(java.lang.String, java.lang.Object, io.qt.sql.QSql.ParamType)
.final Object
boundValue
(int pos) final Object
boundValue
(String placeholder) final void
clear()
clone()
Creates and returns a copy of this object.final QSqlDriver
driver()
final boolean
exec()
final boolean
final boolean
Overloaded function forexecBatch(io.qt.sql.QSqlQuery.BatchExecutionMode)
withmode = io.qt.sql.QSqlQuery.BatchExecutionMode.ValuesAsRows
.final boolean
final String
final void
finish()
final boolean
first()
final boolean
isActive()
final boolean
final boolean
isNull
(int field) final boolean
final boolean
isSelect()
final boolean
isValid()
final boolean
last()
final QSqlError
final Object
final String
final boolean
next()
final boolean
final int
final boolean
final boolean
previous()
final QSqlRecord
record()
final QSqlResult
result()
final boolean
seek
(int i) Overloaded function forseek(int, boolean)
withrelative = false
.final boolean
seek
(int i, boolean relative) final void
setForwardOnly
(boolean forward) final void
setNumericalPrecisionPolicy
(QSql.NumericalPrecisionPolicy precisionPolicy) final int
size()
final void
final Object
value
(int i) final Object
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSqlQuery
-
QSqlQuery
See
QSqlQuery::
QSqlQuery(QSqlQuery) -
QSqlQuery
-
QSqlQuery
-
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)null
db = new io.qt.sql.QSqlDatabase()
-
-
Method Details
-
addBindValue
-
at
-
bindValue
-
bindValue
-
boundValue
-
boundValue
-
boundValues
-
clear
-
driver
-
exec
-
exec
-
execBatch
-
executedQuery
-
finish
-
first
-
isActive
-
isForwardOnly
-
isNull
-
isNull
-
isSelect
-
isValid
-
last
-
lastError
-
lastInsertId
-
lastQuery
-
next
-
nextResult
-
numRowsAffected
-
numericalPrecisionPolicy
-
assign
-
prepare
-
previous
-
record
-
result
-
seek
-
setForwardOnly
-
setNumericalPrecisionPolicy
@QtUninvokable public final void setNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy) -
size
-
swap
-
value
-
value
-
clone
Creates and returns a copy of this object.
See
QSqlQuery::
QSqlQuery(QSqlQuery) -
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
.
-