summaryrefslogtreecommitdiff
path: root/src/dbc/scala/dbc/datatype/Boolean.scala
blob: 89498f3d9ee627b10c866287a539216a592b4135 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2003-2011, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */



package scala.dbc
package datatype;


/** The SQL type for a truth value. */
@deprecated(DbcIsDeprecated) class Boolean extends DataType {

  def isEquivalent (datatype:DataType) = datatype match {
    case dt:Boolean => true
    case _ => false
  }

  def isSubtypeOf (datatype:DataType) = isEquivalent(datatype);

  type NativeType = scala.Boolean;
  val nativeTypeId = DataType.BOOLEAN;

  /** A SQL-99 compliant string representation of the type. */
  override def sqlString: java.lang.String = "BOOLEAN";

}