in scala/dbc
class DataType

abstract class DataType()
extends Object
with ScalaObject
Implementing classes or objects:
class String() in scala/dbc/datatype
class Unknown() in scala/dbc/datatype
class Boolean() in scala/dbc/datatype
class Numeric[Type](_nativeTypeId: Int) in scala/dbc/datatype

An ISO-9075:2003 (SQL) data type. Mappings between SQL types and database specific types should be provided by the database driver.

Field Summary
abstract type NativeType
     The native Scala type in which values of this SQL type will be encoded.

Method Summary
abstract def isEquivalent(datatype: DataType): Boolean
     Tests whether this datatype is equivalent to another.
abstract def isSubtypeOf(datatype: DataType): Boolean
     Tests whether this datatype is equivalent or a subtype of another datatype.
abstract def nativeTypeId: Int
     The native Scala type in which values of this SQL type will be encoded.
  def nullable: Option[Boolean]
     Whether the value can take the null value, None when this property is unknown.
  def sqlString: String
     The SQL name 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

Field Detail

NativeType

  abstract type NativeType
The native Scala type in which values of this SQL type will be encoded.
Method Detail

isEquivalent

  abstract 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

  abstract 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.

nativeTypeId

  abstract def 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.

nullable

  def nullable: Option[Boolean]
Whether the value can take the null value, None when this property is unknown.

sqlString

  def sqlString: String
The SQL name of the type