public class Decimal extends Object
java.math.BigDecimal, double, or
long.| Modifier and Type | Field and Description |
|---|---|
static int |
PACKED_DECIMAL
Packed Decimal representation
|
| Modifier and Type | Method and Description |
|---|---|
static int |
bigDecimalToPackedDecimalBytes(byte[] buffer,
int offset,
BigDecimal b,
int declaredPrecision,
int declaredScale,
String columnName)
Write a Java
java.math.BigDecimal to packed decimal bytes. |
static BigDecimal |
getBigDecimal(byte[] buffer,
int offset,
int precision,
int scale)
Build a
java.math.BigDecimal from a fixed point decimal byte representation. |
static double |
getDouble(byte[] buffer,
int offset,
int precision,
int scale)
Build a Java
double from a fixed point decimal byte representation. |
static long |
getLong(byte[] buffer,
int offset,
int precision,
int scale)
Build a Java
long from a fixed point decimal byte representation. |
public static final int PACKED_DECIMAL
public static final BigDecimal getBigDecimal(byte[] buffer, int offset, int precision, int scale) throws UnsupportedEncodingException
java.math.BigDecimal from a fixed point decimal byte representation.IllegalArgumentException - if the specified representation is not recognized.UnsupportedEncodingExceptionpublic static final double getDouble(byte[] buffer,
int offset,
int precision,
int scale)
throws UnsupportedEncodingException
double from a fixed point decimal byte representation.IllegalArgumentException - if the specified representation is not recognized.UnsupportedEncodingExceptionpublic static final long getLong(byte[] buffer,
int offset,
int precision,
int scale)
throws UnsupportedEncodingException
long from a fixed point decimal byte representation.IllegalArgumentException - if the specified representation is not recognized.UnsupportedEncodingExceptionpublic static final int bigDecimalToPackedDecimalBytes(byte[] buffer,
int offset,
BigDecimal b,
int declaredPrecision,
int declaredScale,
String columnName)
throws SqlException
java.math.BigDecimal to packed decimal bytes.SqlExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.