in scala/dbc/datatype
class Numeric

abstract class Numeric[Type](_nativeTypeId: Int)
extends DataType
with ScalaObject
Implementing classes or objects:
class ApproximateNumeric[Type](nativeTypeId: Int)
class ExactNumeric[Type](nativeTypeId: Int)

A type category for all SQL types that store numbers.

Field Summary
  type NativeType
     The native Scala type in which values of this SQL type will be encoded.
  val nativeTypeId: Int
     The native Scala type in which values of this SQL type will be encoded.

Method Summary
abstract def precision: Int
     The number of significant digits for that number.
abstract def precisionRadix: Int
     The radix in which the precision (and scale when appliable) is defined.
abstract def signed: Boolean
     Whether the number is signed or not.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/dbc/DataType-class
isEquivalent, isSubtypeOf, nullable, sqlString

Field Detail

NativeType

  type NativeType = Type
The native Scala type in which values of this SQL type will be encoded.

nativeTypeId

  val nativeTypeId: Int
The native Scala type in which values of this SQL type will be encoded. This must point to the same type as NativeType.
Method Detail

precisionRadix

  abstract def precisionRadix: Int
The radix in which the precision (and scale when appliable) is defined. ISO-9075 only allows 2 and 10 for this value.

precision

  abstract def precision: Int
The number of significant digits for that number.

signed

  abstract def signed: Boolean
Whether the number is signed or not.