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.QVariant.Type)
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.QVariant.Type)
withtype = io.qt.core.QVariant.Type.Invalid
.QSqlField(String fieldName, QVariant.Type type)
QSqlField(String fieldName, QVariant.Type type, String tableName)
-
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()
String
name()
int
precision()
QSqlField.RequiredStatus
requiredStatus()
void
setAutoValue(boolean autoVal)
void
setDefaultValue(Object value)
void
setGenerated(boolean gen)
void
setLength(int fieldLength)
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)
void
setValue(Object value)
String
tableName()
String
toString()
QVariant.Type
type()
int
typeID()
Object
value()
-
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 = ""
type = io.qt.core.QVariant.Type.Invalid
-
QSqlField
-
QSqlField
-
QSqlField
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
clear
-
defaultValue
-
isAutoValue
-
isGenerated
-
isNull
-
isReadOnly
-
isValid
-
length
-
name
-
precision
-
requiredStatus
-
setAutoValue
-
setDefaultValue
-
setGenerated
-
setLength
-
setName
-
setPrecision
-
setReadOnly
-
setRequired
-
setRequiredStatus
-
setSqlType
-
setTableName
-
setType
-
setValue
-
tableName
-
type
-
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
-