| Package | Description |
|---|---|
| java.math |
Provides classes for performing arbitrary-precision integer arithmetic (
BigInteger) and arbitrary-precision decimal arithmetic (
BigDecimal).
|
| java.sql |
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java
TM programming language.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| javax.management.openmbean |
Provides the open data types and Open MBean descriptor classes.
|
| javax.sql |
Provides the API for server side data source access and processing from the Java
TM programming language.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet implementations.
|
| javax.sql.rowset.serial |
Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
|
| javax.xml.bind |
Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
|
| javax.xml.datatype |
XML/Java Type Mappings.
|
| org.omg.CORBA |
Provides the mapping of the OMG CORBA APIs to the Java
TM programming language, including the class
ORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).
|
| org.omg.CORBA.portable |
Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.
|
| Modifier and Type | Field and Description |
|---|---|
static BigDecimal |
BigDecimal.ONE
The value 1, with a scale of 0.
|
static BigDecimal |
BigDecimal.TEN
The value 10, with a scale of 0.
|
static BigDecimal |
BigDecimal.ZERO
The value 0, with a scale of 0.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
BigDecimal.abs()
Returns a
BigDecimal whose value is the absolute value of this
BigDecimal, and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.abs(MathContext
Returns a
BigDecimal whose value is the absolute value of this
BigDecimal, with rounding according to the context settings.
|
BigDecimal |
BigDecimal.add(BigDecimal
Returns a
BigDecimal whose value is
(this + augend), and whose scale is
max(this.scale(), augend.scale()).
|
BigDecimal |
BigDecimal.add(BigDecimal
Returns a
BigDecimal whose value is
(this + augend), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose preferred scale is
(this.scale() - divisor.scale()); if the exact quotient cannot be represented (because it has a non-terminating decimal expansion) an
ArithmeticException is thrown.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is as specified.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is as specified.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.divideAndRemainder(BigDecimal
Returns a two-element
BigDecimal array containing the result of
divideToIntegralValue followed by the result of
remainder on the two operands.
|
BigDecimal |
BigDecimal.divideAndRemainder(BigDecimal
Returns a two-element
BigDecimal array containing the result of
divideToIntegralValue followed by the result of
remainder on the two operands calculated with rounding according to the context settings.
|
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal
Returns a
BigDecimal whose value is the integer part of the quotient
(this / divisor) rounded down.
|
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal
Returns a
BigDecimal whose value is the integer part of
(this / divisor).
|
BigDecimal |
BigDecimal.max(BigDecimal
Returns the maximum of this
BigDecimal and
val.
|
BigDecimal |
BigDecimal.min(BigDecimal
Returns the minimum of this
BigDecimal and
val.
|
BigDecimal |
BigDecimal.movePointLeft(int n)
Returns a
BigDecimal which is equivalent to this one with the decimal point moved
n places to the left.
|
BigDecimal |
BigDecimal.movePointRight(int n)
Returns a
BigDecimal which is equivalent to this one with the decimal point moved
n places to the right.
|
BigDecimal |
BigDecimal.multiply(BigDecimal
Returns a
BigDecimal whose value is
(this × multiplicand), and whose scale is
(this.scale() + multiplicand.scale()).
|
BigDecimal |
BigDecimal.multiply(BigDecimal
Returns a
BigDecimal whose value is
(this × multiplicand), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.negate()
Returns a
BigDecimal whose value is
(-this), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.negate(MathContext
Returns a
BigDecimal whose value is
(-this), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.plus()
Returns a
BigDecimal whose value is
(+this), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.plus(MathContext
Returns a
BigDecimal whose value is
(+this), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.pow(int n)
Returns a
BigDecimal whose value is
(thisn), The power is computed exactly, to unlimited precision.
|
BigDecimal |
BigDecimal.pow(int n, MathContext
Returns a
BigDecimal whose value is
(thisn).
|
BigDecimal |
BigDecimal.remainder(BigDecimal
Returns a
BigDecimal whose value is
(this % divisor).
|
BigDecimal |
BigDecimal.remainder(BigDecimal
Returns a
BigDecimal whose value is
(this % divisor), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.round(MathContext
Returns a
BigDecimal rounded according to the
MathContext settings.
|
BigDecimal |
BigDecimal.scaleByPowerOfTen(int n)
Returns a BigDecimal whose numerical value is equal to (
this * 10
n).
|
BigDecimal |
BigDecimal.setScale(int newScale)
Returns a
BigDecimal whose scale is the specified value, and whose value is numerically equal to this
BigDecimal's.
|
BigDecimal |
BigDecimal.setScale(int newScale, int roundingMode)
Returns a
BigDecimal whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing this
BigDecimal's unscaled value by the appropriate power of ten to maintain its overall value.
|
BigDecimal |
BigDecimal.setScale(int newScale, RoundingMode
Returns a
BigDecimal whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing this
BigDecimal's unscaled value by the appropriate power of ten to maintain its overall value.
|
BigDecimal |
BigDecimal.stripTrailingZeros()
Returns a
BigDecimal which is numerically equal to this one but with any trailing zeros removed from the representation.
|
BigDecimal |
BigDecimal.subtract(BigDecimal
Returns a
BigDecimal whose value is
(this - subtrahend), and whose scale is
max(this.scale(), subtrahend.scale()).
|
BigDecimal |
BigDecimal.subtract(BigDecimal
Returns a
BigDecimal whose value is
(this - subtrahend), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.ulp()
Returns the size of an ulp, a unit in the last place, of this
BigDecimal.
|
static BigDecimal |
BigDecimal.valueOf(double val)
Translates a
double into a
BigDecimal, using the
double's canonical string representation provided by the
Double method.
|
static BigDecimal |
BigDecimal.valueOf(long val)
Translates a
long value into a
BigDecimal with a scale of zero.
|
static BigDecimal |
BigDecimal.valueOf(long unscaledVal, int scale)
Translates a
long unscaled value and an
int scale into a
BigDecimal.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
BigDecimal.add(BigDecimal
Returns a
BigDecimal whose value is
(this + augend), and whose scale is
max(this.scale(), augend.scale()).
|
BigDecimal |
BigDecimal.add(BigDecimal
Returns a
BigDecimal whose value is
(this + augend), with rounding according to the context settings.
|
int |
BigDecimal.compareTo(BigDecimal
Compares this
BigDecimal with the specified
BigDecimal.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose preferred scale is
(this.scale() - divisor.scale()); if the exact quotient cannot be represented (because it has a non-terminating decimal expansion) an
ArithmeticException is thrown.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is as specified.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is as specified.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.divide(BigDecimal
Returns a
BigDecimal whose value is
(this / divisor), and whose scale is
this.scale().
|
BigDecimal |
BigDecimal.divideAndRemainder(BigDecimal
Returns a two-element
BigDecimal array containing the result of
divideToIntegralValue followed by the result of
remainder on the two operands.
|
BigDecimal |
BigDecimal.divideAndRemainder(BigDecimal
Returns a two-element
BigDecimal array containing the result of
divideToIntegralValue followed by the result of
remainder on the two operands calculated with rounding according to the context settings.
|
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal
Returns a
BigDecimal whose value is the integer part of the quotient
(this / divisor) rounded down.
|
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal
Returns a
BigDecimal whose value is the integer part of
(this / divisor).
|
BigDecimal |
BigDecimal.max(BigDecimal
Returns the maximum of this
BigDecimal and
val.
|
BigDecimal |
BigDecimal.min(BigDecimal
Returns the minimum of this
BigDecimal and
val.
|
BigDecimal |
BigDecimal.multiply(BigDecimal
Returns a
BigDecimal whose value is
(this × multiplicand), and whose scale is
(this.scale() + multiplicand.scale()).
|
BigDecimal |
BigDecimal.multiply(BigDecimal
Returns a
BigDecimal whose value is
(this × multiplicand), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.remainder(BigDecimal
Returns a
BigDecimal whose value is
(this % divisor).
|
BigDecimal |
BigDecimal.remainder(BigDecimal
Returns a
BigDecimal whose value is
(this % divisor), with rounding according to the context settings.
|
BigDecimal |
BigDecimal.subtract(BigDecimal
Returns a
BigDecimal whose value is
(this - subtrahend), and whose scale is
max(this.scale(), subtrahend.scale()).
|
BigDecimal |
BigDecimal.subtract(BigDecimal
Returns a
BigDecimal whose value is
(this - subtrahend), with rounding according to the context settings.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
ResultSet.getBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.math.BigDecimal with full precision.
|
BigDecimal |
CallableStatement.getBigDecimal(int parameterIndex)
Retrieves the value of the designated JDBC
NUMERIC parameter as a
java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
|
BigDecimal |
ResultSet.getBigDecimal(int columnIndex, int scale)
Deprecated.
Use
getBigDecimal(int columnIndex) or getBigDecimal(String columnLabel)
|
BigDecimal |
CallableStatement.getBigDecimal(int parameterIndex, int scale)
Deprecated.
use
getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName)
|
BigDecimal |
ResultSet.getBigDecimal(String
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.math.BigDecimal with full precision.
|
BigDecimal |
CallableStatement.getBigDecimal(String
Retrieves the value of a JDBC
NUMERIC parameter as a
java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
|
BigDecimal |
ResultSet.getBigDecimal(String
Deprecated.
Use
getBigDecimal(int columnIndex) or getBigDecimal(String columnLabel)
|
BigDecimal |
SQLInput.readBigDecimal()
Reads the next attribute in the stream and returns it as a
java.math.BigDecimal object in the Java programming language.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PreparedStatement.setBigDecimal(int parameterIndex, BigDecimal
Sets the designated parameter to the given
java.math.BigDecimal value.
|
void |
CallableStatement.setBigDecimal(String
Sets the designated parameter to the given
java.math.BigDecimal value.
|
void |
ResultSet.updateBigDecimal(int columnIndex, BigDecimal
Updates the designated column with a
java.math.BigDecimal value.
|
void |
ResultSet.updateBigDecimal(String
Updates the designated column with a
java.sql.BigDecimal value.
|
void |
SQLOutput.writeBigDecimal(BigDecimal
Writes the next attribute to the stream as a java.math.BigDecimal object.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
Scanner.nextBigDecimal()
Scans the next token of the input as a
BigDecimal.
|
| Modifier and Type | Field and Description |
|---|---|
static SimpleType |
SimpleType.BIGDECIMAL
The
SimpleType instance describing values whose Java class name is
java.math.BigDecimal.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RowSet.setBigDecimal(int parameterIndex, BigDecimal
Sets the designated parameter in this
RowSet object's command to the given
java.math.BigDeciaml value.
|
void |
RowSet.setBigDecimal(String
Sets the designated parameter to the given
java.math.BigDecimal value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseRowSet.setBigDecimal(int parameterIndex, BigDecimal
Sets the designated parameter to the given
java.lang.BigDecimal value.
|
void |
BaseRowSet.setBigDecimal(String
Sets the designated parameter to the given
java.math.BigDecimal value.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
SQLInputImpl.readBigDecimal()
Retrieves the next attribute in this
SQLInputImpl object as a
java.math.BigDecimal.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLOutputImpl.writeBigDecimal(BigDecimal
Writes a
java.math.BigDecimal object in the Java programming language to this
SQLOutputImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
DatatypeConverter.parseDecimal(String
Converts the string argument into a BigDecimal value.
|
BigDecimal |
DatatypeConverterInterface.parseDecimal(String
Converts the string argument into a BigDecimal value.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DatatypeConverter.printDecimal(BigDecimal
Converts a BigDecimal value into a string.
|
String |
DatatypeConverterInterface.printDecimal(BigDecimal
Converts a BigDecimal value into a string.
|
| Modifier and Type | Method and Description |
|---|---|
abstract BigDecimal |
XMLGregorianCalendar.getFractionalSecond()
Return fractional seconds.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Duration |
Duration.multiply(BigDecimal
Computes a new duration whose value is
factor times longer than the value of this duration.
|
abstract Duration |
DatatypeFactory.newDuration(boolean isPositive, BigInteger
Obtain a new instance of a
Duration specifying the
Duration as isPositive, years, months, days, hours, minutes, seconds.
|
abstract XMLGregorianCalendar |
DatatypeFactory.newXMLGregorianCalendar(BigInteger
Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes.
|
XMLGregorianCalendar |
DatatypeFactory.newXMLGregorianCalendarTime(int hours, int minutes, int seconds, BigDecimal
Create a Java instance of XML Schema builtin datatype time.
|
abstract void |
XMLGregorianCalendar.setFractionalSecond(BigDecimal
Set fractional seconds.
|
void |
XMLGregorianCalendar.setTime(int hour, int minute, int second, BigDecimal
Set time as one unit, including the optional infinite precision fractional seconds.
|
| Modifier and Type | Field and Description |
|---|---|
BigDecimal |
FixedHolder.value
The value held by the FixedHolder
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
Any.extract_fixed()
Extracts the
java.math.BigDecimal object in this
Any object's
value field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Any.insert_fixed(BigDecimal
Throws an
org.omg.CORBA.NO_IMPLEMENT exception.
|
void |
Any.insert_fixed(BigDecimal
Throws an
org.omg.CORBA.NO_IMPLEMENT exception.
|
| Constructor and Description | |
|---|---|
FixedHolder(BigDecimal
Construct the FixedHolder and initialize it with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
InputStream.read_fixed()
Reads a BigDecimal number.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OutputStream.write_fixed(BigDecimal
Writes a BigDecimal number.
|