java.lang.Object
io.qt.QtObject
io.qt.sql.QSqlError
- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
SQL database error information
Java wrapper for Qt's class QSqlError
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.qt.QtObject
io.qt.QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionOverloaded constructor forQSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)Overloaded constructor forQSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)Overloaded constructor forQSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)QSqlError(String driverText, String databaseText, QSqlError.ErrorType type) Overloaded constructor forQSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)witherrorCode = (String)null.QSqlError(String driverText, String databaseText, QSqlError.ErrorType type, int number) Deprecated.QSqlError(String driverText, String databaseText, QSqlError.ErrorType type, String errorCode) protectedQSqlError(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclone()Creates and returns a copy of this object.final Stringfinal StringbooleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.inthashCode()final booleanisValid()final Stringfinal intnumber()Deprecated.final voidsetDatabaseText(String databaseText) Deprecated.final voidsetDriverText(String driverText) Deprecated.final voidsetNumber(int number) Deprecated.final voidsetType(QSqlError.ErrorType type) Deprecated.final voidfinal Stringtext()toString()final QSqlError.ErrorTypetype()Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QSqlError
-
QSqlError
Overloaded constructor for
QSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)witherrorCode = (String)null. -
QSqlError
Overloaded constructor for
QSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)with:
type = io.qt.sql.QSqlError.ErrorType.NoErrorerrorCode = (String)null
-
QSqlError
Overloaded constructor for
QSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)with:
databaseText = (String)nulltype = io.qt.sql.QSqlError.ErrorType.NoErrorerrorCode = (String)null
-
QSqlError
public QSqlError()Overloaded constructor for
QSqlError(java.lang.String, java.lang.String, io.qt.sql.QSqlError.ErrorType, java.lang.String)with:
driverText = (String)nulldatabaseText = (String)nulltype = io.qt.sql.QSqlError.ErrorType.NoErrorerrorCode = (String)null
-
QSqlError
public QSqlError(String driverText, String databaseText, QSqlError.ErrorType type, String errorCode) -
QSqlError
@Deprecated public QSqlError(String driverText, String databaseText, QSqlError.ErrorType type, int number) Deprecated. -
QSqlError
protected QSqlError(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
databaseText
-
driverText
-
isValid
@QtUninvokable public final boolean isValid() -
nativeErrorCode
-
number
Deprecated. -
assign
-
setDatabaseText
Deprecated. -
setDriverText
Deprecated. -
setNumber
Deprecated. -
setType
Deprecated. -
swap
-
text
-
type
-
equals
Description copied from class:io.qt.QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation.- Overrides:
equalsin classio.qt.QtObject- Parameters:
other- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
@QtUninvokable public int hashCode() -
toString
-
clone
Creates and returns a copy of this object.
-