java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.sql.QSqlField
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QSqlField extends QtObject implements Cloneable
Manipulates the fields in SQL database tables and views
Java wrapper for Qt class QSqlField
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QSqlField.RequiredStatus
Java wrapper for Qt enum QSqlField::RequiredStatus -
Constructor Summary
Constructors Modifier Constructor Description QSqlField()
Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
protected
QSqlField(QtObject.QPrivateConstructor p)
Constructor for internal use only.QSqlField(QSqlField other)
QSqlField(String fieldName)
Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
QSqlField(String fieldName, QMetaType type)
Overloaded constructor forQSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
withtableName = ""
.QSqlField(String fieldName, QMetaType type, String tableName)
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 -
Method Summary
Modifier and Type Method Description void
clear()
QSqlField
clone()
Object
defaultValue()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
boolean
isAutoValue()
boolean
isGenerated()
boolean
isNull()
boolean
isReadOnly()
boolean
isValid()
int
length()
QMetaType
metaType()
String
name()
int
precision()
QSqlField.RequiredStatus
requiredStatus()
void
setAutoValue(boolean autoVal)
void
setDefaultValue(Object value)
void
setGenerated(boolean gen)
void
setLength(int fieldLength)
void
setMetaType(QMetaType type)
void
setName(String name)
void
setPrecision(int precision)
void
setReadOnly(boolean readOnly)
void
setRequired(boolean required)
void
setRequiredStatus(QSqlField.RequiredStatus status)
void
setSqlType(int type)
void
setTableName(String tableName)
void
setType(QVariant.Type type)
Deprecated.UsesetMetaType(io.qt.core.QMetaType)
insteadvoid
setValue(Object value)
String
tableName()
String
toString()
QVariant.Type
type()
Deprecated.UsemetaType()
insteadint
typeID()
Object
value()
-
Constructor Details
-
QSqlField
-
QSqlField
Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
withtableName = ""
. -
QSqlField
Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
with:
type = new io.qt.core.QMetaType()
tableName = ""
-
QSqlField
public QSqlField()Overloaded constructor for
QSqlField(java.lang.String, io.qt.core.QMetaType, java.lang.String)
with:
fieldName = ""
type = new io.qt.core.QMetaType()
tableName = ""
-
QSqlField
-
QSqlField
Deprecated.Use the constructor using a QMetaType insteadOverloaded constructor for
QSqlField(java.lang.String, io.qt.core.QVariant.Type, java.lang.String)
withtableName = ""
. -
QSqlField
Deprecated.Use the constructor using a QMetaType instead -
QSqlField
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
clear
-
defaultValue
-
isAutoValue
-
isGenerated
-
isNull
-
isReadOnly
-
isValid
-
length
-
metaType
-
name
-
precision
-
requiredStatus
-
setAutoValue
-
setDefaultValue
-
setGenerated
-
setLength
-
setMetaType
-
setName
-
setPrecision
-
setReadOnly
-
setRequired
-
setRequiredStatus
-
setSqlType
-
setTableName
-
setType
Deprecated.UsesetMetaType(io.qt.core.QMetaType)
instead -
setValue
-
tableName
-
type
Deprecated.UsemetaType()
instead -
typeID
-
value
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-