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
Known Subclasses
DB2BooleanJdbcType, DB2InstantJdbcType, DB2UUIDJdbcType, DerbyBooleanJdbcType, DerbyInstantJdbcType, DerbyUUIDJdbcType, HsqldbInstantJdbcType, HsqldbOffsetDateTimeJdbcType, HsqldbOffsetTimeJdbcType, DriverJdbcType, BigDecimalJdbcType, BlobJdbcType, BooleanJdbcType, ByteArrayJdbcType, ByteJdbcType, CharJdbcType, ClobJdbcType, DateJdbcType, DoubleJdbcType, FloatJdbcType, InstantJdbcType, IntJdbcType, LocalDateJdbcType, LocalDateTimeJdbcType, LocalTimeJdbcType, LongJdbcType, NullJdbcType, OffsetDateTimeJdbcType, OffsetTimeJdbcType, ShortJdbcType, StringJdbcType, TimeJdbcType, TimestampJdbcType, UUIDJdbcType, ZonedDateTimeJdbcType, MappedJdbcType, OracleBlobJdbcType, OracleBooleanJdbcType, OracleByteArrayJdbcType, OracleInstantJdbcType, OracleLocalDateJdbcType, OracleLocalDateTimeJdbcType, OracleOffsetDateTimeJdbcType, OracleOffsetTimeJdbcType, OracleStringJdbcType, OracleTimeJdbcType, OracleUUIDJdbcType, OracleZonedDateTimeJdbcType, PostgresByteArrayJdbcType, PostgresInstantJdbcType, PostgresLocalDateJdbcType, PostgresLocalDateTimeJdbcType, PostgresLocalTimeJdbcType, PostgresOffsetTimeJdbcType, PostgresUUIDJdbcType, SQLServerBooleanJdbcType, SQLServerByteArrayJdbcType, SQLServerByteJdbcType, SQLServerDateJdbcType, SQLServerInstantJdbcType, SQLServerLocalDateTimeJdbcType, SQLServerLocalTimeJdbcType, SQLServerOffsetDateTimeJdbcType, SQLServerTimeJdbcType, SQLServerTimestampJdbcType, SQLServerUUIDJdbcType, SQLiteBooleanJdbcType, SQLiteDateJdbcType, SQLiteInstantJdbcType, SQLiteLocalDateJdbcType, SQLiteLocalDateTimeJdbcType, SQLiteTimeJdbcType, SQLiteTimestampJdbcType, SQLiteUUIDJdbcType
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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toany2stringadd[JdbcType[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JdbcType[T], B)
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toArrowAssoc[JdbcType[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def children: ConstArray[Nothing]

    All children of this Type.

    All children of this Type.

    Definition Classes
    AtomicTypeType
  8. 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
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  10. def ensuring(cond: (JdbcType[T]) => Boolean, msg: => Any): JdbcType[T]
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toEnsuring[JdbcType[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (JdbcType[T]) => Boolean): JdbcType[T]
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toEnsuring[JdbcType[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): JdbcType[T]
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toEnsuring[JdbcType[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): JdbcType[T]
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toEnsuring[JdbcType[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. 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
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. 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
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. def optionType: OptionTypedType[T]
    Definition Classes
    TypedType
  25. def select(sym: TermSymbol): Type
    Definition Classes
    Type
  26. final def setOption(v: Option[T], p: PreparedStatement, idx: Int): Unit

    Set an Option parameter of the type.

  27. def structural: Type

    The structural view of this type

    The structural view of this type

    Definition Classes
    Type
  28. def structuralRec: Type

    Remove all NominalTypes recursively from this Type

    Remove all NominalTypes recursively from this Type

    Definition Classes
    Type
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    JdbcType → AnyRef → Any
  31. def updateNull(r: ResultSet, idx: Int): Unit

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

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toStringFormat[JdbcType[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (JdbcType[T], B)
    Implicit
    This member is added by an implicit conversion from JdbcType[T] toArrowAssoc[JdbcType[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from BaseTypedType[T]

Inherited from AtomicType

Inherited from TypedType[T]

Inherited from Type

Inherited from Dumpable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromJdbcType[T] to any2stringadd[JdbcType[T]]

Inherited by implicit conversion StringFormat fromJdbcType[T] to StringFormat[JdbcType[T]]

Inherited by implicit conversion Ensuring fromJdbcType[T] to Ensuring[JdbcType[T]]

Inherited by implicit conversion ArrowAssoc fromJdbcType[T] to ArrowAssoc[JdbcType[T]]

Ungrouped