in scala/dbc/datatype
class ApproximateNumeric

abstract class ApproximateNumeric[Type](nativeTypeId: Int)
extends Numeric[Type]
with ScalaObject

A type category for all SQL types that store varying-precision numbers.

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

Method Summary
  def isEquivalent(datatype: DataType): Boolean
     Tests whether this datatype is equivalent to another.
  def isSubtypeOf(datatype: DataType): Boolean
     Tests whether this datatype is equivalent or a subtype of another datatype.
override def sqlString: String
     A SQL-99 compliant string representation of the type.

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
nullable

Methods inherited from scala/dbc/datatype/Numeric-class
NativeType, precision, precisionRadix, signed

Field Detail

nativeTypeId

  override 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

isEquivalent

  def isEquivalent(datatype: DataType): Boolean
Tests whether this datatype is equivalent to another. Usually, two types are defined as equivalent if they are equal. Two types can be equivalent without being equal if values of those types will be encoded in the same native Scala type.

isSubtypeOf

  def isSubtypeOf(datatype: DataType): Boolean
Tests whether this datatype is equivalent or a subtype of another datatype. Type A is said to be subtype of type B if any value of type A can be represented as a value of type B.

sqlString

  override def sqlString: String
A SQL-99 compliant string representation of the type.

Compatibility notice

This method assumes that a real uses 32 bits and a double 64. This is not defined in the standard but is usually the case.