object Column extends JodaColumn with JavaTimeColumn
- Alphabetic
- By Inheritance
- Column
- JavaTimeColumn
- JodaColumn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](transformer: (Any, MetaDataItem) ⇒ MayErr[SqlRequestError, A]): Column[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
def
columnToArray[T](implicit transformer: Column[T], t: ClassTag[T]): Column[Array[T]]
Parses column as array.
Parses column as array.
val a: Array[String] = SQL"SELECT str_arr FROM tbl".as(scalar[Array[String]]) }}}
-
implicit
val
columnToBigInt: Column[BigInt]
Column conversion to big integer.
Column conversion to big integer.
import anorm.SqlParser.scalar import anorm.Column.columnToBigInt val c: BigInt = SQL("SELECT COUNT(*) FROM tbl").as(scalar[BigInt].single)
-
implicit
val
columnToBigInteger: Column[BigInteger]
Column conversion to Java big integer.
Column conversion to Java big integer.
import anorm.SqlParser.scalar import anorm.Column.columnToScalaBigInteger val c: BigInteger = SQL("SELECT COUNT(*) FROM tbl").as(scalar[BigInteger].single)
- implicit val columnToBoolean: Column[Boolean]
- implicit val columnToByte: Column[Byte]
-
implicit
val
columnToByteArray: Column[Array[Byte]]
Column conversion to bytes array.
Column conversion to bytes array.
import anorm.SqlParser.scalar import anorm.Column.columnToByteArray val bytes: Array[Byte] = SQL("SELECT bin FROM tbl"). as(scalar[Array[Byte]].single)
-
implicit
val
columnToChar: Column[Char]
Column conversion to character.
Column conversion to character.
import anorm.SqlParser.scalar import anorm.Column.columnToChar val c: Char = SQL("SELECT char FROM tbl").as(scalar[Char].single)
-
implicit
val
columnToDate: Column[Date]
Parses column as Java Date.
Parses column as Java Date. Time zone offset is the one of default JVM time zone (see TimeZone.getDefault).
import java.util.Date val d: Date = SQL("SELECT last_mod FROM tbl").as(scalar[Date].single)
- implicit val columnToDouble: Column[Double]
- implicit val columnToFloat: Column[Float]
-
implicit
val
columnToInputStream: Column[InputStream]
Column conversion to bytes array.
Column conversion to bytes array.
import anorm.SqlParser.scalar import anorm.Column.columnToInputStream val bytes: InputStream = SQL("SELECT bin FROM tbl"). as(scalar[InputStream].single)
-
implicit
val
columnToInstant: Column[Instant]
Parses column as Java8 instant.
Parses column as Java8 instant. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.Instant import anorm.Java8._ val i: Instant = SQL("SELECT last_mod FROM tbl").as(scalar[Instant].single)
- Definition Classes
- JavaTimeColumn
- implicit val columnToInt: Column[Int]
-
implicit
val
columnToJavaBigDecimal: Column[BigDecimal]
Column conversion to Java big decimal.
Column conversion to Java big decimal.
import java.math.{ BigDecimal => JBigDecimal } import anorm.SqlParser.scalar import anorm.Column.columnToJavaBigDecimal val c: JBigDecimal = SQL("SELECT COUNT(*) FROM tbl").as(scalar[JBigDecimal].single)
-
implicit
val
columnToJodaDateTime: Column[DateTime]
Parses column as joda DateTime
Parses column as joda DateTime
import org.joda.time.DateTime val d: Date = SQL("SELECT last_mod FROM tbl").as(scalar[DateTime].single)
- Definition Classes
- JodaColumn
-
implicit
val
columnToJodaInstant: Column[Instant]
Parses column as joda Instant
Parses column as joda Instant
import org.joda.time.Instant val d: Date = SQL("SELECT last_mod FROM tbl").as(scalar[Instant].single)
- Definition Classes
- JodaColumn
-
implicit
val
columnToJodaLocalDate: Column[LocalDate]
Parses column as Joda local date.
Parses column as Joda local date. Time zone is the one of default JVM time zone (see DateTimeZone.getDefault).
import org.joda.time.LocalDate val i: LocalDate = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDate].single)
- Definition Classes
- JodaColumn
-
implicit
val
columnToJodaLocalDateTime: Column[LocalDateTime]
Parses column as Joda local date/time.
Parses column as Joda local date/time. Time zone is the one of default JVM time zone (see DateTimeZone.getDefault).
import org.joda.time.LocalDateTime val i: LocalDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDateTime].single)
- Definition Classes
- JodaColumn
-
implicit
def
columnToList[T](implicit transformer: Column[T], t: ClassTag[T]): Column[List[T]]
Parses column as list.
Parses column as list.
val a: List[String] = SQL"SELECT str_arr FROM tbl".as(scalar[List[String]]) }}}
-
implicit
val
columnToLocalDate: Column[LocalDate]
Parses column as Java8 local date.
Parses column as Java8 local date. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.LocalDateTime import anorm.Java8._ val i: LocalDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDateTime].single)
- Definition Classes
- JavaTimeColumn
-
implicit
val
columnToLocalDateTime: Column[LocalDateTime]
Parses column as Java8 local date/time.
Parses column as Java8 local date/time. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.LocalDateTime import anorm.Java8._ val i: LocalDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDateTime].single)
- Definition Classes
- JavaTimeColumn
- implicit val columnToLong: Column[Long]
- implicit def columnToOption[T](implicit transformer: Column[T]): Column[Option[T]]
-
implicit
val
columnToScalaBigDecimal: Column[BigDecimal]
Column conversion to big decimal.
Column conversion to big decimal.
import anorm.SqlParser.scalar import anorm.Column.columnToScalaBigDecimal val c: BigDecimal = SQL("SELECT COUNT(*) FROM tbl").as(scalar[BigDecimal].single)
- implicit val columnToShort: Column[Short]
- implicit val columnToString: Column[String]
- implicit val columnToUUID: Column[UUID]
-
implicit
val
columnToZonedDateTime: Column[ZonedDateTime]
Parses column as Java8 zoned date/time.
Parses column as Java8 zoned date/time. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.ZonedDateTime import anorm.Java8._ val i: ZonedDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[ZonedDateTime].single)
- Definition Classes
- JavaTimeColumn
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonNull[A](transformer: (Any, MetaDataItem) ⇒ Either[SqlRequestError, A]): Column[A]
Helper function to implement column conversion.
Helper function to implement column conversion.
- transformer
Function converting raw value of column
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
def
nonNull1[A](transformer: (Any, MetaDataItem) ⇒ Either[SqlRequestError, A]): Column[A]
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.1) Use nonNull