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
- Alphabetic
- By Inheritance
- JdbcType
- BaseTypedType
- AtomicType
- TypedType
- Type
- Dumpable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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
-
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. -
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
valueToSQLLiteralthrows a SlickException. QueryBuilder (and profile-specific subclasses thereof) uses this method to treat LiteralNodes as volatile (i.e. using bind variables) as needed. -
abstract
def
scalaType: ScalaType[T]
- Definition Classes
- TypedType
-
abstract
def
setNull(p: PreparedStatement, idx: Int): Unit
Set a parameter of the type to NULL.
-
abstract
def
setValue(v: T, p: PreparedStatement, idx: Int): Unit
Set a parameter of the type.
-
abstract
def
sqlType: Int
The constant from java.sql.Types that is used for setting parameters of the type to NULL.
-
abstract
def
sqlTypeName(size: Option[FieldSymbol]): String
The default name for the SQL type that is used for column declarations.
-
abstract
def
updateValue(v: T, r: ResultSet, idx: Int): Unit
Update a column of the type in a mutable result set.
-
abstract
def
valueToSQLLiteral(value: T): String
Convert a value to a SQL literal.
Convert a value to a SQL literal. This should throw a
SlickExceptionifhasLiteralFormis false. -
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (JdbcType[T], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
children: ConstArray[Nothing]
All children of this Type.
All children of this Type.
- Definition Classes
- AtomicType → Type
-
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
- AtomicType → Type
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (JdbcType[T]) ⇒ Boolean, msg: ⇒ Any): JdbcType[T]
- def ensuring(cond: (JdbcType[T]) ⇒ Boolean): JdbcType[T]
- def ensuring(cond: Boolean, msg: ⇒ Any): JdbcType[T]
- def ensuring(cond: Boolean): JdbcType[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getDumpInfo: DumpInfo
Return the name, main info, attribute info and named children
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- AtomicType → Type
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
optionType: OptionTypedType[T]
- Definition Classes
- TypedType
-
def
select(sym: TermSymbol): Type
- Definition Classes
- Type
-
final
def
setOption(v: Option[T], p: PreparedStatement, idx: Int): Unit
Set an Option parameter of the type.
-
def
structural: Type
The structural view of this type
The structural view of this type
- Definition Classes
- Type
-
def
structuralRec: Type
Remove all NominalTypes recursively from this Type
Remove all NominalTypes recursively from this Type
- Definition Classes
- Type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- JdbcType → AnyRef → Any
-
def
updateNull(r: ResultSet, idx: Int): Unit
Update a column of the type in a mutable result set with NULL.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (JdbcType[T], B)
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated

edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...