Packages

t

slick.relational

ResultConverter

trait ResultConverter[R, W, U, T] extends Dumpable

A ResultConverter is used to read data from a result, update a result, and set parameters of a query.

Source
ResultConverter.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultConverter
  2. Dumpable
  3. AnyRef
  4. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Reader = R
  2. type Updater = U
  3. type Writer = W

Abstract Value Members

  1. abstract def read(pr: R): T
  2. abstract def set(value: T, pp: W, offset: Int): Unit

    Writes converted value.

    Writes converted value.

    offset

    The number of PreparedStatement parameters to skip. In a single-row operation (ex. insert into tbl values (?, ?, ?)), it should be 0. In a bulk insert operation, it should be C × R, where C is the number of columns and R is the number of rows that have already been set.

  3. abstract def update(value: T, pr: U): Unit
  4. abstract def width: Int

    The width of this converter (in columns), corresponding to the number of columns that will be read or written by it.

Concrete Value Members

  1. def getDumpInfo: DumpInfo

    Return the name, main info, attribute info and named children

    Return the name, main info, attribute info and named children

    Definition Classes
    ResultConverterDumpable
  2. def toString(): String
    Definition Classes
    ResultConverter → AnyRef → Any