blob: f3e1a54aacf89f775046186fa4b157325f29e25e (
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-2005, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.dbc.value;
import java.math.BigInteger;
import java.math.BigDecimal;
abstract class ExactNumeric [Type] extends Value {
val dataType: datatype.ExactNumeric[Type];
def sqlString = nativeValue.toString();
}
object ExactNumeric {
def view (obj:value.ExactNumeric[Byte]): Byte = obj.nativeValue;
def view (obj:value.ExactNumeric[Short]): Short = obj.nativeValue;
def view (obj:value.ExactNumeric[Int]): Int = obj.nativeValue;
def view (obj:value.ExactNumeric[Long]): Long = obj.nativeValue;
def view (obj:value.ExactNumeric[BigInteger]): BigInteger = obj.nativeValue;
def view (obj:value.ExactNumeric[BigDecimal]): BigDecimal = obj.nativeValue;
}
|