|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QSqlField.RequiredStatus>
com.trolltech.qt.sql.QSqlField.RequiredStatus
public static enum QSqlField.RequiredStatus
Specifies whether the field is required or optional.
Enum Constant Summary | |
---|---|
Optional
The fields doesn't have to be specified when inserting records. |
|
Required
The field must be specified when inserting records. |
|
Unknown
The database driver couldn't determine whether the field is required or optional. |
Method Summary | |
---|---|
static QSqlField.RequiredStatus |
resolve(int value)
|
int |
value()
|
static QSqlField.RequiredStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QSqlField.RequiredStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QSqlField.RequiredStatus Unknown
The database driver couldn't determine whether the field is required or optional.
public static final QSqlField.RequiredStatus Optional
The fields doesn't have to be specified when inserting records.
public static final QSqlField.RequiredStatus Required
The field must be specified when inserting records.
Method Detail |
---|
public static final QSqlField.RequiredStatus[] values()
for(QSqlField.RequiredStatus c : QSqlField.RequiredStatus.values()) System.out.println(c);
public static QSqlField.RequiredStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static QSqlField.RequiredStatus resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |