org.axiondb
Interface DataType.NonFixedPrecision

All Superinterfaces:
java.util.Comparator, DataType, java.io.Serializable
All Known Subinterfaces:
DataType.ExactNumeric
All Known Implementing Classes:
BigDecimalType, CharacterType, CharacterVaryingType, VarBinaryType
Enclosing interface:
DataType

public static interface DataType.NonFixedPrecision
extends DataType

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.axiondb.DataType
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision
 
Method Summary
 void setPrecision(int newSize)
          Overrides the default precision with the given value.
 
Methods inherited from interface org.axiondb.DataType
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
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

setPrecision

void setPrecision(int newSize)
Overrides the default precision with the given value.

Parameters:
newSize - new precision value. The appropriate value depends on the precision radix, which is fixed for each implementing type.