- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Manipulates the fields in SQL database tables and views
Java wrapper for Qt class QSqlField
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionOverloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
withtableName = (String)null
.QSqlField
(String fieldName, QVariant.Type type) Deprecated.Use the constructor using a QMetaType insteadQSqlField
(String fieldName, QVariant.Type type, String tableName) Deprecated.Use the constructor using a QMetaType instead@param fieldName -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
clear()
clone()
Creates and returns a copy of this object.final Object
final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QSqlField)
.final boolean
final boolean
final boolean
isNull()
final boolean
final boolean
isValid()
final int
length()
final QMetaType
metaType()
final String
name()
final int
final QSqlField.RequiredStatus
final void
setAutoValue
(boolean autoVal) final void
setDefaultValue
(Object value) final void
setGenerated
(boolean gen) final void
setLength
(int fieldLength) final void
setMetaType
(QMetaType type) final void
final void
setPrecision
(int precision) final void
setReadOnly
(boolean readOnly) final void
setRequired
(boolean required) final void
final void
setSqlType
(int type) SeeQSqlField::
setSqlType(int) final void
setTableName
(String tableName) final void
setType
(QVariant.Type type) Deprecated.UsesetMetaType(io.qt.core.QMetaType)
instead@param typefinal void
final void
final String
toString()
Seeoperator<<(QDebug,
QSqlField) final QVariant.Type
type()
Deprecated.UsemetaType()
instead@returnfinal int
typeID()
SeeQSqlField::
typeID()const final Object
value()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QSqlField
- Parameters:
other
-
-
QSqlField
- Parameters:
fieldName
-type
-tableName
-- Since:
- This function was introduced in Qt 6.0.
-
QSqlField
Deprecated.Use the constructor using a QMetaType instead@param fieldNameSee
QSqlField::
QSqlField(QString, QVariant::Type, QString) - Parameters:
type
-tableName
-
-
QSqlField
Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
withtableName = (String)null
. -
QSqlField
Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
with:
type = new io.qt.core.QMetaType()
tableName = (String)null
-
QSqlField
public QSqlField()Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
with:
fieldName = (String)null
type = new io.qt.core.QMetaType()
tableName = (String)null
-
QSqlField
Deprecated.Use the constructor using a QMetaType insteadOverloaded constructor for
QSqlField(java.lang.String, io.qt.core.QVariant.Type, java.lang.String)
withtableName = (String)null
.
-
-
Method Details
-
clear
-
defaultValue
- Returns:
-
isAutoValue
- Returns:
-
isGenerated
- Returns:
-
isNull
- Returns:
-
isReadOnly
- Returns:
-
isValid
- Returns:
-
length
- Returns:
-
metaType
- Returns:
-
name
- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
precision
- Returns:
-
requiredStatus
- Returns:
-
setAutoValue
- Parameters:
autoVal
-
-
setDefaultValue
- Parameters:
value
-
-
setGenerated
- Parameters:
gen
-
-
setLength
- Parameters:
fieldLength
-
-
setMetaType
- Parameters:
type
-
-
setName
- Parameters:
name
-
-
setPrecision
- Parameters:
precision
-
-
setReadOnly
- Parameters:
readOnly
-
-
setRequired
- Parameters:
required
-
-
setRequiredStatus
- Parameters:
status
-
-
setSqlType
See
QSqlField::
setSqlType(int) - Parameters:
type
-
-
setTableName
- Parameters:
tableName
-
-
setType
Deprecated.UsesetMetaType(io.qt.core.QMetaType)
instead@param typeSee
QSqlField::
setType(QVariant::Type) -
setValue
- Parameters:
value
-
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 6.6.
-
tableName
- Returns:
-
type
Deprecated.UsemetaType()
instead@returnSee
QSqlField::
type()const -
typeID
See
QSqlField::
typeID()const - Returns:
-
value
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QSqlField)
. -
toString
See
operator<<(QDebug,
QSqlField) -
clone
Creates and returns a copy of this object.
-