ValueDecimal
Implementation of the DECIMAL data type.
| Methods |
| static ValueDecimal |
get(BigDecimal dec)
Get or create big decimal value for the given big decimal.
|
| static ValueDecimal |
get(BigDecimal dec)
Get or create big decimal value for the given big decimal.
Parameters:
dec - the bit decimal
Returns:
the value
|
| static BigDecimal |
setScale(BigDecimal bd, int scale)
Set the scale of a BigDecimal value.
|
| static BigDecimal |
setScale(BigDecimal bd, int scale)
Set the scale of a BigDecimal value.
Parameters:
bd - the BigDecimal value
scale - the new scale
Returns:
the scaled value
|
| Value |
add(Value v)
|
| Value |
add(Value v)
|
| boolean |
checkPrecision(long prec)
|
| boolean |
checkPrecision(long prec)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| Value |
convertPrecision(long precision, boolean force)
|
| Value |
convertPrecision(long precision, boolean force)
|
| Value |
convertScale(boolean onlyToSmallerScale, int targetScale)
|
| Value |
convertScale(boolean onlyToSmallerScale, int targetScale)
|
| Value |
divide(Value v)
|
| Value |
divide(Value v)
|
| boolean |
equals(Object other)
|
| boolean |
equals(Object other)
|
| BigDecimal |
getBigDecimal()
|
| BigDecimal |
getBigDecimal()
|
| int |
getDisplaySize()
|
| int |
getDisplaySize()
|
| int |
getMemory()
|
| int |
getMemory()
|
| Object |
getObject()
|
| Object |
getObject()
|
| long |
getPrecision()
|
| long |
getPrecision()
|
| String |
getSQL()
|
| String |
getSQL()
|
| int |
getScale()
|
| int |
getScale()
|
| int |
getSignum()
|
| int |
getSignum()
|
| String |
getString()
|
| String |
getString()
|
| int |
getType()
|
| int |
getType()
|
| int |
hashCode()
|
| int |
hashCode()
|
| ValueDecimal |
modulus(Value v)
|
| ValueDecimal |
modulus(Value v)
|
| Value |
multiply(Value v)
|
| Value |
multiply(Value v)
|
| Value |
negate()
|
| Value |
negate()
|
| void |
set(PreparedStatement prep, int parameterIndex)
|
| void |
set(PreparedStatement prep, int parameterIndex) throws SQLException
|
| Value |
subtract(Value v)
|
| Value |
subtract(Value v)
|
DEFAULT_SCALE
= 32767
The default scale for a decimal value.
DEFAULT_DISPLAY_SIZE
= 65535
The default display size for a decimal value.
DEFAULT_PRECISION
= 65535
The default precision for a decimal value.
ONE
The value 'one'.
ZERO
The value 'zero'.
|