Skip navigation links
oracle.javatools.db.datatypes
Class NumericDataType.MinMaxValue
java.lang.Object
oracle.javatools.db.datatypes.NumericDataType.MinMaxValue
- Enclosing class:
- NumericDataType
-
public static class NumericDataType.MinMaxValue
- extends java.lang.Object
public static class MinMaxValue defines the minimum and maximum value range of integer and floating-point numbers for use by NumericDataType.validateDefaultValue(). For integers that can be signed, minValue is the largest negative number, and maxValue the largest positive number. For unsigned integers, minValue is usually zero and maxValue the largest positive number. For floating-point numbers, minValue is the smallest positive number, and maxValue the largest positive number.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIGNED_INT
public static final int SIGNED_INT
- Valid values for valueType argument of constructor. Determines how a MinMaxValue is interpreted by NumericDataType.validateDefaultValue(). SIGNED_INT means a default value will be compared with the supplied minValue and maxValue, unless the datatype usage includes an UNSIGNED qualifier (e.g. mySQL and Sybase Adaptive Server Anywhere integers), when it will be compared with 0 .. (maxValue*2)-1. UNSIGNED_INT means the default value is compared with the minValue and maxValue only, e.g. Sybase Adaptive Server Anywhere TINYINT, which is always treated as unsigned, regardless of whether the datatype usage includes the UNSIGNED qualifier. FLOAT means that mainValue and maxValue are treated as floating point numbers. minValue should be the smallest positive value and maxValue the largest positive value. The NumericDataType class computes the negative minValue and maxValue from the positive values.
- See Also:
- Constant Field Values
UNSIGNED_INT
public static final int UNSIGNED_INT
-
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
-
- See Also:
- Constant Field Values
NumericDataType.MinMaxValue
public NumericDataType.MinMaxValue()
NumericDataType.MinMaxValue
public NumericDataType.MinMaxValue(java.lang.String minValue,
java.lang.String maxValue,
int valueType)
getMinValue
public java.math.BigDecimal getMinValue()
getMaxValue
public java.math.BigDecimal getMaxValue()
getValueType
public int getValueType()
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.