|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
MAX_DECIMAL_PRECISION_SCALE
|
static int |
MIN_DECIMAL_DIVIDE_SCALE
The minimum scale when dividing Decimals |
Fields inherited from interface org.apache.derby.iapi.types.Orderable |
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN |
Method Summary | |
NumberDataValue |
absolute(NumberDataValue result)
The SQL ABSOLUTE operator. |
NumberDataValue |
divide(NumberDataValue dividend,
NumberDataValue divisor,
NumberDataValue result)
The SQL / operator. |
NumberDataValue |
divide(NumberDataValue dividend,
NumberDataValue divisor,
NumberDataValue result,
int scale)
The SQL / operator. |
int |
getDecimalValuePrecision()
Return the SQL precision of this specific DECIMAL value. |
int |
getDecimalValueScale()
Return the SQL scale of this specific DECIMAL value. |
NumberDataValue |
minus(NumberDataValue result)
The SQL unary - operator. |
NumberDataValue |
minus(NumberDataValue left,
NumberDataValue right,
NumberDataValue result)
The SQL - operator. |
NumberDataValue |
mod(NumberDataValue dividend,
NumberDataValue divisor,
NumberDataValue result)
The SQL mod operator. |
NumberDataValue |
plus(NumberDataValue addend1,
NumberDataValue addend2,
NumberDataValue result)
The SQL + operator. |
void |
setValue(java.lang.Number theValue)
Set the value of this NumberDataValue to the given value. |
NumberDataValue |
sqrt(NumberDataValue result)
The SQL SQRT operator. |
NumberDataValue |
times(NumberDataValue left,
NumberDataValue right,
NumberDataValue result)
The SQL * operator. |
Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
checkHostVariable, coalesce, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getClone, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTypeName, greaterOrEquals, greaterThan, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, typePrecedence, typeToBigDecimal |
Methods inherited from interface org.apache.derby.iapi.services.io.Storable |
isNull, restoreToNull |
Methods inherited from interface java.io.Externalizable |
readExternal, writeExternal |
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat |
getTypeFormatId |
Field Detail |
public static final int MIN_DECIMAL_DIVIDE_SCALE
public static final int MAX_DECIMAL_PRECISION_SCALE
Method Detail |
public NumberDataValue plus(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result) throws StandardException
addend1
- One of the addendsaddend2
- The other addendresult
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue minus(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException
left
- The left operandright
- The right operandresult
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue times(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException
left
- The left operandright
- The right operandresult
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException
dividend
- The numeratordivisor
- The denominatorresult
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result, int scale) throws StandardException
dividend
- The numeratordivisor
- The denominatorresult
- The result of the previous call to this method, null
if not called yet.scale
- The scale of the result, for decimal type. If pass
in value < 0, can calculate it dynamically.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue mod(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException
dividend
- The numeratordivisor
- The denominatorresult
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue minus(NumberDataValue result) throws StandardException
result
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue absolute(NumberDataValue result) throws StandardException
result
- The result of the previous call to this method, null
if not called yet.
StandardException
- Thrown on error, if result is non-null then its value will be unchanged.public NumberDataValue sqrt(NumberDataValue result) throws StandardException
result
- The result of the previous call to this method, null
if not call yet.
StandardException
- Thrown on error (a negative number), if result is non-null then its value will be unchanged.public void setValue(java.lang.Number theValue) throws StandardException
theValue
- An Number containing the value to set this
NumberDataValue to. Null means set the value
to SQL null.
StandardException
public int getDecimalValuePrecision()
public int getDecimalValueScale()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |