java.lang.Object
io.qt.QtObject
io.qt.sql.QSqlField
- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
Manipulates the fields in SQL database tables and views
Java wrapper for Qt's class QSqlField
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.qt.QtObject
io.qt.QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionOverloaded constructor forQSqlField(java.lang.String, io.qt.core.QVariant.Type)Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QVariant.Type)withtype = io.qt.core.QVariant.Type.Invalid.protectedQSqlField(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidclear()clone()Creates and returns a copy of this object.final ObjectbooleanUsed 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 booleanfinal booleanfinal booleanisNull()final booleanfinal booleanisValid()final intlength()final Stringname()final intfinal QSqlField.RequiredStatusfinal voidsetAutoValue(boolean autoVal) final voidsetDefaultValue(Object value) final voidsetGenerated(boolean gen) final voidsetLength(int fieldLength) final voidfinal voidsetPrecision(int precision) final voidsetReadOnly(boolean readOnly) final voidsetRequired(boolean required) final voidfinal voidsetSqlType(int type) final voidsetTableName(String tableName) final voidsetType(io.qt.core.QVariant.Type type) final voidfinal StringtoString()final io.qt.core.QVariant.Typetype()final inttypeID()final Objectvalue()Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QSqlField
-
QSqlField
Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QVariant.Type)withtype = io.qt.core.QVariant.Type.Invalid. -
QSqlField
public QSqlField()Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QVariant.Type)with:
fieldName = (String)nulltype = io.qt.core.QVariant.Type.Invalid
-
QSqlField
-
QSqlField
-
QSqlField
protected QSqlField(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
clear
@QtUninvokable public final void clear() -
defaultValue
-
isAutoValue
@QtUninvokable public final boolean isAutoValue() -
isGenerated
@QtUninvokable public final boolean isGenerated() -
isNull
@QtUninvokable public final boolean isNull() -
isReadOnly
@QtUninvokable public final boolean isReadOnly() -
isValid
@QtUninvokable public final boolean isValid() -
length
@QtUninvokable public final int length() -
name
-
assign
-
precision
@QtUninvokable public final int precision() -
requiredStatus
-
setAutoValue
@QtUninvokable public final void setAutoValue(boolean autoVal) -
setDefaultValue
-
setGenerated
@QtUninvokable public final void setGenerated(boolean gen) -
setLength
@QtUninvokable public final void setLength(int fieldLength) -
setName
-
setPrecision
@QtUninvokable public final void setPrecision(int precision) -
setReadOnly
@QtUninvokable public final void setReadOnly(boolean readOnly) -
setRequired
@QtUninvokable public final void setRequired(boolean required) -
setRequiredStatus
-
setSqlType
@QtUninvokable public final void setSqlType(int type) -
setTableName
-
setType
@QtUninvokable public final void setType(io.qt.core.QVariant.Type type) -
setValue
-
tableName
-
type
@QtUninvokable public final io.qt.core.QVariant.Type type() -
typeID
@QtUninvokable public final int typeID() -
value
-
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.
-