public class NumericType extends DataType
| Constructor and Description |
|---|
NumericType()
Define a Numeric type with default precision and scale
|
NumericType(int precision)
Creates a Numeric type with a given precision
|
NumericType(int precision,
int scale)
Creates a Numeric type with a given precision and scale.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
TDTypeValue |
fromString(String value) |
TDTypeValue |
getDefaultValue() |
String |
getName() |
Integer |
getPrecision() |
Integer |
getScale() |
int |
hashCode() |
String |
toString() |
public NumericType()
public NumericType(int precision)
precision - total count of significant digits in the whole numberpublic NumericType(int precision,
int scale)
precision - total count of significant digits in the whole numberscale - count of decimal digits in the fractional partIllegalArgumentExceptionpublic Integer getPrecision()
public Integer getScale()
public TDTypeValue getDefaultValue()
getDefaultValue in class DataTypepublic TDTypeValue fromString(String value)
fromString in class DataTypeCopyright © 2015. All Rights Reserved.