primaryIndex
- Parameters:
tablename
-- Returns:
QtObjectInterface
, Cloneable
Handles a connection to a database
Java wrapper for Qt class QSqlDatabase
QSqlDatabase(QSqlDatabase other)
protected
QSqlDatabase(QSqlDriver driver)
protected
QSqlDatabase(String type)
static QSqlDatabase
addDatabase(QSqlDriver driver)
addDatabase(io.qt.sql.QSqlDriver, java.lang.String)
with connectionName = defaultConnection()
.static QSqlDatabase
addDatabase(QSqlDriver driver,
String connectionName)
static QSqlDatabase
addDatabase(String type)
addDatabase(java.lang.String, java.lang.String)
with connectionName = defaultConnection()
.static QSqlDatabase
addDatabase(String type,
String connectionName)
final void
assign(QSqlDatabase other)
clone()
static QSqlDatabase
cloneDatabase(QSqlDatabase other,
String connectionName)
static QSqlDatabase
cloneDatabase(String other,
String connectionName)
final void
close()
final boolean
commit()
final String
static QStringList
final String
static boolean
contains()
contains(java.lang.String)
with connectionName = defaultConnection()
.static boolean
static QSqlDatabase
database()
database(java.lang.String, boolean)
static QSqlDatabase
database(java.lang.String, boolean)
with open = true
.static QSqlDatabase
final String
static String
QSqlDatabase:: defaultConnection
final QSqlDriver
driver()
final String
static QStringList
drivers()
final QSqlQuery
exec()
exec(java.lang.String)
with query = (String)null
.final QSqlQuery
final String
hostName()
static boolean
isDriverAvailable(String name)
final boolean
isOpen()
final boolean
final boolean
isValid()
final QSqlError
final boolean
open()
final boolean
final String
password()
final int
port()
final QSqlIndex
primaryIndex(String tablename)
final QSqlRecord
static void
registerSqlDriver(String name,
QSqlDriverCreatorBase creator)
static void
removeDatabase(String connectionName)
final boolean
rollback()
final void
setConnectOptions(java.lang.String)
with options = (String)null
.final void
setConnectOptions(String options)
final void
setDatabaseName(String name)
static void
setDefaultConnection(String defaultConnection)
QSqlDatabase:: defaultConnection
final void
setHostName(String host)
final void
setNumericalPrecisionPolicy(QSql.NumericalPrecisionPolicy precisionPolicy)
final void
setPassword(String password)
final void
setPort(int p)
final void
setUserName(String name)
final QStringList
tables()
tables(io.qt.sql.QSql.TableType)
with type = io.qt.sql.QSql.TableType.Tables
.final QStringList
tables(QSql.TableType type)
toString()
operator<<(QDebug, QSqlDatabase)
final boolean
final String
userName()
dispose, equals, isDisposed
other
- driver
- type
- query
- user
- password
- other
- tablename
- tablename
- options
- name
- host
- precisionPolicy
- password
- p
- name
- type
- driver
- connectionName
- type
- connectionName
- other
- connectionName
- other
- connectionName
- connectionName
- connectionName
- open
- name
- name
- creator
- connectionName
- See QSqlDatabase::
defaultConnection
- See QSqlDatabase::
See operator<<(QDebug,
Creates and returns a copy of this object.
Overloaded function for exec(java.lang.String)
with query = (String)null
.
Overloaded function for setConnectOptions(java.lang.String)
with options = (String)null
.
Overloaded function for tables(io.qt.sql.QSql.TableType)
with type = io.qt.sql.QSql.TableType.Tables
.
Overloaded function for addDatabase(io.qt.sql.QSqlDriver, java.lang.String)
with connectionName = defaultConnection()
.
Overloaded function for addDatabase(java.lang.String, java.lang.String)
with connectionName = defaultConnection()
.
Overloaded function for contains(java.lang.String)
with connectionName = defaultConnection()
.
Overloaded function for database(java.lang.String, boolean)
with open = true
.
Overloaded function for database(java.lang.String, boolean)
with:
connectionName = defaultConnection()
open = true