ArrayEncoders

trait ArrayEncoders extends ArrayEncoding
trait ArrayEncoding
trait EncodingDsl
trait LowPriorityImplicits
class Object
trait Matchable
class Any

Type members

Inherited types

type BaseDecoder[T] = GenericDecoder[ResultRow, Session, T, Specific]
Inherited from:
EncodingDsl
type BaseEncoder[T] = GenericEncoder[T, PrepareRow, Session]
Inherited from:
EncodingDsl
type CBF[T, Col] = Factory[T, Col]
Inherited from:
ArrayEncoding
type ColumnResolver = GenericColumnResolver[ResultRow]
Inherited from:
EncodingDsl
type Decoder[T] <: GenericDecoder[ResultRow, Session, T, Specific]
Inherited from:
EncodingDsl
type DecoderMethod[T] = (Int, ResultRow, Session) => T
Inherited from:
EncodingDsl
type Encoder[T] <: GenericEncoder[T, PrepareRow, Session]
Inherited from:
EncodingDsl
type EncoderMethod[T] = (Int, T, PrepareRow, Session) => PrepareRow
Inherited from:
EncodingDsl
Inherited from:
EncodingDsl
Inherited from:
EncodingDsl
type RowTyper[T] = GenericRowTyper[ResultRow, T]
Inherited from:
EncodingDsl
type Session
Inherited from:
EncodingDsl

Value members

Concrete methods

def arrayEncoder[T, Col <: Seq[T]](jdbcType: String, mapper: T => AnyRef): <none>[Col]

Generic encoder for JDBC arrays.

Generic encoder for JDBC arrays.

Type parameters:
Col

seq type

T

element type

Value parameters:
jdbcType

JDBC specific type identification, may be various regarding to JDBC driver

mapper

jdbc array accepts AnyRef objects hence a mapper is needed. If input type of an element of collection is not comfortable with jdbcType then use this mapper to transform to appropriate type before casting to AnyRef

Returns:

JDBC array encoder

def arrayRawEncoder[T, Col <: Seq[T]](jdbcType: String): <none>[Col]

Creates JDBC array encoder for type T which is already supported by database as array element.

Creates JDBC array encoder for type T which is already supported by database as array element.

Type parameters:
Col

seq type

T

element type

Value parameters:
jdbcType

JDBC specific type identification, may be various regarding to JDBC driver

Returns:

JDBC array encoder

def arrayRawEncoder[T, Col <: Seq[T]](jdbcType: Int): <none>[Col]

Transform jdbcType int using parseJdbcType and calls overloaded method to create Encoder

Transform jdbcType int using parseJdbcType and calls overloaded method to create Encoder

Value parameters:
jdbcType

java.sql.Types

See also:

arrayRawEncoder(jdbcType: String)

JdbcContext#parseJdbcType(jdbcType: String)

Inherited methods

protected def mappedBaseDecoder[Base, Mapped](mapped: MappedEncoding[Base, Mapped], decoder: () => Base): () => Mapped
Inherited from:
EncodingDsl
protected def mappedBaseEncoder[Mapped, Base](mapped: MappedEncoding[Mapped, Base], encoder: () => Base): () => Mapped
Inherited from:
EncodingDsl

Implicits

Implicits

implicit def arrayBigDecimalEncoder[Col <: Seq[BigDecimal]]: <none>[Col]
implicit def arrayBooleanEncoder[Col <: Seq[Boolean]]: <none>[Col]
implicit def arrayByteEncoder[Col <: Seq[Byte]]: <none>[Col]
implicit def arrayDateEncoder[Col <: Seq[Date]]: <none>[Col]
implicit def arrayDoubleEncoder[Col <: Seq[Double]]: <none>[Col]
implicit def arrayFloatEncoder[Col <: Seq[Float]]: <none>[Col]
implicit def arrayIntEncoder[Col <: Seq[Int]]: <none>[Col]
implicit def arrayLocalDateEncoder[Col <: Seq[LocalDate]]: <none>[Col]
implicit def arrayLongEncoder[Col <: Seq[Long]]: <none>[Col]
implicit def arrayShortEncoder[Col <: Seq[Short]]: <none>[Col]
implicit def arrayStringEncoder[Col <: Seq[String]]: <none>[Col]
implicit def arrayTimestampEncoder[Col <: Seq[Timestamp]]: <none>[Col]

Inherited implicits

implicit inline def anyValDecoder[Cls <: AnyVal]: Decoder[Cls]
Inherited from:
LowPriorityImplicits
implicit inline def anyValEncoder[Cls <: AnyVal]: Encoder[Cls]
Inherited from:
LowPriorityImplicits
implicit def arrayBigDecimalDecoder[Col <: Seq[BigDecimal]](implicit bf: Factory[BigDecimal, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayBooleanDecoder[Col <: Seq[Boolean]](implicit bf: Factory[Boolean, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayByteDecoder[Col <: Seq[Byte]](implicit bf: Factory[Byte, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayDateDecoder[Col <: Seq[Date]](implicit bf: Factory[Date, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayDoubleDecoder[Col <: Seq[Double]](implicit bf: Factory[Double, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayFloatDecoder[Col <: Seq[Float]](implicit bf: Factory[Float, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayIntDecoder[Col <: Seq[Int]](implicit bf: Factory[Int, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayLocalDateDecoder[Col <: Seq[LocalDate]](implicit bf: Factory[LocalDate, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayLongDecoder[Col <: Seq[Long]](implicit bf: Factory[Long, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayMappedDecoder[I, O, Col <: (Seq)](implicit mapped: MappedEncoding[I, O], d: Decoder[Seq[I]], bf: Factory[O, Col[O]]): Decoder[Col[O]]
Inherited from:
ArrayEncoding
implicit def arrayMappedEncoder[I, O, Col <: (Seq)](implicit mapped: MappedEncoding[I, O], e: Encoder[Seq[O]]): Encoder[Col[I]]
Inherited from:
ArrayEncoding
implicit def arrayShortDecoder[Col <: Seq[Short]](implicit bf: Factory[Short, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def arrayStringDecoder[Col <: Seq[String]](implicit bf: Factory[String, Col]): Decoder[Col]
Inherited from:
ArrayEncoding
implicit def bigDecimalEncoder: Encoder[BigDecimal]
Inherited from:
EncodingDsl
implicit def booleanEncoder: Encoder[Boolean]
Inherited from:
EncodingDsl
implicit def byteEncoder: Encoder[Byte]
Inherited from:
EncodingDsl
implicit def doubleEncoder: Encoder[Double]
Inherited from:
EncodingDsl
implicit def intEncoder: Encoder[Int]
Inherited from:
EncodingDsl
implicit def longEncoder: Encoder[Long]
Inherited from:
EncodingDsl
implicit def mappedDecoder[Base, Mapped](implicit mapped: MappedEncoding[Base, Mapped], decoder: Decoder[Base]): Decoder[Mapped]
Inherited from:
EncodingDsl
implicit def mappedEncoder[Mapped, Base](implicit mapped: MappedEncoding[Mapped, Base], encoder: Encoder[Base]): Encoder[Mapped]
Inherited from:
EncodingDsl
implicit def shortEncoder: Encoder[Short]
Inherited from:
EncodingDsl
implicit def stringEncoder: Encoder[String]
Inherited from:
EncodingDsl