/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ package scala.dbc2.value abstract class CharacterString extends Value { type NativeType = String val dataType = new datatype.CharacterString {} /** An SQL-99 compliant string representation of the value. */ def sqlString: String = "'" + nativeValue + "'" } /** An object offering transformation methods (views) on the value. * This object must be visible in an expression to use value auto- * conversion. */ object CharacterString { /** A character string value as a native string. */ implicit def characterStringToString (obj: value.CharacterString): String = obj.nativeValue }