- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QSqlDatabase extends QtObject implements Cloneable
Handles a connection to a database
Java wrapper for Qt class QSqlDatabase
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QSqlDatabase()
protected
QSqlDatabase(QtObject.QPrivateConstructor p)
Constructor for internal use only.QSqlDatabase(QSqlDatabase other)
protected
QSqlDatabase(QSqlDriver driver)
protected
QSqlDatabase(String type)
-
Method Summary
-
Constructor Details
-
QSqlDatabase
public QSqlDatabase() -
QSqlDatabase
-
QSqlDatabase
-
QSqlDatabase
-
QSqlDatabase
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
close
-
commit
-
connectOptions
-
connectionName
-
databaseName
-
driver
-
driverName
-
exec
Overloaded function for
exec(java.lang.String)
withquery = ""
. -
exec
-
hostName
-
isOpen
-
isOpenError
-
isValid
-
lastError
-
numericalPrecisionPolicy
-
open
-
open
-
password
-
port
-
primaryIndex
-
record
-
rollback
-
setConnectOptions
Overloaded function for
setConnectOptions(java.lang.String)
withoptions = ""
. -
setConnectOptions
-
setDatabaseName
-
setHostName
-
setNumericalPrecisionPolicy
@QtUninvokable public final void setNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy) -
setPassword
-
setPort
-
setUserName
-
tables
Overloaded function for
tables(io.qt.sql.QSql.TableType)
withtype = io.qt.sql.QSql.TableType.Tables
. -
tables
-
transaction
-
userName
-
addDatabase
Overloaded function for
addDatabase(io.qt.sql.QSqlDriver, java.lang.String)
withconnectionName = defaultConnection()
. -
addDatabase
-
addDatabase
Overloaded function for
addDatabase(java.lang.String, java.lang.String)
withconnectionName = defaultConnection()
. -
addDatabase
-
cloneDatabase
-
cloneDatabase
-
connectionNames
-
contains
public static boolean contains()Overloaded function for
contains(java.lang.String)
withconnectionName = defaultConnection()
. -
contains
-
database
Overloaded function for
database(java.lang.String, boolean)
withopen = true
. -
database
Overloaded function for
database(java.lang.String, boolean)
with:
connectionName = defaultConnection()
open = true
-
database
-
drivers
-
isDriverAvailable
-
registerSqlDriver
-
removeDatabase
-
setDefaultConnection
-
defaultConnection
-
toString
-
clone
-