public static interface DataType.ExactNumeric extends DataType.NonFixedPrecision
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision
Modifier and Type | Method and Description |
---|---|
DataType.ExactNumeric |
makeNewInstance(int newPrecision,
int newScale)
Creates a new instance of the implementing ExactNumeric type with the given
precision and scale.
|
void |
setScale(int newScale)
Overrides the default scale with the given value.
|
setPrecision
accepts, convert, getColumnDisplaySize, getJdbcType, getLiteralPrefix, getLiteralSuffix, getNullableCode, getPrecision, getPrecisionRadix, getPreferredValueClassName, getScale, getSearchableCode, isCaseSensitive, isCurrency, isUnsigned, makeNewInstance, read, successor, supportsSuccessor, toBigDecimal, toBigInteger, toBlob, toBoolean, toByte, toByteArray, toClob, toDate, toDouble, toFloat, toInt, toLong, toShort, toString, toTime, toTimestamp, toURL, write
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
void setScale(int newScale)
newScale
- new scale value. The appropriate value depends on the current
precision and radix - precision can be modified by the user, but the
radix is fixed for each implementing type.DataType.ExactNumeric makeNewInstance(int newPrecision, int newScale)
newPrecision
- precision of the new instancenewScale
- scale of the new instance