org.axiondb

Interface DataType.ExactNumeric

public static interface DataType.ExactNumeric extends DataType.NonFixedPrecision

Extension of NonFixedPrecision to indicate that the scale of the implementing class is not fixed by the implementation, but rather can be declared by the user.

Author: Jonathan Giron

Method Summary
DataType.ExactNumericmakeNewInstance(int newPrecision, int newScale)
Creates a new instance of the implementing ExactNumeric type with the given precision and scale.
voidsetScale(int newScale)
Overrides the default scale with the given value.

Method Detail

makeNewInstance

public DataType.ExactNumeric makeNewInstance(int newPrecision, int newScale)
Creates a new instance of the implementing ExactNumeric type with the given precision and scale.

Parameters: newPrecision precision of the new instance newScale scale of the new instance

Returns: new instance of ExactNumeric implementation with the given precision and scale

setScale

public void setScale(int newScale)
Overrides the default scale with the given value.

Parameters: 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.