Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db.datatypes
Class NumericDataType.MinMaxValue

java.lang.Object
  extended by 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.


Field Summary
static int FLOAT
           
static int SIGNED_INT
          Valid values for valueType argument of constructor.
static int UNSIGNED_INT
           
 
Constructor Summary
NumericDataType.MinMaxValue()
           
NumericDataType.MinMaxValue(java.lang.String minValue, java.lang.String maxValue, int valueType)
           
 
Method Summary
 java.math.BigDecimal getMaxValue()
           
 java.math.BigDecimal getMinValue()
           
 int getValueType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NumericDataType.MinMaxValue

public NumericDataType.MinMaxValue()

NumericDataType.MinMaxValue

public NumericDataType.MinMaxValue(java.lang.String minValue,
                                   java.lang.String maxValue,
                                   int valueType)
Method Detail

getMinValue

public java.math.BigDecimal getMinValue()

getMaxValue

public java.math.BigDecimal getMaxValue()

getValueType

public int getValueType()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.