Packages

t

slick.jdbc

JdbcType

trait JdbcType[T] extends BaseTypedType[T]

A JdbcType object represents a Scala type that can be used as a column type in the database. Implicit JdbcTypes for the standard types are provided by the profile.

Self Type
JdbcType[T]
Source
JdbcType.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JdbcType
  2. BaseTypedType
  3. AtomicType
  4. TypedType
  5. Type
  6. Dumpable
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def classTag: ClassTag[_]

    A ClassTag for the erased type of this type's Scala values

    A ClassTag for the erased type of this type's Scala values

    Definition Classes
    Type
  2. abstract def getValue(r: ResultSet, idx: Int): T

    Get a result column of the type.

    Get a result column of the type. For reference types, SQL NULL values are returned as null, for primitive types a default value is returned.

  3. abstract def hasLiteralForm: Boolean

    Indicates whether values of this type have a literal representation in SQL statements.

    Indicates whether values of this type have a literal representation in SQL statements. This must return false if valueToSQLLiteral throws a SlickException. QueryBuilder (and profile-specific subclasses thereof) uses this method to treat LiteralNodes as volatile (i.e. using bind variables) as needed.

  4. abstract def scalaType: ScalaType[T]
    Definition Classes
    TypedType
  5. abstract def setNull(p: PreparedStatement, idx: Int): Unit

    Set a parameter of the type to NULL.

  6. abstract def setValue(v: T, p: PreparedStatement, idx: Int): Unit

    Set a parameter of the type.

  7. abstract def sqlType: Int

    The constant from java.sql.Types that is used for setting parameters of the type to NULL.

  8. abstract def sqlTypeName(size: Option[FieldSymbol]): String

    The default name for the SQL type that is used for column declarations.

  9. abstract def updateValue(v: T, r: ResultSet, idx: Int): Unit

    Update a column of the type in a mutable result set.

  10. abstract def valueToSQLLiteral(value: T): String

    Convert a value to a SQL literal.

    Convert a value to a SQL literal. This should throw a SlickException if hasLiteralForm is false.

  11. abstract def wasNull(r: ResultSet, idx: Int): Boolean

    Check if the value returned by the immediately preceding call to getValue() was NULL.

Concrete Value Members

  1. def children: ConstArray[Nothing]

    All children of this Type.

    All children of this Type.

    Definition Classes
    AtomicTypeType
  2. final def childrenForeach[R](f: (Type) => R): Unit

    Apply a side-effecting function to all children.

    Apply a side-effecting function to all children.

    Definition Classes
    AtomicTypeType
  3. 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
    TypeDumpable
  4. final def mapChildren(f: (Type) => Type): JdbcType.this.type

    Apply a transformation to all type children and reconstruct this type with the new children, or return the original object if no child is changed.

    Apply a transformation to all type children and reconstruct this type with the new children, or return the original object if no child is changed.

    Definition Classes
    AtomicTypeType
  5. def optionType: OptionTypedType[T]
    Definition Classes
    TypedType
  6. def select(sym: TermSymbol): Type
    Definition Classes
    Type
  7. final def setOption(v: Option[T], p: PreparedStatement, idx: Int): Unit

    Set an Option parameter of the type.

  8. def structural: Type

    The structural view of this type

    The structural view of this type

    Definition Classes
    Type
  9. def structuralRec: Type

    Remove all NominalTypes recursively from this Type

    Remove all NominalTypes recursively from this Type

    Definition Classes
    Type
  10. def toString(): String
    Definition Classes
    JdbcType → AnyRef → Any
  11. def updateNull(r: ResultSet, idx: Int): Unit

    Update a column of the type in a mutable result set with NULL.