|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QSql.NumericalPrecisionPolicy>
com.trolltech.qt.sql.QSql.NumericalPrecisionPolicy
public static enum QSql.NumericalPrecisionPolicy
This enum type describes at which precision levels numercial values are read from a database.
Some databases support numerical values with a precision that is not storable in a C++ basic data type. The default behavior is to bind these values as a QString. This enum can be used to override this behavior.
Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database just returns an error in this case.
Enum Constant Summary | |
---|---|
HighPrecision
The default behavior - try to preserve maximum precision. |
|
LowPrecisionDouble
Force double values. |
|
LowPrecisionInt32
Force 32bit integer values. |
|
LowPrecisionInt64
Force 64bit integer values. |
Method Summary | |
---|---|
static QSql.NumericalPrecisionPolicy |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QSql.NumericalPrecisionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QSql.NumericalPrecisionPolicy[] |
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 QSql.NumericalPrecisionPolicy LowPrecisionInt32
Force 32bit integer values. In case of floating point numbers, the fractional part is silently discarded.
public static final QSql.NumericalPrecisionPolicy LowPrecisionInt64
Force 64bit integer values. In case of floating point numbers, the fractional part is silently discarded.
public static final QSql.NumericalPrecisionPolicy LowPrecisionDouble
Force double values.
public static final QSql.NumericalPrecisionPolicy HighPrecision
The default behavior - try to preserve maximum precision.
Method Detail |
---|
public static final QSql.NumericalPrecisionPolicy[] values()
for(QSql.NumericalPrecisionPolicy c : QSql.NumericalPrecisionPolicy.values()) System.out.println(c);
public static QSql.NumericalPrecisionPolicy 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()
QtEnumerator
value
in interface QtEnumerator
public static QSql.NumericalPrecisionPolicy resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |