org.axiondb.types
public class BigDecimalType extends BaseNumberDataType implements DataType.ExactNumeric
Version: $Revision: 1.16 $ $Date: 2005/12/22 09:02:31 $
Field Summary | |
---|---|
static int | DEFAULT_PRECISION |
static int | DEFAULT_SCALE |
static int | MAX_PRECISION |
static int | ROUNDING_RULE |
Constructor Summary | |
---|---|
BigDecimalType() | |
BigDecimalType(int scale) | |
BigDecimalType(int precision, int scale) | |
BigDecimalType(BigDecimal result) |
Method Summary | |
---|---|
boolean | accepts(Object value) |
int | compare(Object a, Object b) |
Object | convert(Object value)
Returns a BigDecimal converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable . |
int | getColumnDisplaySize() |
protected Comparator | getComparator() |
int | getJdbcType() |
int | getPrecision() |
String | getPreferredValueClassName() |
int | getScale() |
DataType | makeNewInstance() |
DataType.ExactNumeric | makeNewInstance(int newPrecision, int newScale) |
Object | read(DataInput in) |
boolean | requiresRounding(BigDecimal value) |
void | setPrecision(int newPrecision) |
void | setScale(int newScale) |
Object | successor(Object value) |
boolean | supportsSuccessor()false |
String | toString()
Returns "BigDecimal"
|
void | write(Object value, DataOutput out) |
acceptable
.See Also: BigDecimalType
false
"BigDecimal"
Returns: "BigDecimal"