| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | MIN_DECIMAL_DIVIDE_SCALE
The minimum scale when dividing Decimals |
| Modifier and Type | Method and Description |
|---|---|
| public NumberDataValue | absolute(NumberDataValue
The result of the previous call to this method, null
if not called yet. result)The SQL ABSOLUTE operator. |
| public NumberDataValue | Returns: dividend / divisorThe numerator dividend, NumberDataValue The denominator divisor, NumberDataValue The result of the previous call to this method, null
if not called yet. result)The SQL / operator. |
| public NumberDataValue | Returns: dividend / divisorThe numerator dividend, NumberDataValue The denominator divisor, NumberDataValue The result of the previous call to this method, null
if not called yet. result, int The scale of the result, for decimal type. If pass
in value < 0, can calculate it dynamically. scale)The SQL / operator. |
| public NumberDataValue | Returns: left - rightThe left operand left, NumberDataValue The right operand right, NumberDataValue The result of the previous call to this method, null
if not called yet. result)The SQL - operator. |
| public NumberDataValue | Returns: - operandThe result of the previous call to this method, null
if not called yet. result)The SQL unary - operator. |
| public NumberDataValue | Returns: dividend / divisorThe numerator dividend, NumberDataValue The denominator divisor, NumberDataValue The result of the previous call to this method, null
if not called yet. result)The SQL mod operator. |
| public NumberDataValue | Returns: The sum of the two addendsOne of the addends addend1, NumberDataValue The other addend addend2, NumberDataValue The result of the previous call to this method, null
if not called yet. result)The SQL + operator. |
| public void | |
| public NumberDataValue | sqrt(NumberDataValue
The result of the previous call to this method, null
if not call yet. result)The SQL SQRT operator. |
| public NumberDataValue | Returns: left * rightThe left operand left, NumberDataValue The right operand right, NumberDataValue The result of the previous call to this method, null
if not called yet. result)The SQL * operator. |
| MAX_DECIMAL_PRECISION_SCALE | back to summary |
|---|---|
| public static final int MAX_DECIMAL_PRECISION_SCALE | |
| MIN_DECIMAL_DIVIDE_SCALE | back to summary |
|---|---|
| public static final int MIN_DECIMAL_DIVIDE_SCALE The minimum scale when dividing Decimals | |
| absolute | back to summary |
|---|---|
| public NumberDataValue absolute(NumberDataValue result) throws StandardException The SQL ABSOLUTE operator. Absolute value of this NumberDataValue.
| |
| divide | back to summary |
|---|---|
| public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException The SQL / operator.
| |
| divide | back to summary |
|---|---|
| public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result, int scale) throws StandardException The SQL / operator.
| |
| minus | back to summary |
|---|---|
| public NumberDataValue minus(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException The SQL - operator.
| |
| minus | back to summary |
|---|---|
| public NumberDataValue minus(NumberDataValue result) throws StandardException The SQL unary - operator. Negates this NumberDataValue.
| |
| mod | back to summary |
|---|---|
| public NumberDataValue mod(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException The SQL mod operator.
| |
| plus | back to summary |
|---|---|
| public NumberDataValue plus(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result) throws StandardException The SQL + operator.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Number theValue) throws StandardException Set the value of this NumberDataValue to the given value. This is only intended to be called when mapping values from the Java space into the SQL space, e.g. parameters and return types from procedures and functions. Each specific type is only expected to handle the explicit type according the JDBC.
| |
| sqrt | back to summary |
|---|---|
| public NumberDataValue sqrt(NumberDataValue result) throws StandardException The SQL SQRT operator. Sqrt value of this NumberDataValue.
| |
| times | back to summary |
|---|---|
| public NumberDataValue times(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException The SQL * operator.
| |