public enum OverflowHandling extends java.lang.Enum<OverflowHandling>
Overflow occurs when converting a value to the target type would lead to loss of significant digits, or in other words: if the value doesn't fit in the target type.
 As an example attempts to store 1.0e300 in a Decimal32 leads to an overflow, as the maximum
 value it can hold is 9.999999e96.
 
| Enum Constant and Description | 
|---|
| ROUND_TO_INFINITYOverflow will round to +/-Infinity, depending on the signum of the value. | 
| THROW_EXCEPTIONOverflow will throw a  DecimalOverflowException. | 
| Modifier and Type | Method and Description | 
|---|---|
| static OverflowHandling | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static OverflowHandling[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final OverflowHandling ROUND_TO_INFINITY
Underflow will round to zero.
public static final OverflowHandling THROW_EXCEPTION
DecimalOverflowException.
 Underflow will round to zero.
public static OverflowHandling[] values()
for (OverflowHandling c : OverflowHandling.values()) System.out.println(c);
public static OverflowHandling 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 namejava.lang.NullPointerException - if the argument is nullCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.